Reference
Pull request labels
Every label and comment that Patchbay writes on a GitHub pull request, what adds or removes it, and how to turn it off.
On this page
Patchbay writes the release status of a pull request to GitHub when the Updates on pull requests setting of the project asks for it. The setting is Off by default. See Write the status to GitHub.
In the names below, <version> is the version, for example 1.4.0, and <n> is the number of a candidate, for example 3.
Labels
Patchbay writes two kinds of labels. Status labels show where a pull request is now, and version labels record the versions it went into.
Patchbay writes these labels in the Labels and Comment and labels modes, and a pull request has at most one status label at a time.
| Label | Added when | Removed when |
|---|---|---|
patchbay:candidate | The status becomes candidate. | The status changes. |
patchbay:released | The status becomes released. | The status changes, for example after a demote. |
Version labels record each version that a pull request went into, and Patchbay writes them only when Version labels is turned on for the project.
| Label | Added when | Removed when |
|---|---|---|
patchbay:<version>-rc.<n> | The status becomes candidate. <n> is the first candidate of the version that contained the pull request. | The status changes. |
patchbay:<version> | The status becomes released. | Never. A pull request keeps one label for each version that released it. |
| Label | Color | Description on GitHub |
|---|---|---|
patchbay:candidate | #fbca04 | Patchbay: included in a release candidate |
patchbay:released | #0e8a16 | Patchbay: released |
patchbay:<version>-rc.<n> | #d4c5f9 | Patchbay: entered in <version>-rc.<n> |
patchbay:<version> | #c5def5 | Patchbay: released in <version> |
If a label does not exist in the repository, Patchbay creates it with this color and description. If the label exists, Patchbay uses it and keeps its color.
The removed and abandoned statuses have no label. When a pull request gets one of these statuses, Patchbay removes its status label and its -rc.<n> label, and the labels named patchbay:<version> stay.
Comment
Patchbay writes the comment in the Comment and Comment and labels modes. Each pull request has one Patchbay comment for each project, and Patchbay edits that comment when the status changes. The examples below use version 1.4.0.
| Status | Status text |
|---|---|
candidate | In 1.4.0 since rc.2, followed by the components |
released | Released in 1.4.0, followed by the components |
removed | |
abandoned |
Besides the status text, the comment shows the project name and a View in Patchbay link to the release. A History list shows every release that contained the pull request, with its status.
This is an example comment for a released pull request:
Permissions
| Mode | Permission the GitHub App needs |
|---|---|
| Labels | issues: write or pull_requests: write |
| Comment | pull_requests: write |
| Comment and labels | pull_requests: write |
If the GitHub App loses the permission, Patchbay skips the write for that repository.
Turn it off
To stop all writes, choose Off in Updates on pull requests in the Sources settings of the project. To keep the status labels but stop the version labels, turn off Version labels.
When you turn it off, Patchbay stops writing, but it does not remove the labels and comments that it wrote before.