You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when a PR is opened it autolabels, but it also adds that unmerged PR to the release draft. I would like to autolabel my PRs, but I only want merged PRs to be added to my draft. Is this possible?
The text was updated successfully, but these errors were encountered:
ahatzz11
changed the title
Possible to use autolabeler without creating a draft release?
Possible to use autolabeler without creating a draft release on unmerged PR?
Nov 19, 2021
I was also just experiencing this issue as well today, and came across #917. It explains about an undocumented workflow configuration, disable-releaser, which can be used.
This PR, sbgisen/.github#26, contains a good example of how this could be used for your scenario.
@harrylewis thanks for the info! This completely stopped release-drafter from running, which means that the autolabeler also didn't run.
Am I able to have the auto-labeler part run without generating a release? Also I think using disable-releaser is kind of a roundabout way of fixing that when you could just turn off the pull_request events if it just 100% disables it.
It turns out the quick test I did I forgot to put something in the title that matched my autolabeler, so it did run but didn't find anything 🤦
For anyone maybe running into this, the above code worked great!
with:
# allows autolabeler to run without unmerged PRs from being added to draft
disable-releaser: ${{ github.ref_name != github.event.repository.default_branch }}
Currently when a PR is opened it autolabels, but it also adds that unmerged PR to the release draft. I would like to autolabel my PRs, but I only want merged PRs to be added to my draft. Is this possible?
The text was updated successfully, but these errors were encountered: