We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37facbf commit 2cd0b2aCopy full SHA for 2cd0b2a
.github/workflows/issue-write.yml
@@ -93,7 +93,10 @@ jobs:
93
94
var pr_number = 0;
95
gql_result.repository.ref.associatedPullRequests.nodes.forEach((pr) => {
96
- if (pr.baseRepository.owner.login = context.repo.owner && pr.state == 'OPEN') {
+
97
+ // The largest PR number is the one we care about. The only way to have two associated
98
+ // pull requests is if all the old pull requests in the closed state.
99
+ if (pr.baseRepository.owner.login = context.repo.owner && pr.number > pr_number) {
100
pr_number = pr.number;
101
}
102
});
0 commit comments