@@ -20,24 +20,26 @@ runs:
20
20
type=issue_comment
21
21
fi
22
22
target=${{ github.event.comment.html_url }}
23
- elif [ ${{ github.event.issue && !github.event.comment }} ]; then
24
- content=$ISSUE_BODY
25
- issue_url=${{ github.event.issue.html_url }}
26
- user=${{ github.event.issue.user.login }}
27
- type=issue_description
28
- target=" your issue body"
29
- elif [ ${{ github.event.pull_request && !github.event.comment }} ]; then
30
- content=$PR_BODY
31
- issue_url=${{ github.event.pull_request.html_url }}
32
- user=${{ github.event.pull_request.user.login }}
33
- type=pr_description
34
- target=" your pull request body"
35
- elif [ ${{ github.event.discussion && !github.event.comment }} ]; then
36
- content=$DISCUSSION_BODY
37
- discussion_node_id='${{ github.event.discussion.node_id }}'
38
- user=${{ github.event.discussion.user.login }}
39
- target='your discussion body'
40
- type=discussion_description
23
+ else
24
+ if [ ${{ github.event.issue }} ]; then
25
+ type=issue_description
26
+ content=$ISSUE_BODY
27
+ issue_url=${{ github.event.issue.html_url }}
28
+ user=${{ github.event.issue.user.login }}
29
+ target=" your issue body"
30
+ elif [ ${{ github.event.pull_request }} ]; then
31
+ type=pr_description
32
+ content=$PR_BODY
33
+ issue_url=${{ github.event.pull_request.html_url }}
34
+ user=${{ github.event.pull_request.user.login }}
35
+ target=" your pull request body"
36
+ elif [ ${{ github.event.discussion }} ]; then
37
+ type=discussion_description
38
+ content=$DISCUSSION_BODY
39
+ discussion_node_id='${{ github.event.discussion.node_id }}'
40
+ user=${{ github.event.discussion.user.login }}
41
+ target=' your discussion body'
42
+ fi
41
43
fi
42
44
message="Uh oh! @$user, the image you shared is missing helpful alt text. Check $target.
43
45
0 commit comments