Skip to content

Commit ea34f91

Browse files
authored
feat: adds workflows to handle issues, PRs and to welcome new contributors. (#31)
Signed-off-by: Lorenzo Setale <lorenzo.setale@LEGO.com>
1 parent 72c54b1 commit ea34f91

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/greetings.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Greetings
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
issues:
8+
types:
9+
- opened
10+
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
15+
jobs:
16+
greeting:
17+
runs-on: ubuntu-slim
18+
steps:
19+
- uses: actions/first-interaction@1c4688942c71f71d4f5502a26ea67c331730fa4d # v3.1.0
20+
with:
21+
repo_token: ${{ secrets.GITHUB_TOKEN }}
22+
issue_message: |
23+
👋 Hi there! Welcome and thank you so much for contributing to our community!
24+
25+
If your issue don't get attention from the community, make sure to make some noise and tag the contributors 🥳
26+
27+
pr_message: |
28+
👋 Hi there! Your first PR? That's just totally AWESOME! Keep 'em coming! 🙌
29+
30+
Make sure to read the CONTRIBUTING guidelines! The community mike tame some time to give you feedback!

.github/workflows/staleissues.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Close stale issues and PRs"
2+
on:
3+
schedule:
4+
- cron: "37 2 * * *"
5+
6+
permissions: # required permissions https://github.com/actions/stale#recommended-permissions
7+
actions: write
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
16+
with:
17+
stale-issue-message: "This issue is stale. It has not had activity in 3 months."
18+
stale-pr-message: "This PR is stale. It has not had activity in 2 weeks"
19+
close-issue-message: "This issue was closed because it has been stalled for 30 days with no activity."
20+
close-pr-message: "This PR was closed because it has been stalled for 28 days with no activity."
21+
days-before-issue-stale: 90
22+
days-before-issue-close: 30
23+
days-before-pr-stale: 14
24+
days-before-pr-close: 14
25+
stale-issue-label: "stale"
26+
stale-pr-label: "stale"

0 commit comments

Comments
 (0)