From 55493f2011d5e6e1189f5d1d3b1fc350c554a643 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 20 Aug 2021 19:03:24 -0700 Subject: [PATCH] tools: update workflow to open a pull request Now that find-inactive-collaborators.mjs automates the README.md changes to move the inactive collaborators to the emeriti section, update the GitHub Actions workflow to open a pull request. PR-URL: https://github.com/nodejs/node/pull/39825 Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell --- .github/workflows/find-inactive-collaborators.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/find-inactive-collaborators.yml b/.github/workflows/find-inactive-collaborators.yml index 45b3a8cebcd350..fbb392d2e537ef 100644 --- a/.github/workflows/find-inactive-collaborators.yml +++ b/.github/workflows/find-inactive-collaborators.yml @@ -28,3 +28,14 @@ jobs: - name: Find inactive collaborators run: tools/find-inactive-collaborators.mjs ${{ env.NUM_COMMITS }} + + - name: Open pull request + uses: gr2m/create-or-update-pull-request-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + author: github-actions[bot] + body: This PR was generated by tools/find-inactive-collaborators.yml. + commit-message: "meta: move one or more collaborators to emeritus" + labels: meta + title: "meta: move one or more collaborators to emeritus"