From 18e8b879d207a0391c5ac4b5a7b8b423591156d4 Mon Sep 17 00:00:00 2001 From: Tim Hockin <thockin@google.com> Date: Sun, 20 Nov 2022 15:28:21 -0800 Subject: [PATCH] Make github assign PRs and issues --- .github/workflows/assign.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/assign.yaml diff --git a/.github/workflows/assign.yaml b/.github/workflows/assign.yaml new file mode 100644 index 0000000..e1bfb97 --- /dev/null +++ b/.github/workflows/assign.yaml @@ -0,0 +1,21 @@ +name: Assign + +on: + issues: + types: [opened, reopened] + pull_request_target: + types: [opened, reopened] + +jobs: + assign: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.addAssignees({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + assignees: ['thockin', 'pohly'] + })