Преглед изворни кода

ci: tweak pr standards workflow

Aiden Cline пре 1 месец
родитељ
комит
13305966e5
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      .github/workflows/pr-standards.yml

+ 2 - 2
.github/workflows/pr-standards.yml

@@ -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');