mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 21:49:53 +00:00
ci: tweak pr standards workflow
This commit is contained in:
parent
a618fbe8cf
commit
13305966e5
1 changed files with 2 additions and 2 deletions
4
.github/workflows/pr-standards.yml
vendored
4
.github/workflows/pr-standards.yml
vendored
|
|
@ -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…
Add table
Add a link
Reference in a new issue