From dedc25111726d4b2354d40a3cb843b40ae0c7ee6 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Thu, 19 Sep 2024 09:43:30 +0200 Subject: [PATCH] ci: :construction_worker: update author assigning workflow (#137) This just matches the workflow with what we do in Seedcase, using the built-in GitHub CLI rather than some else's workflow. --- .github/workflows/assign-author-to-pr.yaml | 23 ++++++++++++++++++++++ .github/workflows/auto-author-assign.yaml | 16 --------------- 2 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/assign-author-to-pr.yaml delete mode 100644 .github/workflows/auto-author-assign.yaml diff --git a/.github/workflows/assign-author-to-pr.yaml b/.github/workflows/assign-author-to-pr.yaml new file mode 100644 index 0000000..0538e78 --- /dev/null +++ b/.github/workflows/assign-author-to-pr.yaml @@ -0,0 +1,23 @@ +name: Assign author to their PR + +on: + pull_request: + types: + - reopened + - opened + +permissions: + pull-requests: write + +jobs: + assign-author-to-pr: + runs-on: ubuntu-latest + steps: + - name: Assign PR to author + run: | + gh pr edit $PR --add-assignee $AUTHOR + env: + AUTHOR: ${{ github.event.pull_request.user.login }} + PR: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/auto-author-assign.yaml b/.github/workflows/auto-author-assign.yaml deleted file mode 100644 index 7277937..0000000 --- a/.github/workflows/auto-author-assign.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# .github/workflows/auto-author-assign.yml -# https://github.com/marketplace/actions/auto-author-assign -name: Auto Author Assign - -on: - pull_request_target: - types: [ opened, reopened ] - -permissions: - pull-requests: write - -jobs: - assign-author: - runs-on: ubuntu-latest - steps: - - uses: toshimaru/auto-author-assign@v2.1.0 \ No newline at end of file