From 9866a44e3f60be19bcd328bb41e80fe6680d92d9 Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Fri, 13 Sep 2024 15:57:40 +0800 Subject: [PATCH] . --- .github/workflows/draft-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/draft-ci.yml b/.github/workflows/draft-ci.yml index c82c6486901..f106a42ec97 100644 --- a/.github/workflows/draft-ci.yml +++ b/.github/workflows/draft-ci.yml @@ -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