diff --git a/.github/workflows/workflow-issue-status.yml b/.github/workflows/workflow-issue-status.yml index d24b9941..5c303858 100644 --- a/.github/workflows/workflow-issue-status.yml +++ b/.github/workflows/workflow-issue-status.yml @@ -186,6 +186,10 @@ jobs: echo "Targeted field name: In Progress" TARGET_STATUS_NAME="In Progress" ;; + "reopened") + echo "Targeted field name: In Progress" + TARGET_STATUS_NAME="In Progress" + ;; "closed") if [ "${{ github.event.pull_request.merged }}" == "true" ]; then echo "Targeted field name: Done" @@ -195,6 +199,16 @@ jobs: TARGET_STATUS_NAME="Won't do" fi ;; + "synchronize") + STATUS=$(gh pr view ${{ github.event.pull_request.number }} --json isDraft --jq '.isDraft') + if [ "$STATUS" == "false" ]; then + echo "Targeted field name: In Review" + TARGET_STATUS_NAME="In Review" + else + echo "Targeted field name: In Progress" + TARGET_STATUS_NAME="In Progress" + fi + ;; esac ;; esac