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
Branch specific configuration? #656
Comments
This is possible thanks to the It took me a while to figure out how things work, that's why I am going to share my learnings. Actually, I set up an example repo which I used as a playground to get things working: https://github.com/mkurz/release-drafter-test/ You can fork that repo and just try yourself. So let's assume you currently have two branches: a So now let's configure the release drafter:
We did setup the release-drafter configs, now we need to configure the GitHub workflows to run release drafter on the right branches with the right configs. In both your branches you need to create a
As you can see the So that is basically it, the workflows run and draft releases get created... So, here you can see the "target" branch... That is exactly what the
This gives you some nice JSON which should containt a line like
for every release.
the release drafter will fetch all the releases, filter only the ones with
That's it, I hope I can help other people with this howto. |
@mkurz Amazing explanation buddy! However I am facing a small problem, when I set the commitish branch from input of action and not template, for some reason it is not reflected on release Workflow for patch - https://github.com/shreyanshp/gitops/blob/trunk/.github/workflows/cherry_pick_prs.yml#L50 action run - https://github.com/shreyanshp/gitops/runs/3346241319?check_suite_focus=true (you can see it picked up trunk and not Release/7.7.1 https://github.com/shreyanshp/gitops/blob/trunk/.github/release-drafter-patch.yml (cc @jetersen ) |
Should be possible to craft an action with Though I would suggest git flow is not the best approach to releases and CI/CD:
|
@mkurz great explanation, thanks! I have a followup question: After a bunch of hotfixes to the Is there anything we can do to skip notes already released in the v21.3.x branch? Solution below, thanks @mkurz! |
@robbinjanssen I am not an expert, but maybe the |
It would be nice if release-drafter has the ability to specify multiple configurations with different
target-branch
to manage multiple branches in parallel.This is a concept seen on other actions, like dependabot.
An example of this for dependabot is can be seen at https://github.com/eclipse/jetty.project/blob/jetty-10.0.x/.github/dependabot.yml
Looks like ...
If release-drafter supported this
target-branch
concept, then it could be configured to manage multiple active releases in larger projects that have multiple active branches all with interleaved releases.The text was updated successfully, but these errors were encountered: