From 6881139631a6da155b2464edbe100f96ef88215b Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Wed, 15 Oct 2025 09:36:15 +0800 Subject: [PATCH 1/2] CI: Migrate the welcome bot to GitHub Actions --- .github/config.yml | 25 --------------------- .github/workflows/welcome.yml | 41 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 25 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 d1c3a51db2d..00000000000 --- a/.github/config.yml +++ /dev/null @@ -1,25 +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. We appreciate that you took the time to contribute! - - 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). - -# 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 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). - - 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 comments below for your functions describing the it, **all** arguments, and return types before writing the code. This will help you think about your code design and results in better code. - * We are 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! 🎉🎉🎉 - - 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..643bb8fbd80 --- /dev/null +++ b/.github/workflows/welcome.yml @@ -0,0 +1,41 @@ +# 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. We appreciate that you took the time to contribute! + + 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). + + pr_message: | + 💖 Thanks for opening this pull request! 💖 + + 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). + + 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 comments below for your functions describing the it, **all** arguments, and return types before writing the code. This will help you think about your code design and results in better code. + * We are 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. From cf50df56ac906e0d8d369f8fb4a8b3543b30975d Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Wed, 15 Oct 2025 20:08:15 +0800 Subject: [PATCH 2/2] Update .github/workflows/welcome.yml --- .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 643bb8fbd80..f3281934899 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -35,7 +35,7 @@ jobs: 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 comments below for your functions describing the it, **all** arguments, and return types before writing the code. This will help you think about your code design and results in better code. + * 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. * We are 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.