From 7ef3c5951c0f9e8d91fc99797ddc796b0ad01fb6 Mon Sep 17 00:00:00 2001 From: Adarsh Date: Sat, 12 Oct 2024 23:45:42 +0530 Subject: [PATCH 1/3] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 38 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/custom.md | 10 ++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/custom.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..dd84ea7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 0000000..48d5f81 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,10 @@ +--- +name: Custom issue template +about: Describe this issue template's purpose here. +title: '' +labels: '' +assignees: '' + +--- + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. From aa03199d5238daf3653e32e31b9030e1fe045a5c Mon Sep 17 00:00:00 2001 From: Adarsh Date: Sat, 12 Oct 2024 23:49:23 +0530 Subject: [PATCH 2/3] Update greetings.yml --- .github/workflows/greetings.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index d8ec8f5..6c0abb9 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -31,12 +31,14 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | + const { context } = require('@actions/github'); const prNumber = context.payload.pull_request.number; + const prAuthor = context.payload.pull_request.user.login; // Get the username of the PR author const message = ` - 🎉 Congratulations on getting your pull request merged! Thank you for your contribution to the project. + 🎉 Congratulations @${prAuthor} on getting your pull request merged! Thank you for your contribution to the project. If you enjoy working with us, consider giving us a star on GitHub ⭐ and following us on our socials! `; - await github.issues.createComment({ + await github.rest.issues.createComment({ ...context.repo, issue_number: prNumber, body: message, From 6146b4a352fa3da9312a3ae844f268af4ab062e2 Mon Sep 17 00:00:00 2001 From: Adarsh Date: Sat, 12 Oct 2024 23:52:54 +0530 Subject: [PATCH 3/3] Update greetings.yml --- .github/workflows/greetings.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 6c0abb9..d33ba9b 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -31,15 +31,13 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const { context } = require('@actions/github'); const prNumber = context.payload.pull_request.number; - const prAuthor = context.payload.pull_request.user.login; // Get the username of the PR author const message = ` - 🎉 Congratulations @${prAuthor} on getting your pull request merged! Thank you for your contribution to the project. + 🎉 Congratulations on getting your pull request merged! Thank you for your contribution to the project. If you enjoy working with us, consider giving us a star on GitHub ⭐ and following us on our socials! `; - await github.rest.issues.createComment({ + await github.pulls.createReviewComment({ ...context.repo, - issue_number: prNumber, + pull_number: prNumber, body: message, });