mirror of
https://github.com/Vita3K/compatibility.git
synced 2024-11-26 23:01:25 +00:00
moderation_bot: Don't reopen by issue comment
This commit is contained in:
parent
d714927ad2
commit
7202a72214
2
.github/workflows/moderation_bot.yml
vendored
2
.github/workflows/moderation_bot.yml
vendored
@ -262,7 +262,7 @@ jobs:
|
||||
|
||||
if [ -z "$compatibility_report_invalid_reasons" ]; then
|
||||
echo "$github_event_name_friendly is valid."
|
||||
if [[ $issue_state = closed && "$issue_labels" =~ ${repository_labels_invalid[0]}|${repository_labels_invalid[1]} ]]; then
|
||||
if [[ $issue_state = closed && "$issue_labels" =~ ${repository_labels_invalid[0]}|${repository_labels_invalid[1]} && $GITHUB_EVENT_NAME != issue_comment ]]; then ## Don't reopen by issue comment
|
||||
## TODO: Hide (or delete) the close comment if issue is reopened
|
||||
gh issue edit $issue_number --remove-label "${repository_labels_invalid[0]},${repository_labels_invalid[1]}"
|
||||
gh issue reopen $issue_number
|
||||
|
Loading…
Reference in New Issue
Block a user