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
unmerged PRs listed on changelog #766
Comments
I am testing a fix here: https://github.com/release-drafter/release-drafter/compare/master...valentijnscholten:fix-unmerged-prs?expand=1 |
I'm also seeing this issue EDIT: For my case I fixed this by specifying the default branch with the |
Had the same issue, I fixed it by disabling the github action for name: Release Drafter
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
disabling the github action for |
Hello! Tried to do the same but it doesn't seem to work. Do we also need to set |
Setting Lines 153 to 157 in 349214e
Lines 161 to 166 in 349214e
But the For example, if you have a Either, don't run the release part of the action when |
I guess that's what you want:
That's nothing related to this action but the way Github works. |
Sure, turning
Maybe I am misunderstanding something? If you have a PR from branch A to branch B, and releases are on branch C. Running |
created #1015 |
Hi,
I just noticed that my draft release has some unmerged PRs listed in the changelog
Releases: https://github.com/DefectDojo/django-DefectDojo/releases (referring to 1st draft release, 1.12.0)
Release drafter config: https://github.com/DefectDojo/django-DefectDojo/blob/dev/.github/release-drafter.yml
Release drafter workflow: https://github.com/DefectDojo/django-DefectDojo/blob/dev/.github/workflows/release-drafter.yml
The bottom 4 are PRs unmerged. What they have in common is that the PRs are wanting to merge a branch inside the same repo into the dev branch of that repo. As opposed to more common OSS PRs merging a branch in a fork into the upstream repo.
Not sure if that is the cause, but I added that test PR from a branch inside the same repo and it also ends up on the change log from release drafter.
Example: DefectDojo/django-DefectDojo#3686
Other PRs that are wanting to merge a branch from a fork are not listed. Which is correct because they are not merged yet.
Example: DefectDojo/django-DefectDojo#3684
When I look at the code, it is not doing any filtering on the
merged_at
field or merged/unmerged status of PRs. I am no js/graphql expert, but it looks like it is retrieving all commits in the repo since the last release. And all attached PRs. Regardless of being merged or not (or being on thedev
branch/configured branch).Is this a bug or somehow expected / desired behaviour?
Valentijn
The text was updated successfully, but these errors were encountered: