Skip to content

Commit

Permalink
Fix issue write
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellar committed Jun 7, 2024
1 parent 37facbf commit 2cd0b2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/issue-write.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ jobs:
var pr_number = 0;
gql_result.repository.ref.associatedPullRequests.nodes.forEach((pr) => {
if (pr.baseRepository.owner.login = context.repo.owner && pr.state == 'OPEN') {
// The largest PR number is the one we care about. The only way to have two associated
// pull requests is if all the old pull requests in the closed state.
if (pr.baseRepository.owner.login = context.repo.owner && pr.number > pr_number) {
pr_number = pr.number;
}
});
Expand Down

0 comments on commit 2cd0b2a

Please sign in to comment.