Flash-Fathom-AI
Flash-Fathom-AI copied to clipboard
Addition of automate issue create message
Add Automated Issue Comment on Issue Creation
Description Set up a GitHub Actions workflow that automatically posts a welcome comment when a new issue is created. This guides contributors on the next steps after filing an issue.
What Needs to Be Done
- Create a new workflow file:
.github/workflows/issue-welcome.yml - The workflow should trigger on
issuesevents (type:opened) - Post an automated comment with:
- Thank you message
- Reminder to wait for issue assignment before starting work
- How to self-assign: comment
.take - Link to contribution guidelines and code of conduct
- Note about DSCWoC program and scoring
Example Workflow
name: Issue Welcome Comment
on:
issues:
types: [opened]
jobs:
comment:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
body: "Thank you for opening this issue!..."
});
Note: A .take workflow already exists at .github/workflows/take-issue.yaml for issue self-assignment. This new workflow complements it by providing guidance immediately when an issue is created.
Files to Create
.github/workflows/issue-welcome.yml
Acceptance Criteria
- [ ] Automated comment posted on every new issue
- [ ] Comment includes next steps and guidelines
- [ ] References .take command for self-assignment
- [ ] Does not conflict with existing take-issue workflow