diff --git a/.github/workflows/create-pr-code-owner.yml b/.github/workflows/create-pr-code-owner.yml index 2a0f16f..045f54e 100644 --- a/.github/workflows/create-pr-code-owner.yml +++ b/.github/workflows/create-pr-code-owner.yml @@ -17,11 +17,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Extract branch name - id: extract_branch - shell: bash - run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT - - uses: actions/create-github-app-token@v1 id: generate-token with: @@ -38,6 +33,7 @@ jobs: --title ${{ github.event.ref }} \ --body-file "pull_request_template.md" \ --reviewer ${{ env.reviewers }} \ - --assignee ${{ github.actor }} + --assignee ${{ github.actor }} \ + --draft env: GH_TOKEN: ${{ steps.generate-token.outputs.token }}