Releases
Follow pull requests on GitHub
See which pull requests a release contains and which are still on the way, and let Patchbay label or comment on them in GitHub.
On this page
Patchbay links the commits of each release to their GitHub pull requests, so you can see what a release contains. It shows two kinds of pull request:
- A release pull request is a merged pull request with a commit in a release since its baseline.
- A pending pull request targets a tracked branch of an open candidate but is not in the candidate yet.
Patchbay can also write the release status of each pull request back to GitHub, as labels, a comment, or both.
Release pull requests
The Digest section of a release page lists the commits of the release, and each commit shows its pull request with a link to GitHub. In a monorepo, a pull request belongs to a component only when it changed files under the root path of that component. See Compare releases.
Pending pull requests
The Pending pull requests panel shows on an open candidate, and on Genesis before it is complete, but only when a component tracks a branch. It lists two kinds of pull request:
- Open pull requests into a tracked branch.
- Merged pull requests whose commits came after the commit of the candidate. The panel marks them Merged, not in this candidate yet.
Each open pull request shows its state, which is Ready to merge, In progress, Needs work or Draft. It also shows the review and the checks, for example Approved or Checks failing. When nothing is pending, the panel says Up to date with the tracked branches.
The New candidate, Promote candidate and Abandon release dialogs also show the pull requests that the action leaves out. They do not count draft pull requests.
Release status of a pull request
Patchbay gives each release pull request one status for each project that tracks it, and the status follows the pull request from candidate to release.
| Status | Meaning |
|---|---|
candidate | The open candidate of a version contains the pull request. |
released | A promoted release contains the pull request. |
removed | An earlier candidate of an open version contained it, but the open candidate does not. |
abandoned | Only candidates of abandoned versions contained it. |
The status changes when a candidate changes, or when you promote, demote or abandon. See Promote a release.
Write the status to GitHub
You need the Admin role on the project.
- Open the project and press
Cmd+K(orCtrl+K). - Select Project settings, and then select Sources.
- In Updates on pull requests, choose Off, Labels, Comment or Comment and labels.
- If you chose a mode with labels, turn on Version labels to also label the version.
Updates on pull requests is Off for a new project. When you save a new choice, Patchbay applies it at once to the pull requests that it already tracks.
Each mode needs a permission on the GitHub App of your workspace, because Patchbay writes labels and comments through the app.
| Mode | Permission the GitHub App needs |
|---|---|
| Labels | issues: write or pull_requests: write |
| Comment | pull_requests: write |
| Comment and labels | pull_requests: write |
If an installation does not have the permission, the pane shows a warning and does not save the choice. To change the permissions on GitHub, click Review the app's permissions. See Connect GitHub.
For the exact label names, see Pull request labels.
The Patchbay comment
Patchbay writes one comment on each pull request for each project. When the status changes, Patchbay edits the same comment and does not add a new one.
The comment shows the project name and the current status, names the components of the pull request, and links to the release in Patchbay. A History list shows every release that contained the pull request.
Stop writing to GitHub
To stop, choose Off in Updates on pull requests. Patchbay then stops writing to pull requests, but it does not remove the labels and comments that it wrote before.