Skip to content

fix: lesson frontmatter cleanup + CI gates documentation #233

fix: lesson frontmatter cleanup + CI gates documentation

fix: lesson frontmatter cleanup + CI gates documentation #233

name: Newbie Welcome
on:
issue_comment:
types: [created]
permissions:
issues: write
pull-requests: read
jobs:
welcome:
if: |
!github.event.issue.pull_request &&
contains(github.event.issue.labels.*.name, 'good first issue') &&
!contains(fromJSON('["MEMBER", "OWNER", "COLLABORATOR"]'), github.event.comment.author_association)
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
const body = "## 👋 Welcome to MisakaNet!\n\n" +
"You're commenting on a **Good First Issue** \u2014 a great place to start contributing.\n\n" +
"### Quick Start\n\n" +
"1. **Read** the [CONTRIBUTING.md](https://github.com/Ikalus1988/MisakaNet/blob/main/CONTRIBUTING.md) guide\n" +
"2. **Claim** this issue by commenting `/claim` below \u2014 you'll get an 8-hour exclusive window\n" +
"3. **Implement** your changes with `git commit -s` (adds the required Signed-off-by)\n" +
"4. **Submit** a PR \u2014 CI will audit it automatically\n\n" +
"### Human-First Policy\n\n" +
"This project supports both human and AI contributors. Whichever you are, the rules are the same:\n" +
"- Every commit must be `--signoff`\n" +
"- All Acceptance Criteria must be checked\n" +
"- Tests must pass\n\n" +
"Need help? Just ask in this thread. Happy coding! 🚀\n\n" +
"⭐ If you find this project useful, consider [starring the repo](https://github.com/Ikalus1988/MisakaNet) \u2014 it helps more people discover the network.";
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: body
});