Skip to content

Commit a082e1e

Browse files
committed
Move into else
1 parent d339a58 commit a082e1e

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

action.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,26 @@ runs:
2020
type=issue_comment
2121
fi
2222
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
4143
fi
4244
message="Uh oh! @$user, the image you shared is missing helpful alt text. Check $target.
4345

0 commit comments

Comments
 (0)