Skip to content

Commit c93c169

Browse files
committed
ci(workflows): add Octokit workflows
1 parent 7a98540 commit c93c169

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Add PRs and issues to Octokit org project
2+
3+
on:
4+
issues:
5+
types: [reopened, opened]
6+
pull_request_target:
7+
types: [reopened, opened]
8+
9+
jobs:
10+
add-to-project:
11+
name: Add issue to project
12+
runs-on: ubuntu-latest
13+
continue-on-error: true
14+
steps:
15+
- uses: actions/[email protected]
16+
with:
17+
project-url: https://github.com/orgs/octokit/projects/10
18+
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}
19+
labeled: "Status: Stale"
20+
label-operator: NOT
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Issue/PR response
2+
permissions:
3+
issues: write
4+
pull-requests: write
5+
on:
6+
issues:
7+
types:
8+
- opened
9+
pull_request_target:
10+
types:
11+
- opened
12+
jobs:
13+
respond-to-issue:
14+
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }}
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Determine issue or PR number
18+
id: extract
19+
run: echo "NUMBER=${{ github.event.issue.number || github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
20+
21+
- name: Respond to issue or PR
22+
uses: peter-evans/create-or-update-comment@v4
23+
with:
24+
issue-number: ${{ steps.extract.outputs.NUMBER }}
25+
body: >
26+
👋 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!
27+
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.
28+
Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with `Status: Up for grabs`.
29+
You & others like you are the reason all of this works! So thank you & happy coding! 🚀

0 commit comments

Comments
 (0)