question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for dynamic `targetPRLabels`

See original GitHub issue

As far as I can see from the documentation and examples out there, the specified targetPRLabels is always static (typically set to ["backport"]). However, in some cases, it would be useful to be able to specify a dynamic label to add to the backport PR, e.g. to include the major version of the branch this PR is backported to.

For example, based on the existing branchLabelMapping, targetPRLabels could become: ["$1-backport"].

Please let me know if this use case makes sense and whether backport already supports such functionality. We’ve already been using this convention when manually backporting PRs to release branches and would like to continue doing so when automatising this process.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sqrencommented, Jun 24, 2022

Separately to this, the following error occurred when I tried this new feature and tagged the same PR with two separate tags: https://github.com/microsoft/CCF/runs/7029861991?check_suite_focus=true. Could this be because our flow is a little different (we checkout the repository explicitly to avoid merge conflicts on a well-known file)?

Ouch, that looks bad. I don’t know why multiple processes would run simultaneously and cause this. I’ll try to see if I can reproduce.

1reaction
sqrencommented, Jun 13, 2022

fyi: I’ve created https://github.com/sqren/backport/pull/400 to support dynamic target labels like you suggested

Read more comments on GitHub >

github_iconTop Results From Across the Web

About targets for Dynamic Search Ads - Google Ads Help
Increasing your reach without keywords, targeting for Dynamic Search Ads works by matching people's searches on Google with specific pages on your site....
Read more >
Set up a Dynamic Target in the VMware Host Client
Click Storage in the VMware Host Client inventory, click Adapters, and click Configure iSCSI. Click Add dynamic target. The new dynamic target ......
Read more >
Using dynamic labels - Amazon CloudWatch
You can use the CloudWatch console to add a dynamic value to a label, edit the label, change the position of the dynamic...
Read more >
Finally! Add a TARGET AREA in an Easy Way - YouTube
In this video I show you how to add a target area to a line chart using ... Incorporating what-if parameters 08:23 Adding...
Read more >
Dynamic label for target in Bullet chart - Qlik Community
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in. Comment.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found