Skip to content

Commit c042bb6

Browse files
authored
use 201 status code for error handling (#2528)
1 parent 316bc4e commit c042bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/issue-opened.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ jobs:
5050
assignees: reviewerGH,
5151
issue_number: context.issue.number,
5252
})
53-
if (resp.status != 200){
53+
if (resp.status != 201){
5454
core.setFailed("error assigning reviewer: user doesn't have the appropriate permissions to be assigned an issue.")
5555
}

0 commit comments

Comments
 (0)