Skip to content

Commit

Permalink
added some automation and restructured the flow
Browse files Browse the repository at this point in the history
  • Loading branch information
kunjgit committed Sep 26, 2023
1 parent aa1cce8 commit a154ccb
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 2 deletions.
Empty file added .github/ISSUE_TEMPLATE/.gitkeep
Empty file.
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
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!
23 changes: 23 additions & 0 deletions .github/workflows/issue_close.yml
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}.`);
24 changes: 24 additions & 0 deletions .github/workflows/issue_open_greet.yml
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}.`);
48 changes: 48 additions & 0 deletions .github/workflows/pr_comment.yml
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.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ We welcome contributions to enhance the DU-Hacks mobile app. If you'd like to co

2. For Detailed Doucmentaion of this API refer to this : [API Endpoint Documentation](https://docs.google.com/document/d/1mfikxFtbEpYJBqVz9dVHtXajL2_0IbOgdJGeFCxc830/edit) <br>

Please review our [Contribution Guidelines](CONTRIBUTING.md) for more details.
Please review our [Contribution Guidelines](./CONTRIBUTING.md) for more details.

## License

This project is licensed under the [MIT License](LICENSE).
This project is licensed under the [MIT License](./LICENSE.txt).

---

Expand Down

0 comments on commit a154ccb

Please sign in to comment.