Skip to content

Commit

Permalink
[#3] Detect github draft PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Dec 20, 2024
1 parent 5e6d9fc commit 35b1f91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,15 @@ iox2_freebsd_setup_template: &IOX2_FREEBSD_SETUP
#

preflight_check_task:
env:
GITHUB_EVENT_PAYLOAD: $CIRRUS_EVENT_PAYLOAD
<<: *IOX2_CONTAINER_UBUNTU_22_04_X64
set_toolchain_script: rustup default stable
shell: |
if [[ $(echo "$GITHUB_EVENT_PAYLOAD" | jq -r '.pull_request.draft') == "true" ]]; then
echo "Skipping job because the PR is a draft.";
exit 0;
fi
# FIXME fingerprint_script:
# - cargo audit
# TODO iox2-#8: add more preflight-checks here
Expand Down

0 comments on commit 35b1f91

Please sign in to comment.