Skip to content

Commit

Permalink
Update test issue body
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Lewis <[email protected]>
  • Loading branch information
Ian Lewis committed Aug 24, 2023
1 parent 9248cce commit 5b3fc36
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/pre-submit.units.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,16 @@ jobs:
GH_TOKEN: ${{ github.token }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: |
url=$(gh issue create --title "issue-reopener-basic pre-submit test issue" --body "Test issue for PR ${PR_URL}")
body=""
if [ "${PR_URL}" != "" ]; then
body="Test issue for commit $PR ${PR_URL}"
else
body="Test issue for commit ${GITHUB_SHA}"
fi
body="${body}
- [Workflow run](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/attempts/${GITHUB_RUN_ATTEMPT})"
url=$(gh issue create --title "issue-reopener-basic pre-submit test issue" --body "${body}")
echo "${url}"
gh issue close "${url}"
mkdir test
Expand Down Expand Up @@ -319,7 +328,16 @@ jobs:
GH_TOKEN: ${{ github.token }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: |
url=$(gh issue create --title "issue-reopener-dry-run pre-submit test issue" --body "Test issue for PR ${PR_URL}")
body=""
if [ "${PR_URL}" != "" ]; then
body="Test issue for commit $PR ${PR_URL}"
else
body="Test issue for commit ${GITHUB_SHA}"
fi
body="${body}
- [Workflow run](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/attempts/${GITHUB_RUN_ATTEMPT})"
url=$(gh issue create --title "issue-reopener-dry-run pre-submit test issue" --body "${body}")
echo "${url}"
gh issue close "${url}"
mkdir test
Expand Down

0 comments on commit 5b3fc36

Please sign in to comment.