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

Filter PRs from forks #251

Merged
merged 3 commits into from May 26, 2020
Merged

Filter PRs from forks #251

merged 3 commits into from May 26, 2020

Conversation

TimonVS
Copy link
Member

@TimonVS TimonVS commented Jul 1, 2019

This hasn't been tested yet. Will add tests asap.

Fixes: #221

Comment on lines +24 to +38
{
"title": "🙅‍♂️ Forking PR 🙅‍♂️",
"number": 1,
"body": "No thanks to forking PRs",
"author": {
"login": "jetersen"
},
"baseRepository": {
"nameWithOwner": "jetersen/release-drafter-test-repo"
},
"mergedAt": "2020-05-26T20:33:01Z",
"isCrossRepository": true,
"labels": {
"nodes": []
}
Copy link
Member

Choose a reason for hiding this comment

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

Such PRs are successfully filtered.

Comment on lines +1241 to +1242
* Add documentation (#5) @TimonVS
* Update dependencies (#4) @TimonVS
Copy link
Member

Choose a reason for hiding this comment

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

something went wrong when I created the branch
However the PR with the title 🙅‍♂️ Forking PR 🙅‍♂️ is filtered out

Comment on lines +36 to +37
owner: 'jetersen',
branch: 'forking',
Copy link
Member

Choose a reason for hiding this comment

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

Reason for this was because associated PRs does not immediately appear on the main repo or at least that was the behavior I saw.

@jetersen jetersen merged commit 5f90b36 into release-drafter:master May 26, 2020
@jetersen jetersen added the type: bug Something isn't working label May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicated/Incorrect PRs listed
2 participants