-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added some automation and restructured the flow
- Loading branch information
Showing
7 changed files
with
117 additions
and
2 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 🎯 Title and Issue Number | ||
|
||
<!-- Please make sure issue number is mention in Pull Request else PR will not be merged. --> | ||
|
||
### Closes #<issue_no> | ||
|
||
<!-- Replace `issue_no` with the issue number which is fixed in this PR --> | ||
|
||
# 🗒️ Checklist: | ||
|
||
- [] I have mentioned the issue number in my Pull Request. | ||
- [] I have gone through `rules of when PR will get merged.` | ||
- [] I have commented my code, particularly in hard-to-understand areas | ||
- [] I have created a helpful and easy to understand `README.md` | ||
- [] I have followed proper file structure. | ||
- [] I have gone through [CONTRIBUTING GUIDELINES.md](../blob/main/CONTRIBUTING.md). | ||
|
||
Thank you for contributing!❤️ | ||
|
||
Don't forget to show some love by ⭐ the repository! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Close issue comment | ||
on: | ||
issues: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
comment: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Issue close | ||
uses: actions/github-script@v4 | ||
with: | ||
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
script: | | ||
const { owner, repo, number } = context.issue; | ||
const commentauthor = context.payload.issue.user.login; | ||
const commentBody = `Hey @${commentauthor} ! I wanted to inform you that we have closed issue.Thank you for your understanding, and we look forward to your continued engagement with our repository🤗.\n In case of any issues, you can contact us on [Discord](https://discord.gg/mv4NTzN). \nThank you! ❣️\nHappy Coding! ✨\nWill See you soon❣️ | ||
`; | ||
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); | ||
console.log(`Commented on the issue: ${commentBody}.`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Comment on opening issue! | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
comment: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Issue Opened | ||
uses: actions/github-script@v4 | ||
with: | ||
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
script: | | ||
const { owner, repo, number } = context.issue; | ||
const commentauthor = context.payload.issue.user.login; | ||
const commentBody = `Greetings @${commentauthor}🎀 ! , We are excited to have you dive into another issue with us!🚀\nYour involvement in our project has been invaluable, and we're confident that your skills and insights will help us conquer this challenge😇. This issue represents an exciting opportunity for us to improve and enhance our project, and we are thrilled to have you on board.\n We request you to follow [CONTRIBUTING GUIDELINES](../blob/main/CONTRIBUTING.md).\nLooking for your PR soon! \n In case of any issues, you can contact us on [Discord](https://discord.gg/mv4NTzN).❣️`; | ||
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); | ||
console.log(`Commented on the issue: ${commentBody}.`); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Pull Request related comments | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- closed | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Comment on Opening Pull Request | ||
uses: wow-actions/auto-comment@v1 | ||
with: | ||
GITHUB_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
pullRequestOpened: | | ||
@{{ author }}, Thank you for creating PR! We will review it super soon. 😇❣️ | ||
We hope you have followed [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md). | ||
Thank you for being an essential part of our community. Together, we'll keep building amazing things! | ||
Don’t forget to ⭐ our repository! | ||
Happy Coding!✨ | ||
Will See you soon❣️ | ||
- name : Merging pull Request | ||
uses : wow-actions/auto-comment@v1 | ||
with : | ||
GITHUB_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
pullRequestMerged: | | ||
@{{ author }} We're thrilled to inform you that your pull request has been successfully merged ! | ||
Your hard work, dedication, and expertise have made a significant impact on our project, and we couldn't be more grateful for your contributions.😇 | ||
Happy Coding! ✨ | ||
Will See you soon❣️ | ||
- name : Closing pull Request | ||
uses : wow-actions/auto-comment@v1 | ||
with : | ||
GITHUB_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
pullRequestClosed: | | ||
@{{ author }} ,I wanted to reach out and let you know that we have decided to close your pull request.🙇 | ||
While we truly appreciate your effort and dedication in contributing to our project, after careful consideration, we have determined that this particular PR may not align with our current goals or requirements.😢 | ||
In case of any issues, you can contact us on [Discord](https://discord.gg/mv4NTzN). | ||
Thank you! ❣️ | ||
Happy Coding! ✨ | ||
Will See you soon❣️ | ||
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters