-
Notifications
You must be signed in to change notification settings - Fork 317
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
Duplicated/Incorrect PRs listed #221
Comments
@TimonVS I believe the GraphQL is doing something unexpected |
I think I see what's going on here, the duplicate PRs are coming from forks. I will create a PR to filter those out :) |
I'm reopening this issue because the fix I created turned out to be wrong. I will work on a definitive fix. |
Any news? |
Hey @v00d00, I've thought out the following solution: We change the query in ...
associatedPullRequests(first: 5) {
nodes {
+ baseRepository {
+ nameWithOwner
+ }
url
title
number
author {
login
}
mergedAt
isCrossRepository
labels(first: 10) {
nodes {
name
}
}
... Then we filter out all PRs where I think this should be the solution but I haven't tested it yet and there might still be some edge cases that I haven't thought of. I'm was also wondering if we should create an option for people to include PRs from forks in the changelog? Probably not though. I've created a draft PR with the changes: #251. Though it doesn't include tests yet. If you're using the Actions version of Release Drafter you should be able to test it by changing the workflow "Push" {
on = "push"
resolves = ["Draft Release"]
}
action "Draft Release" {
- uses = "toolmantim/release-drafter@v5.2.0"
+ uses = "TimonVS/release-drafter@fix/221"
secrets = ["GITHUB_TOKEN"]
} |
Unfortunately we use the "app" version. |
We've just noticed this problem over in testcontainers/testcontainers-java, with a PR from our repo into someone's fork ending up in our draft release notes. This is the PR that caused it, triggering an entry in our release draft like this: Strangely I've been unable to reproduce it myself today, though. @toolmantim is it possible that this has been fixed in the last couple of weeks? |
Strange! I haven't released an update in quite a while @rnorth… |
@toolmantim The logic the draft PR #251 @TimonVS should solve the problem |
I'd like resume work adding a test. |
@rnorth Thanks for pointing to a PR, made it easier to recreate a test. I'll see if I can land a release to the app tomorrow or at least this week 😅 |
Hi,
I am getting some random very old PRs linked, or incorrect IDs or something strange.
As you can see below "Fixture Upgrade" is duplicated and the 2nd one links to a random old PR.
Project is OSS: here is the config: https://github.com/gerbera/gerbera/blob/master/.github/release-drafter.yml
Please help!
The text was updated successfully, but these errors were encountered: