ci: tweak pr standards workflow
parent
a618fbe8cf
commit
13305966e5
|
|
@ -105,7 +105,7 @@ jobs:
|
|||
query($owner: String!, $repo: String!, $number: Int!) {
|
||||
repository(owner: $owner, name: $repo) {
|
||||
pullRequest(number: $number) {
|
||||
closingIssuesReferences(first: 1) {
|
||||
issuesReferences(first: 1) {
|
||||
totalCount
|
||||
}
|
||||
}
|
||||
|
|
@ -119,7 +119,7 @@ jobs:
|
|||
number: pr.number
|
||||
});
|
||||
|
||||
const linkedIssues = result.repository.pullRequest.closingIssuesReferences.totalCount;
|
||||
const linkedIssues = result.repository.pullRequest.issuesReferences.totalCount;
|
||||
|
||||
if (linkedIssues === 0) {
|
||||
await addLabel('needs:issue');
|
||||
|
|
|
|||
Loading…
Reference in New Issue