-
-
Notifications
You must be signed in to change notification settings - Fork 216
30 lines (26 loc) · 946 Bytes
/
pr_opened.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "pr_opened"
on:
pull_request_target:
types:
- opened
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check issue
id: issue
run: |
echo url=$(scripts/pr.py show ${{ github.event.pull_request.number }} --json \
| jq -r .issue.url) >> "$GITHUB_OUTPUT"
- name: Post Comment
if: |
steps.issue.outputs.url == '' ||
steps.issue.outputs.url == 'null'
uses: thollander/actions-comment-pull-request@v2
with:
message: ":robot: Upon creation, pull request description does not have a link to an issue.
If there is a related issue, please add it to the description
using any of the [supported formats](https://docs.github.com/en/get-started/\
writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls)."