Skip to content
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

Create separate workflows for PRs and master in release-drafter #1744

Merged
merged 2 commits into from Jul 15, 2021

Conversation

ciarams87
Copy link
Member

@ciarams87 ciarams87 commented Jul 14, 2021

Proposed changes

We are running into this issue: release-drafter/release-drafter#680 when we have "filter-by-commitish" and the PR "autolabeler" set. As far as I can tell, running the release-drafter on every PR creates a different draft release when we have "filter-by-commitish" set. This attempts to rectify by creating separate release drafter workflows so we can run the auto-labeller only on PRs. I think we can support releasing from release branches going forward by setting the 'commitish' to the name of the release branch - this should support patch releases.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto master
  • I will ensure my PR is targeting the master branch and pulling from my branch from my own fork

@github-actions github-actions bot added the chore Pull requests for routine tasks label Jul 14, 2021
@ciarams87 ciarams87 changed the title Disable filter-by-commitish in release drafter Create separate workflows for PRs and master in release-drafter Jul 14, 2021
@@ -12,5 +9,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: release-drafter/release-drafter@v5
with:
disable-releaser: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! How did you find it? It's not documented 😞

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ciarams87 ciarams87 merged commit f7a479a into master Jul 15, 2021
@ciarams87 ciarams87 deleted the chore/toggle-release-drafter branch July 15, 2021 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants