From f0dccc7f66da836268cbc819171385659a555780 Mon Sep 17 00:00:00 2001 From: dakshsinghrathore Date: Mon, 13 May 2024 23:18:44 +0530 Subject: [PATCH 1/3] feat: automate greeting using github action --- .github/workflows/greetings.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000..8cfd3d3 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,24 @@ +name: 'Greetings' + +on: + fork: + push: + branches: [main] + issues: + types: [opened] + pull_request_target: + types: [opened] + +jobs: + welcome: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: EddieHubCommunity/gh-action-community/src/welcome@main + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: | + Congratulations, @${{ github.actor }}! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work! + pr-message: | + Great job, @${{ github.actor }}! 🎉 Thank you for submitting your pull request. Your contribution is valuable and we appreciate your efforts to improve our project. + footer: 'We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our [contributing guidelines](https://github.com/pooranjoyb/popShop/blob/dev/CONTRIBUTING.md)' \ No newline at end of file From 5191968e9bb1d78f2591490d36604a4cdc6a2404 Mon Sep 17 00:00:00 2001 From: dakshsinghrathore Date: Tue, 14 May 2024 00:34:08 +0530 Subject: [PATCH 2/3] chore: branch fix --- .github/workflows/greetings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 8cfd3d3..489951b 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -3,7 +3,7 @@ name: 'Greetings' on: fork: push: - branches: [main] + branches: [dev] issues: types: [opened] pull_request_target: From c42d1a99d5630592f0e761fab22308f6b0d3d0c7 Mon Sep 17 00:00:00 2001 From: dakshsinghrathore Date: Tue, 14 May 2024 00:54:33 +0530 Subject: [PATCH 3/3] chore: token fix --- .github/workflows/greetings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 489951b..d1de713 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v1 - uses: EddieHubCommunity/gh-action-community/src/welcome@main with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.USER_TOKEN }} issue-message: | Congratulations, @${{ github.actor }}! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work! pr-message: |