forked from magic-peach/reframe
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (55 loc) · 2.47 KB
/
Copy pathwelcome-issue-bot.yml
File metadata and controls
62 lines (55 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: 👋 Issue Welcome Bot
on:
issues:
types: [opened]
permissions:
issues: write
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- name: Welcome new issue reporters
uses: actions/github-script@v9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issue = context.payload.issue;
const owner = context.repo.owner;
const repo = context.repo.repo;
const username = issue.user.login;
if (issue.user.type === 'Bot') return;
const MARKER = '<!-- issue-welcome-reframe-v1 -->';
const { data: existing } = await github.rest.issues.listComments({
owner, repo, issue_number: issue.number, per_page: 10
});
if (existing.some(c => c.body.includes(MARKER))) return;
const body = [
MARKER,
`## 👋 Thanks for opening an issue, @${username}!`,
``,
`Our maintainers will review this shortly 🚀`,
``,
`### Before you start working`,
``,
`- 📖 Read the [CONTRIBUTING.md](https://github.com/${owner}/${repo}/blob/main/CONTRIBUTING.md) guide`,
`- 💬 Wait for a maintainer to **assign** you the issue before starting work`,
`- 🔍 Search for [existing issues](https://github.com/${owner}/${repo}/issues) to avoid duplicates`,
``,
`### For GSSoC'26 contributors`,
``,
`If you're contributing under **GirlScript Summer of Code 2026**, please mention it in your comment when requesting assignment:`,
``,
`> *"I'd like to work on this — contributing under GSSoC'26"*`,
``,
`### Architecture notes`,
``,
`Reframe is a **static Next.js app** with \`output: "export"\`. Key points:`,
`- All video processing uses FFmpeg.wasm (client-side, no server)`,
`- \`headers()\` in \`next.config.ts\` won't work — use \`vercel.json\` instead`,
`- \`not-found.tsx\` requires \`public/404.html\` + \`vercel.json\` routes config`,
``,
`Happy contributing! ⭐ [Star the repo](https://github.com/${owner}/${repo}) if you find it useful!`,
].join('\n');
await github.rest.issues.createComment({
owner, repo, issue_number: issue.number, body
});