-
Notifications
You must be signed in to change notification settings - Fork 0
feat(chore): add troubleshooting guide #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,49 @@ | ||||||
| # Troubleshooting Guide | ||||||
|
|
||||||
| #### Required Workflow Permissions | ||||||
|
|
||||||
| Ensure your `.github/workflows/release-please.yml` file includes the following permissions: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we do a short intro on when this guide is relevant (because a
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💯 |
||||||
|
|
||||||
| ```yaml | ||||||
| permissions: | ||||||
| contents: write | ||||||
| pull-requests: write | ||||||
| ``` | ||||||
|
|
||||||
| These permissions are required for release-please to: | ||||||
| - Create and update release PRs | ||||||
| - Create tags and GitHub releases | ||||||
| - Update changelog files | ||||||
|
|
||||||
| #### Verify CSDA Release App Access | ||||||
|
|
||||||
| - Visit the [CSDA Release App installations page](https://github.com/apps/csda-release-app/installations/105597643) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
nit: I think it's nice to document the main app URL (otherwise it's hard to find!) but pointing to the specific "installation" seems unnecessary. |
||||||
| - Verify your repository is listed under `Repository access` | ||||||
| - If your repository is missing select the one you would like to add | ||||||
|
|
||||||
| ### Resolving Stale Versions in Release Please | ||||||
|
|
||||||
| **Release-Please Workflow:** | ||||||
|
|
||||||
| - When a PR is merged to `main`, release-please creates a "Release PR" with the label `autorelease: pending` | ||||||
| - When the Release PR is merged, release-please: | ||||||
| - Creates a Git tag | ||||||
| - Publishes a GitHub Release | ||||||
| - Removes `autorelease: pending` and adds `autorelease: tagged` | ||||||
|
|
||||||
| **Common problem:** | ||||||
|
|
||||||
| If the release-please action fails, it never removes the `autorelease: pending` label. This causes release-please to ignore any workflow changes and continuously retries the failed release. | ||||||
|
|
||||||
| #### Examples | ||||||
|
|
||||||
| - You update `release-as` in your workflow to a new version, but release-please keeps trying to create the old version | ||||||
| - Release-please workflow runs but ignores your configuration changes | ||||||
| - You see the error message `Resource not accessible by integration` or permission errors in the workflow logs | ||||||
|
|
||||||
| #### Solution | ||||||
|
|
||||||
| - Find the Release PR that failed with the `autorelease: pending` label | ||||||
| - Manually remove the `autorelease: pending` label from the PR | ||||||
| - Re-run the release-please workflow | ||||||
| - This clears release-please's "memory" of the failed release and allows it to read your updated configuration | ||||||
|
Comment on lines
+36
to
+49
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, this is helpful to learn! 🙌🏽 |
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: headings should only increment +1