You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: improve GitHub API interactions and error handling
This commit refactors the GitHub API interactions and error
handling in the codebase. The changes include:
- Separating the GitHub API interactions from the shared module `github.ts`
and into the purpose-specific file (e.g. tags, releases).
- Improving error handling for GitHub API requests.
- Adding more detailed logging for GitHub API requests.
- Drop @actions/github and instantiate GitHub context and Octokit
directly. This allows us to leverage proper instanceof RequestError.
- Updating the README.md file to reflect the changes.
Fixes#17
| `major-keywords` | Keywords in commit messages that indicate a major release | `major change,breaking change` |
140
-
| `minor-keywords` | Keywords in commit messages that indicate a minor release | `feat,feature` |
141
-
| `patch-keywords` | Keywords in commit messages that indicate a patch release | `fix,chore,docs` |
142
-
| `default-first-tag` | Specifies the default tag version | `v1.0.0` |
143
-
| `github_token` | Use this if you wish to use a different GitHub token than the one provided by the workflow | `${{ github.token }}default` |
144
-
| `terraform-docs-version` | Specifies the terraform-docs version used to generate documentation for the wiki | `v0.19.0` |
145
-
| `delete-legacy-tags` | Specifies a boolean that determines whether tags from Terraform modules that have been deleted should be automatically removed | `true` |
146
-
| `disable-wiki` | Whether to disable wiki generation for Terraform modules | `false` |
147
-
| `wiki-sidebar-changelog-max` | An integer that specifies how many changelog entries are displayed in the sidebar per module | `5` |
137
+
While the out-of-the-box defaults are suitable for most use cases, you can further customize the action's behavior by
138
+
configuring the following optional input parameters as needed.
| `major-keywords` | Keywords in commit messages that indicate a major release | `major change,breaking change` |
143
+
| `minor-keywords` | Keywords in commit messages that indicate a minor release | `feat,feature` |
144
+
| `patch-keywords` | Keywords in commit messages that indicate a patch release | `fix,chore,docs` |
145
+
| `default-first-tag` | Specifies the default tag version | `v1.0.0` |
146
+
| `terraform-docs-version` | Specifies the terraform-docs version used to generate documentation for the wiki | `v0.19.0` |
147
+
| `delete-legacy-tags` | Specifies a boolean that determines whether tags and releases from Terraform modules that have been deleted should be automatically removed | `true` |
148
+
| `disable-wiki` | Whether to disable wiki generation for Terraform modules | `false` |
149
+
| `wiki-sidebar-changelog-max` | An integer that specifies how many changelog entries are displayed in the sidebar per module | `5` |
148
150
149
151
### Example Usage with Inputs
150
152
@@ -190,7 +192,8 @@ by Piotr Krukowski.
190
192
## Notes
191
193
192
194
- This action uses [Conventional Commits](https://www.conventionalcommits.org/) to automatically determine the release
193
-
type _(major, minor, or patch)_ based on commit messages.
195
+
type _(major, minor, or patch)_ based on commit messages. This behavior is configurable via
196
+
[inputs](#input-parameters).
194
197
- Versioning is done using [Semantic Versioning (SemVer)](https://semver.org/), which provides a clear and consistent
195
198
way to manage module versions.
196
199
- Commit messages are linked to the respective Terraform directories _(handling PRs that may have separate modules and
0 commit comments