From 91f6fa00f4f7814c53e5c31d9e844c686dd47547 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Fri, 16 May 2025 14:42:14 +0200 Subject: [PATCH] Disable `convert to draft` workflow (#38177) delete Co-authored-by: ydshieh --- .github/workflows/change_pr_to_draft.yml | 25 ------------------------ 1 file changed, 25 deletions(-) delete mode 100644 .github/workflows/change_pr_to_draft.yml diff --git a/.github/workflows/change_pr_to_draft.yml b/.github/workflows/change_pr_to_draft.yml deleted file mode 100644 index c8132d2f49..0000000000 --- a/.github/workflows/change_pr_to_draft.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Change PR to draft - -on: - pull_request_target: - types: [opened, reopened] - -jobs: - convert_pr_to_draft: - runs-on: ubuntu-22.04 - name: Convert PR to draft - permissions: - pull-requests: write - contents: write - if: github.event.pull_request.draft == false - steps: - - name: Convert PR to draft - shell: bash - env: - PR_NUMBER: ${{ github.event.number }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO: ${{ github.repository }} - run: | - echo $PR_NUMBER - gh pr ready $PR_NUMBER --repo $REPO --undo - gh pr comment $PR_NUMBER --repo $REPO --body "Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the \`Ready for review\` button (at the bottom of the PR page). This will assign reviewers and trigger CI."