Skip to content
PatchbayDocs

Search documentation

Find a page

Open Patchbay

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.

LabelAdded whenRemoved when
patchbay:candidateThe status becomes candidate.The status changes.
patchbay:releasedThe status becomes released.The status changes, for example after a demote.

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.

StatusStatus text
candidateIn 1.4.0 since rc.2, followed by the components
releasedReleased in 1.4.0, followed by the components
removedIn release candidate 1.4.0-rc.3, then Not in the current candidate for 1.4.0.
abandonedIn release candidate 1.4.0-rc.3, then Release 1.4.0 was 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:

GitHub comment
**Patchbay** · payments

**Released in 1.4.0** · components: checkout-api, ledger
[View in Patchbay](https://patchbay.unbrikd.com/acme/payments/1.4.0)

<details><summary>History</summary>

- 1.4.0-rc.2 · superseded
- 1.4.0 · released
</details>

Permissions⁠

ModePermission the GitHub App needs
Labelsissues: write or pull_requests: write
Commentpull_requests: write
Comment and labelspull_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.