Skip to content

Commit 5e91bb7

Browse files
committed
Update Issue/PR response workflow
1 parent 509e33a commit 5e91bb7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/auto-response.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# This comes from https://github.com/octokit/.github/tree/main/.github/templates
2+
# Please edit the workflow in there too when you make changes to this workflow.
3+
14
name: Issue/PR response
25

36
permissions:
@@ -6,22 +9,22 @@ permissions:
69

710
on:
811
issues:
9-
types: [reopened, opened]
12+
types: [opened]
1013
pull_request_target:
11-
types: [reopened, opened]
14+
types: [opened]
1215

1316
jobs:
1417

15-
respond-to-issue:
16-
if: ${{ github.event.action == 'opened' && github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }}
18+
respond:
19+
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }}
1720
runs-on: ubuntu-latest
1821

1922
steps:
2023
- name: Determine issue or PR number
2124
id: extract
2225
run: echo "NUMBER=${{ github.event.issue.number || github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
2326

24-
- name: Respond to issue or PR
27+
- name: Respond to the issue or PR
2528
uses: peter-evans/create-or-update-comment@v4
2629
with:
2730
issue-number: ${{ steps.extract.outputs.NUMBER }}
@@ -31,11 +34,8 @@ jobs:
3134
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`.
3235
You & others like you are the reason all of this works! So thank you & happy coding! 🚀
3336
34-
add-to-project:
35-
runs-on: ubuntu-latest
36-
37-
steps:
38-
- uses: actions/[email protected]
37+
- name: Add issue to project
38+
uses: actions/add-to-project@v1
3939
with:
4040
project-url: https://github.com/orgs/octokit/projects/10
4141
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}

0 commit comments

Comments
 (0)