Skip to content

chore(ci): auto-welcome first-time contributors on issues and PRs - #34

Merged
gkhngyk merged 1 commit into
mainfrom
chore/first-interaction-workflow
May 16, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
chore/first-interaction-workflow

Conversation

@gkhngyk

@gkhngyk gkhngyk commented May 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a single GitHub Actions workflow (`actions/first-interaction@v1`) that posts a one-time welcome comment when someone opens their first issue or pull request in this repo. Subsequent activity from the same person doesn't re-trigger.
  • Saves the maintainer from manually writing the same warm-welcome boilerplate every time, while keeping the door open for personalised follow-up review comments later in the thread.
  • Quietly nudges new contributors toward starring / watching the repo so they hear about related work.

What the messages say

Issue (opened by first-time user):
Asks for reproduction steps on bug reports and a use case on feature requests. Soft star + watch CTA at the end.

Pull request (opened by first-time user):
Asks for the why behind the change + a quick local test note. Soft star + watch CTA at the end.

Safety notes

  • Uses `pull_request_target` (not `pull_request`) so the workflow runs in the base repo's context with the write permission needed to comment. PR code is never checked out or executed in this job, so it's safe with forks.
  • Permissions scoped to exactly what's needed: `issues: write`, `pull-requests: write`. No `contents: write`, no secrets exposure.

Test plan

  • After merge, ask a brand-new GitHub account (or someone who's never contributed) to open a test issue → workflow fires, comment appears.
  • Same person opens an issue again → no second comment (action checks contribution history).
  • An existing contributor opens an issue → no comment (first-time check excludes them).

Adds a single GitHub Actions workflow that posts a one-time welcome
comment when a user opens their first issue or pull request in this
repo. Subsequent issues / PRs from the same person don't re-trigger.

The PR variant nudges contributors toward the kind of context that
makes review faster (the *why* behind the change, a local test note)
and a soft star + watch CTA so they stay in the loop on related work.
The issue variant asks for repro steps on bugs and a use case on
feature requests.

Uses pull_request_target instead of pull_request so the workflow runs
in the base repo's context and has write permission to comment. We
never check out or execute the PR's code in this job, so this is safe
to use with forks.

This branch was successfully deployed

1 active deployment
Preview — 63bda923 Deployed May 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant