Skip to content

Commit

Permalink
chore: PR mandatory linked issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos77 committed Aug 20, 2024
1 parent 74bf2da commit 151d642
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr-mandatory-linked-issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: Mandatory linked issue
on:
pull_request:
types:
- synchronize
- opened
- edited
- reopened

permissions:
contents: read
Expand Down Expand Up @@ -39,7 +41,7 @@ jobs:
}
}
}' > data.json
COUNT=$(jq '.data.repository.pullRequest.closingIssuesReferences.nodes | length' jj.json)
COUNT=$(jq '.data.repository.pullRequest.closingIssuesReferences.nodes | length' data.json)
if [ "$COUNT" -lt "1" ]; then
echo "To merge a pull request you must link it with an issue."
echo "For details read:"
Expand Down

0 comments on commit 151d642

Please sign in to comment.