Skip to content

Commit 3ac0c5d

Browse files
authored
Fix IGNORE_PROJECT_IDS condition (#53)
1 parent eba2fd4 commit 3ac0c5d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/main.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ main() {
4646
project_id="$(teamwork::get_project_id_from_task "$task_id")"
4747
export TEAMWORK_PROJECT_ID=$project_id
4848

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

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

0 commit comments

Comments
 (0)