-
-
Notifications
You must be signed in to change notification settings - Fork 757
96 lines (78 loc) · 3.22 KB
/
welcome.yml
File metadata and controls
96 lines (78 loc) · 3.22 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Welcome New Contributors Workflow
# Automatically welcomes first-time contributors to AIOS
#
# Reference: https://github.com/actions/first-interaction
# Story: OSR-4 - GitHub Community Setup
name: Welcome New Contributors
on:
issues:
types: [opened]
pull_request:
types: [opened]
permissions:
issues: write
pull-requests: write
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- name: Welcome first-time contributors
uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
👋 **Welcome to AIOS!**
Thanks for opening your first issue! We're excited to have you here.
**What happens next?**
- A maintainer will review your issue and add appropriate labels
- We'll respond as soon as possible
- Feel free to join the discussion in our [Community Discussions](https://github.com/SynkraAI/aios-core/discussions)
**Helpful Resources:**
- 📖 [Contributing Guide](CONTRIBUTING.md)
- 💬 [Community Discussions](https://github.com/SynkraAI/aios-core/discussions)
- 📚 [Documentation](docs/)
**Labels Guide:**
- `good-first-issue` - Great for newcomers
- `help-wanted` - We need community help
- `bug` - Something isn't working
- `enhancement` - Feature requests
Thanks for helping make AIOS better! 🚀
pr-message: |
🎉 **Welcome to AIOS!**
Thanks for submitting your first pull request! We're thrilled to have you contribute.
**What happens next?**
1. Automated checks will run on your PR
2. A maintainer will review your changes
3. We may suggest improvements or ask questions
4. Once approved, we'll merge your contribution!
**PR Checklist:**
- [ ] Tests pass locally (`npm test`)
- [ ] Linting passes (`npm run lint`)
- [ ] Documentation updated (if applicable)
- [ ] Commit messages follow [conventional commits](https://www.conventionalcommits.org/)
**Helpful Resources:**
- 📖 [Contributing Guide](CONTRIBUTING.md)
- 📜 [Code of Conduct](CODE_OF_CONDUCT.md)
- 🏗️ [Coding Standards](docs/architecture/coding-standards.md)
Thanks for contributing to AIOS! 🚀
- name: Add triage label to new issues
if: github.event_name == 'issues'
uses: actions/github-script@v7
with:
script: |
const labels = await github.rest.issues.listLabelsOnIssue({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number
});
const hasTriageLabel = labels.data.some(label =>
label.name === 'needs-triage'
);
if (!hasTriageLabel) {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['needs-triage']
});
}