Skip to content

Commit

Permalink
Fix IGNORE_PROJECT_IDS condition (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
aetheon authored Dec 15, 2021
1 parent eba2fd4 commit 3ac0c5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ main() {
project_id="$(teamwork::get_project_id_from_task "$task_id")"
export TEAMWORK_PROJECT_ID=$project_id

# ignored_project_ids=("${IGNORE_PROJECT_IDS:-}")
# if (( ${#ignored_project_ids[@]} != 0 )) || utils::in_array "$1" "${ignored_project_ids[*]}"
# then
# log::message "ignored due to IGNORE_PROJECT_IDS"
# exit 0
# fi
ignored_project_ids=("${IGNORE_PROJECT_IDS:-}")
if utils::in_array "$project_id" "${ignored_project_ids[*]}"
then
log::message "ignored due to IGNORE_PROJECT_IDS"
exit 0
fi

if [ "$event" == "pull_request" ] && [ "$action" == "opened" ]; then
teamwork::pull_request_opened
Expand Down

0 comments on commit 3ac0c5d

Please sign in to comment.