Skip to content

Commit

Permalink
issue #160: use cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCardin committed Nov 15, 2024
1 parent 24eeeeb commit 8f48237
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/workflow-issue-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 8f48237

Please sign in to comment.