diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index fa787e8e3..3cd9073e4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -21,10 +21,10 @@ jobs: python misc/ci_check_pr_title.py "$PR_TITLE" env: PR_TITLE: ${{ github.event.pull_request.title }} -# -# - name: PR Project Card Creation -# if: github.event.action == 'opened' || github.event.action == 'edited' -# run: python misc/ci_create_pr_card.py -# env: -# GITHUB_TOKEN: ${{ secrets.GARDENER_PAT }} -# GH_EVENT: ${{ toJson(github.event) }} + + - name: PR Project Card Creation + if: github.event.action == 'opened' || github.event.action == 'edited' + run: python misc/ci_create_pr_card.py + env: + GITHUB_TOKEN: ${{ secrets.GARDENER_PAT }} + GH_EVENT: ${{ toJson(github.event) }} diff --git a/.github/workflows/scripts/ghstack-perm-check.py b/.github/workflows/scripts/ghstack-perm-check.py index 080acced6..38d3db85c 100755 --- a/.github/workflows/scripts/ghstack-perm-check.py +++ b/.github/workflows/scripts/ghstack-perm-check.py @@ -95,8 +95,8 @@ def must(cond, msg): if name == 'Copilot for PRs': continue must( - status == "neutral", - f"PR #{n} check-run `{name}`'s status `{status}` is not failure!", + status in ("success", "neutral"), + f"PR #{n} check-run `{name}`'s status `{status}` is not success!", ) print("SUCCESS!")