mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Fix pr linting fail when pasting issue url (#410)
This commit is contained in:
parent
9724c4d748
commit
4950f16756
2
.github/workflows/pr-lint.yml
vendored
2
.github/workflows/pr-lint.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
PR_BODY=$(gh pr view ${{ github.event.pull_request.number }} --json body --jq ".body")
|
||||
ISSUES=$(echo $PR_BODY | tr '[:upper:]' '[:lower:]' | sed -n -E '/(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved|relates to|related to|part of) #[0-9]+/p')
|
||||
ISSUES=$(echo $PR_BODY | tr '[:upper:]' '[:lower:]' | sed -n -E '\;((close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved|relates to|related to|part of) (#|https://github.com/opentffoundation/opentf/issues/)[0-9]+);p')
|
||||
if [ -z "$ISSUES" ]
|
||||
then
|
||||
gh pr comment ${{ github.event.pull_request.number }} -b "Please link the relevant issue that this PR handles using one of the following words
|
||||
|
Loading…
Reference in New Issue
Block a user