Skip to content

Commit d9c39b5

Browse files
feat: add first-time contributor bot and PR size labeler
Signed-off-by: Divinesoumyadip <soumyacode7@gmail.com>
1 parent 8f7f531 commit d9c39b5

2 files changed

Lines changed: 69 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: First-Time Contributor Bot
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
pull_request_target:
7+
types: [opened]
8+
9+
jobs:
10+
greet:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
steps:
16+
- name: Greet First-Time Contributor
17+
uses: actions/first-interaction@v1
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
issue-message: |
21+
Welcome to OpenROAD! Thanks for opening your first issue.
22+
23+
To get started:
24+
- QuickStart Guide: https://openroad.readthedocs.io/en/latest/main/README.html
25+
- Build Instructions: https://openroad.readthedocs.io/en/latest/contrib/BuildWithCMake.html
26+
- Join our Discord: https://discord.gg/x8Wz6kM4Qe
27+
28+
Please search existing issues before submitting to avoid duplicates.
29+
A maintainer will get back to you soon!
30+
pr-message: |
31+
Welcome to OpenROAD! Thanks for opening your first PR.
32+
33+
Before we review:
34+
- Contribution Guide: https://openroad.readthedocs.io/en/latest/contrib/contributing.html
35+
- Build Instructions: https://openroad.readthedocs.io/en/latest/contrib/BuildWithCMake.html
36+
- Join our Discord: https://discord.gg/x8Wz6kM4Qe
37+
38+
Please ensure:
39+
- CI passes
40+
- Code is properly formatted
41+
- Tests are included where applicable
42+
43+
A maintainer will review shortly!

.github/workflows/pr-labeler.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PR Size Labeler
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
label:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
- name: Label PR Size
14+
uses: codelytv/pr-size-labeler@v1
15+
with:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
xs_label: size/XS
18+
xs_max_size: 10
19+
s_label: size/S
20+
s_max_size: 100
21+
m_label: size/M
22+
m_max_size: 500
23+
l_label: size/L
24+
l_max_size: 1000
25+
xl_label: size/XL
26+
fail_if_xl: false

0 commit comments

Comments
 (0)