From 797958257f66066fe93f563c02970e0a03bc8b02 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 10 Oct 2025 14:49:40 +0800 Subject: [PATCH 1/6] CI: Migrate the welcome bot to GitHub Actions --- .github/config.yml | 23 ---------------- .github/workflows/welcome.yml | 49 +++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 23 deletions(-) delete mode 100644 .github/config.yml create mode 100644 .github/workflows/welcome.yml diff --git a/.github/config.yml b/.github/config.yml deleted file mode 100644 index de191cbb3a3..00000000000 --- a/.github/config.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Configuration for welcome bot - https://github.com/behaviorbot/welcome -######################################################################################## -# Comment to be posted to on first time issues -newIssueWelcomeComment: | - πŸ‘‹ Thanks for opening your first issue here! 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). - -# Comment to be posted to on PRs from first time contributors in your repository -newPRWelcomeComment: | - πŸ’– Thanks for opening this pull request! πŸ’– - - 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). - - A few things to keep in mind: - - * 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. - * 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. - * No matter what, we are really grateful that you put in the effort to do this! πŸŽ‰ - -# Comment to be posted to on pull requests merged by a first time user -firstPRMergeComment: | - πŸŽ‰πŸŽ‰πŸŽ‰ Congrats on merging your first pull request and welcome to the team! πŸŽ‰πŸŽ‰πŸŽ‰ - - Please open a new pull request to add yourself to the `AUTHORS.md` file. We hope that this was a good experience for you. Let us know if there is any way that the contributing process could be improved. diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml new file mode 100644 index 00000000000..552ae78c5e7 --- /dev/null +++ b/.github/workflows/welcome.yml @@ -0,0 +1,49 @@ +# Greet first-time contributors. + +name: Greet First-Time Contributors + +on: + pull_request: + types: + - opened + issues: + types: + - opened + +permissions: + issues: write + pull-requests: write + +jobs: + greeting: + name: Greet First-Time Contributors + runs-on: ubuntu-latest + + steps: + - uses: actions/first-interaction@v3.1.0 + with: + issue-message: | + πŸ‘‹ Thanks for opening your first issue here! + 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). + + pr-message: | + πŸ’– Thanks for opening this pull request! πŸ’– + + 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). + + A few things to keep in mind: + + * 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. + * 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. + * No matter what, we are really grateful that you put in the effort to do this! πŸŽ‰ + + After you PR is merged, please open a new pull request to add yourself to the + `AUTHORS.md` file. We hope that this was a good experience for you. + Let us know if there is any way that the contributing process could be improved. \ No newline at end of file From f5047830cae86144caf5c87e76c09a53ae08ffe6 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 10 Oct 2025 14:52:00 +0800 Subject: [PATCH 2/6] Fix typos --- .github/workflows/welcome.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index 552ae78c5e7..3c71b674f40 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -22,14 +22,14 @@ jobs: steps: - uses: actions/first-interaction@v3.1.0 with: - issue-message: | + issue_message: | πŸ‘‹ Thanks for opening your first issue here! 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). - pr-message: | + pr_message: | πŸ’– Thanks for opening this pull request! πŸ’– Please make sure you read our [contributing guidelines](https://github.com/GenericMappingTools/pygmt/blob/main/CONTRIBUTING.md) From fe058f3bfadb3de292947941e1571506e2c835e6 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 10 Oct 2025 14:52:18 +0800 Subject: [PATCH 3/6] Fix styling --- .github/workflows/welcome.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index 3c71b674f40..d0eba7d1e43 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -46,4 +46,4 @@ jobs: After you PR is merged, please open a new pull request to add yourself to the `AUTHORS.md` file. We hope that this was a good experience for you. - Let us know if there is any way that the contributing process could be improved. \ No newline at end of file + Let us know if there is any way that the contributing process could be improved. From 1bbfde229e47e3ebde7badb968fc694fffbe99e9 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 10 Oct 2025 14:56:06 +0800 Subject: [PATCH 4/6] Fix styling --- .github/workflows/welcome.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index d0eba7d1e43..fee80b02f59 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -23,27 +23,17 @@ jobs: - uses: actions/first-interaction@v3.1.0 with: issue_message: | - πŸ‘‹ Thanks for opening your first issue here! - 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). + πŸ‘‹ Thanks for opening your first issue here! 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). pr_message: | πŸ’– Thanks for opening this pull request! πŸ’– - 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). + 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). A few things to keep in mind: - * 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. - * 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. + * 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. + * 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. * No matter what, we are really grateful that you put in the effort to do this! πŸŽ‰ - After you PR is merged, please open a new pull request to add yourself to the - `AUTHORS.md` file. We hope that this was a good experience for you. - Let us know if there is any way that the contributing process could be improved. + After your PR is merged, please open a new pull request to add yourself to the `AUTHORS.md` file. We hope that this was a good experience for you. Let us know if there is any way that the contributing process could be improved. From e4b6d843878c74a9b05ae9e407cd00848da8c041 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Sun, 12 Oct 2025 08:55:00 +0800 Subject: [PATCH 5/6] Improve message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Yvonne FrΓΆhlich <94163266+yvonnefroehlich@users.noreply.github.com> --- .github/workflows/welcome.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index fee80b02f59..f61d4177f4b 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -36,4 +36,4 @@ jobs: * 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. * No matter what, we are really grateful that you put in the effort to do this! πŸŽ‰ - After your PR is merged, please open a new pull request to add yourself to the `AUTHORS.md` file. We hope that this was a good experience for you. Let us know if there is any way that the contributing process could be improved. + 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. From 34ae354e826f27ce9ad7edee695e188902da2cf6 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Sun, 12 Oct 2025 23:01:34 +0800 Subject: [PATCH 6/6] Separate paragraphs in issue message --- .github/workflows/welcome.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index f61d4177f4b..80557d18e9a 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -23,7 +23,9 @@ jobs: - uses: actions/first-interaction@v3.1.0 with: issue_message: | - πŸ‘‹ Thanks for opening your first issue here! 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). + πŸ‘‹ Thanks for opening your first issue here! + + 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). pr_message: | πŸ’– Thanks for opening this pull request! πŸ’– @@ -36,4 +38,4 @@ jobs: * 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. * No matter what, we are really grateful that you put in the effort to do this! πŸŽ‰ - 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. + 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.