Skip to content

Commit ce57041

Browse files
CI: Migrate the welcome bot to GitHub Actions (#4149)
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
1 parent a1faeaa commit ce57041

File tree

2 files changed

+41
-23
lines changed

2 files changed

+41
-23
lines changed

.github/config.yml

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

.github/workflows/welcome.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
17+
jobs:
18+
greeting:
19+
name: Greet First-Time Contributors
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/first-interaction@v3.1.0
24+
with:
25+
issue_message: |
26+
👋 Thanks for opening your first issue here!
27+
28+
Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our [contributing guidelines](https://github.com/GenericMappingTools/pygmt/blob/main/CONTRIBUTING.md) and [code of conduct](https://github.com/GenericMappingTools/.github/blob/main/CODE_OF_CONDUCT.md).
29+
30+
pr_message: |
31+
💖 Thanks for opening this pull request! 💖
32+
33+
Please make sure you read our [contributing guidelines](https://github.com/GenericMappingTools/pygmt/blob/main/CONTRIBUTING.md) and abide by our [code of conduct](https://github.com/GenericMappingTools/.github/blob/main/CODE_OF_CONDUCT.md).
34+
35+
A few things to keep in mind:
36+
37+
* 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.
38+
* All new features should be documented. It helps to write the docstrings for your functions/classes before writing the code. This will help you think about your code design and results in better code.
39+
* No matter what, we are really grateful that you put in the effort to do this! 🎉
40+
41+
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. After your PR is merged, feel free to open a new pull request to add yourself to the `AUTHORS.md` file.

0 commit comments

Comments
 (0)