Skip to content

Commit a8e6acf

Browse files
WaylandYangclaude
andcommitted
ci: greet first-time contributors on their first issue / PR
Adds a small GitHub Action (actions/first-interaction) that posts one short note the first time someone opens an issue or PR. Motivated by PR #6 — the project's first external contribution, which sat unnoticed for a day. A first contributor should get an immediate signal that the repo is alive and their work was seen. Uses pull_request_target so the token can comment on fork PRs; the action only posts a comment and never checks out or runs PR code, so the usual pull_request_target risk does not apply. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0bf9348 commit a8e6acf

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/greet.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Greet first-time contributors
2+
3+
# Posts a short note the first time someone opens an issue or PR here.
4+
# Uses pull_request_target so the token can comment on PRs from forks;
5+
# the action only posts a comment, it never checks out or runs PR code.
6+
7+
on:
8+
issues:
9+
types: [opened]
10+
pull_request_target:
11+
types: [opened]
12+
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
17+
jobs:
18+
greet:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/first-interaction@v1
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
issue-message: >
25+
Thanks for the first issue here. If it's a bug, a small repro
26+
(the manifest plus the call that misbehaves) helps a lot. If
27+
it's a question or an idea, that's fine too.
28+
pr-message: >
29+
Thanks for the PR — first one from you here. A maintainer will
30+
get to it. If CI comes back red, the commands to reproduce the
31+
checks locally (pytest, ruff check src tests) are in
32+
CONTRIBUTING.md.

0 commit comments

Comments
 (0)