-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow custom PR templates #51
Comments
Hi @negz, that sounds like a good addition. I can imagine other use cases for this as well. But, allow me first to focus on your case.
In your case, it's probably better to look at the 2nd option from this workaround section:
If you change the Please let me know if you're still interested in this feature knowing this. If you happen to try the above solution, please also let me know if you run into any issues. Having said that, I see 2 options to support more dynamic PR descriptions:
Clearly the latter is easier to implement, but the prior seems more flexible and extendable in the future. My preference would go to the prior. I'm also open to other ideas. |
I am. I don't disagree that the PAT approach is likely better, but I'm using this action quite extensively across two orgs and many repos, so being able to turn on a prompt to close and reopen the PR is a more compelling short-term fix than going through and figuring out setting up a bot account, PAT, etc etc across both orgs. Especially considering the potential security implications. |
@negz I've created a pull request to add support for this, using the first option I described. Note that the naming has changed from that first proposal. For the full documentation, please have a look at the README. You can use the version of this pull request by configuring the action in your workflow:
Please let me know whether this works correctly for you 🙂 |
https://github.com/zeebe-io/backport-action/blob/186066470a540eb4a8d2b1bed1e8e12ab12b8120/src/backport.ts#L212
At the time of writing this action uses a constant backport PR body. Would it be possible to make it configurable?
Specifically the use case I have here is that the backport PRs the action opens are themselves subject to further actions, but GitHub won't let an action run an action so the required checks on the backport PRs are never triggered.
One hacky but very lightweight workaround for this issue is to just have the reviewer close and immediately reopen the PR to trigger the CI, so ideally I'd like the backport PR description to include a note to reviewers that they can just close and reopen the PR to trigger CI. Eventually I might add a
/ci
command or similar that is slightly less hacky, but I'd still like to document that in the PR body.The text was updated successfully, but these errors were encountered: