Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Troubleshooting Guide

#### Required Workflow Permissions
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#### Required Workflow Permissions
## Required Workflow Permissions

nit: headings should only increment +1


Ensure your `.github/workflows/release-please.yml` file includes the following permissions:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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 release-please.yml workflow is required in each repo)? A pointer to the wiki page could also be helpful.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The 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)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Visit the [CSDA Release App installations page](https://github.com/apps/csda-release-app/installations/105597643)
- Visit the [CSDA Release App installations page](https://github.com/apps/csda-release-app) and follow the authentication steps to `Configure`

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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this is helpful to learn! 🙌🏽