Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Sep 13, 2024
1 parent a84d590 commit 9866a44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/draft-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"state": "${{(github.event.action == 'ready_for_review' || github.event.pull_request.draft == false) && 'success' || 'pending'}}",
"state": "${{(github.event.action != 'ready_for_review' && github.event.pull_request.draft) && 'pending' || 'success'}}",
"context": "Draft CI / link",
"target_url": '${{format('{0}/commits/{1}', github.event.pull_request.head.repo.html_url, github.event.pull_request.head.ref)}}',
"description": "${{(github.event.action == 'ready_for_review' || github.event.pull_request.draft == false) && 'PR is ready for review, running CI in Mill repo' || 'use CI on your repo fork (link on right) until this PR is ready for review'}}"
"target_url": ${{(github.event.action != 'ready_for_review' && github.event.pull_request.draft) && format('"{0}/commits/{1}"', github.event.pull_request.head.repo.html_url, github.event.pull_request.head.ref) || null}},
"description": "${{(github.event.action != 'ready_for_review' && github.event.pull_request.draft) && 'use CI on your repo fork (link on right) until this PR is ready for review' || 'PR is ready for review, running CI in Mill repo'}}"
}' \
--fail-with-body

0 comments on commit 9866a44

Please sign in to comment.