Skip to content

Commit 5ed7023

Browse files
authored
CI: Migrate the welcome bot to GitHub Actions (#8814)
1 parent c6689df commit 5ed7023

File tree

2 files changed

+43
-25
lines changed

2 files changed

+43
-25
lines changed

.github/config.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/welcome.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Greet first-time contributors.
2+
3+
name: Greet First-Time Contributors
4+
5+
on:
6+
pull_request:
7+
types:
8+
- opened
9+
issues:
10+
types:
11+
- opened
12+
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
id-token: write
17+
contents: read
18+
19+
jobs:
20+
greeting:
21+
name: Greet First-Time Contributors
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/first-interaction@v3.1.0
26+
with:
27+
issue_message: |
28+
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. We appreciate that you took the time to contribute!
29+
30+
Please make sure you read our [Contributing Guide](https://github.com/GenericMappingTools/gmt/blob/master/CONTRIBUTING.md) and abide by our [Code of Conduct](https://github.com/GenericMappingTools/.github/blob/main/CODE_OF_CONDUCT.md).
31+
32+
pr_message: |
33+
💖 Thanks for opening this pull request! 💖
34+
35+
Please make sure you read our [Contributing Guide](https://github.com/GenericMappingTools/gmt/blob/master/CONTRIBUTING.md) and abide by our [Code of Conduct](https://github.com/GenericMappingTools/.github/blob/main/CODE_OF_CONDUCT.md).
36+
37+
A few things to keep in mind:
38+
39+
* If you need help writing tests, take a look at the existing ones for inspiration. If you don't know where to start, let us know and we'll walk you through it.
40+
* All new features should be documented. It helps to write the comments for your functions, describing what they do and **all** arguments, before writing the code. This will help you think about your code design and results in better code.
41+
* We are grateful that you put in the effort to do this! 🎉
42+
43+
We hope that the contributing process will be a good experience for you. Please let us know if there is any way that it could be improved.

0 commit comments

Comments
 (0)