diff --git a/.github/templates/add_to_octokit_project.yml b/.github/templates/add_to_octokit_project.yml deleted file mode 100644 index 936e1f4..0000000 --- a/.github/templates/add_to_octokit_project.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Add PRs and issues to Octokit org project - -on: - issues: - types: [reopened, opened] - pull_request_target: - types: [reopened, opened] - -jobs: - add-to-project: - name: Add issue to project - runs-on: ubuntu-latest - continue-on-error: true - steps: - - uses: actions/add-to-project@v1.0.1 - with: - project-url: https://github.com/orgs/octokit/projects/10 - github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }} - labeled: "Status: Stale" - label-operator: NOT diff --git a/.github/templates/immediate-response.yml b/.github/templates/immediate-response.yml index 8a29b20..a61bf64 100644 --- a/.github/templates/immediate-response.yml +++ b/.github/templates/immediate-response.yml @@ -1,18 +1,28 @@ +# This workflow originates from https://github.com/octokit/.github/blob/main/.github/templates/immediate-response.yml + +# NOTE: +# Changes to the workflow are automatically synced downstream, +# so please make sure to put your suggestions there so that +# your changes are reflected across all repositories. + name: Issue/PR response + permissions: issues: write pull-requests: write + on: issues: - types: - - opened + types: [opened] pull_request_target: - types: - - opened + types: [opened] + jobs: - respond-to-issue: + + respond: if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }} runs-on: ubuntu-latest + steps: - name: Determine issue or PR number id: extract @@ -22,8 +32,16 @@ jobs: uses: peter-evans/create-or-update-comment@v4 with: issue-number: ${{ steps.extract.outputs.NUMBER }} - body: > + body: | 👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a [process in place](https://github.com/octokit/.github/blob/main/community/prioritization_response.md#overview) for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with `Status: Up for grabs`. You & others like you are the reason all of this works! So thank you & happy coding! 🚀 + + - name: Add issue to project + uses: actions/add-to-project@v1 + with: + project-url: https://github.com/orgs/octokit/projects/10 + github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }} + labeled: "Status: Stale" + label-operator: NOT