Add `backported` label to PRs when running the backport tool
See original GitHub issueHow would you feel about supporting configuration that adds a label like backported
to a PR once the backport PRs have been created? It’s a little misleading because the backport PRs haven’t been merged, but it’s also a good indicator as PRs have a lot more visibility (usually PRs don’t go unmerged for too long) and the status of each backport PR is usually listed at the bottom of the history for the source PR…
Thoughts?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Declarative labels to dictate backport procedure #127659
Version labels are added to PRs once the source or backport PRs are merged (using package.json from the upstream branch).
Read more >Backporting a change to a release branch - CockroachDB
Upon merge, Blathers will automatically attempt to create backport PRs for each branch that was indicated via a backport label on your PR....
Read more >backport - npm
A CLI tool that automates the process of backporting commits. Latest version: 8.9.3, ... Install locally: npm install backport. Run: npx backport.
Read more >npm:backport | Skypack
A CLI tool that automates the process of backporting commits. ... In this case, adding the label "backport-to-production" will backport the PR to...
Read more >SciPy Core Developer Guide
For PRs that add new features or are in some way complex, wait at least a day or ... After the backport is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@brianmcgue Yes, this is exactly how I determine which commits have been backported:
This approach is also tells whether a backport PR has been created (grey) or merged in (green); and to which versions. I was thinking of extracting this logic, so we can have a daily job that verifies that all PRs to master are backported within 48 hours or something like it. And post a comment on the PR if a backport is missing.
@spalger I’ve created a PR that adds the option
backport-created-labels
(I’m open to better naming suggestions).GitHub’s reference links are useful when it comes to this. And since each commit message in the PR references its original PR, they should always show up. But this would still be useful when filtering PRs and for quick reference checks 👍