Skip to content

Commit

Permalink
fix: resolve issues with the new pull request checks and add diagnostics
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick committed May 31, 2024
1 parent bba0659 commit 8bb3497
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/flow-pull-request-formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ name: "PR Formatting"
on:
pull_request_target:
types:
- assigned
- unassigned
- labeled
- unlabeled
- opened
- reopened
- edited
- converted_to_draft
- ready_for_review
- review_requested
- review_request_removed
- locked
- unlocked
- synchronize

defaults:
Expand All @@ -48,6 +56,10 @@ jobs:
steps:
- name: Check Milestone
run: |
echo "::group::Event Data"
echo "${{ toJSON(github.event) }}" | jq .
echo "::endgroup::"
if [ "${{ github.event.pull_request_target.milestone }}" == "null" ] || [ "${{ github.event.pull_request_target.milestone }}" == "" ]; then
echo "Milestone is not set. Failing the workflow."
exit 1
Expand All @@ -64,6 +76,10 @@ jobs:
steps:
- name: Check Assignee
run: |
echo "::group::Event Data"
echo "${{ toJSON(github.event) }}" | jq .
echo "::endgroup::"
if [ "${{ github.event.pull_request_target.assignee }}" == "null" ] || [ "${{ github.event.pull_request_target.assignee }}" == "" ]; then
echo "Assignee is not set. Failing the workflow."
exit 1
Expand Down

0 comments on commit 8bb3497

Please sign in to comment.