File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,13 @@ main() {
3737
3838 log::message " Event: $event - Action: $action "
3939
40+ local project_id
4041 IFS=' ,' read -r -a task_ids <<< " $task_ids_str"
4142 for task_id in " ${task_ids[@]} " ; do
4243 log::message " Task found with the id: $task_id "
4344
4445 export TEAMWORK_TASK_ID=$task_id
45- local -r project_id=" $( teamwork::get_project_id_from_task " $task_id " ) "
46+ project_id=" $( teamwork::get_project_id_from_task " $task_id " ) "
4647 export TEAMWORK_PROJECT_ID=$project_id
4748
4849 if [ " $event " == " pull_request" ] && [ " $action " == " opened" ]; then
@@ -53,6 +54,8 @@ main() {
5354 teamwork::pull_request_review_submitted
5455 elif [ " $event " == " pull_request_review" ] && [ " $action " == " dismissed" ]; then
5556 teamwork::pull_request_review_dismissed
57+ elif [ " $ENV " == " test" ]; then # always run pull_request_opened at the very least when in test
58+ teamwork::pull_request_opened
5659 else
5760 log::message " Operation not allowed"
5861 exit 0
You can’t perform that action at this time.
0 commit comments