Skip to content

Commit

Permalink
feat : workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Puskar-Roy committed Jul 20, 2024
1 parent 3f654ba commit 243ad27
Show file tree
Hide file tree
Showing 10 changed files with 407 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/ISSUE_TEMPLATE/bugReport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Bug Report 🐞
description: Report a bug found in the project.
title: "[BUG] : "

body:
- type: textarea
id: bug_description
attributes:
label: Bug Description 🐞
description: Enter a detailed description of the bug you encountered.
placeholder: Please provide a detailed summary of the bug.
validations:
required: true

- type: dropdown
id: bug_location
attributes:
label: Bug Location 🗺️
description: Specify where the bug is present.
options:
- Frontend
- Backend
- Both
validations:
required: true

- type: textarea
id: steps_to_reproduce
attributes:
label: Steps to Reproduce 🔄
description: Provide the steps to reproduce the bug.
placeholder: List the steps needed to reproduce the bug.
validations:
required: true

- type: textarea
id: expected_behavior
attributes:
label: Expected Behavior ✔️
description: Describe what you expected to happen.
placeholder: Describe the expected behavior.
validations:
required: true

- type: textarea
id: actual_behavior
attributes:
label: Actual Behavior ❌
description: Describe what actually happened.
placeholder: Describe the actual behavior.
validations:
required: true

- type: checkboxes
id: bug_solution
attributes:
label: Proposed Solution
description: How do you plan to fix the bug?
options:
- label: I will provide a pull request to fix this bug.
- label: I need help to fix this bug.
validations:
required: true

- type: checkboxes
id: code_of_conduct
attributes:
label: Adherence to Code of Conduct
description: By submitting this issue, you agree to abide by our [CONTRIBUTING GUIDELINES.](../blob/master/CONTRIBUTING.md)
options:
- label: I adhere to the [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md) of this project.
required: true
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/docsError.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Documentation Issues!📝
description: Have you noticed any errors in the documentation?
title: "[Documentation Issue] : "

body:
- type: textarea
id: documentation-issues
attributes:
label: Brief Description 📝
description: Enter a brief description of the documentation errors you have identified.
placeholder: You need at least 5 documentation errors to get your PRs merged.
validations:
required: true

- type: dropdown
id: open-source-contribution
attributes:
label: Select the open-source program you are contributing to
multiple: true
options:
- Other
validations:
required: true

- type: checkboxes
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to our [CONTRIBUTING GUIDELINES.](../blob/master/CONTRIBUTING.md)
options:
- label: I agree to the [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md) of this project.
required: true
52 changes: 52 additions & 0 deletions .github/ISSUE_TEMPLATE/newAPiFeature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name : Add new features in API !🤓
description: Add a API feature!
title: "[ADD API] : "


body:
- type: textarea
id: api-summary
attributes:
label: API Summary 📝
description: Provide a concise summary of the API feature that you created.
placeholder: Please include a brief overview and mention the purpose of your feature.
validations:
required: true

- type: textarea
id: api-development
attributes:
label: Development Approach 🚀
description: Give a brief explanation of your features.
placeholder: Keep it concise and to the point!
validations:
required: true

- type: dropdown
id: api-deployment
attributes:
label: Deployment Status
description: Have you deployed your API?
multiple: false
options:
- "Yes"
- "No"

- type: dropdown
id: open-source-contribution
attributes:
label: Select the open source program you are contributing to
multiple: true
options:
- Other
validations:
required: true

- type: checkboxes
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to our [CONTRIBUTING GUIDELINES.](../blob/master/CONTRIBUTING.md)
options:
- label: I adhere to the [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md) of this project.
required: true
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/newFrontendFeatures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Add new features in Frontend!✨
description: Add a Frontend feature!
title: "[ADD FRONTEND] : "

body:
- type: textarea
id: frontend-summary
attributes:
label: Frontend Summary 📝
description: Provide a concise summary of the frontend feature that you created.
placeholder: Please include a brief overview and mention the purpose of your feature.
validations:
required: true

- type: textarea
id: frontend-development
attributes:
label: Development Approach 🚀
description: Give a brief explanation of your features.
placeholder: Keep it concise and to the point!
validations:
required: true

- type: dropdown
id: frontend-deployment
attributes:
label: Deployment Status
description: Have you deployed your frontend feature?
multiple: false
options:
- "Yes"
- "No"

- type: dropdown
id: open-source-contribution
attributes:
label: Select the open source program you are contributing to
multiple: true
options:
- Other
validations:
required: true

- type: checkboxes
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to our [CONTRIBUTING GUIDELINES.](../blob/master/CONTRIBUTING.md)
options:
- label: I adhere to the [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md) of this project.
required: true
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 mentioned in the 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 the proper file structure.
- [ ] I have gone through the repository guidelines.

Thank you for contributing! ❤️

Don't forget to show some support by ⭐ the repository!
26 changes: 26 additions & 0 deletions .github/workflows/closeIssue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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.MY_SEC }}
script: |
const { owner, repo, number } = context.issue;
const commentAuthor = context.payload.issue.user.login;
const commentBody = `
Hello @${commentAuthor}! We'd like to inform you that the issue has been resolved and is now closed. We appreciate your understanding and look forward to your continued involvement with our repository!🤗
If you encounter any further issues, please don't hesitate to reach out to us on [LinkedIn](https://www.linkedin.com/in/puskar-roy/). Thank you for your support!❣️
Happy coding!✨ We hope to see you again soon!❣️
`;
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
console.log(`Commented on the issue: ${commentBody}.`);
26 changes: 26 additions & 0 deletions .github/workflows/issueOpen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Issue Opening Comment!
on:
issues:
types:
- opened

jobs:
comment:
runs-on: ubuntu-latest

steps:
- name: Issue Opened
uses: actions/github-script@v4
with:
github-token: ${{ secrets.MY_SEC }}
script: |
const { owner, repo, number } = context.issue;
const commentAuthor = context.payload.issue.user.login;
const commentBody = `Hey @${commentAuthor}👋! Thanks for raising this issue and demonstrating your interest in contributing to our project!🚀
We value your engagement and eagerly anticipate your contributions. Should you wish to get involved, please use the /assignme command to self-assign the issue.
This issue provides an excellent opportunity for us to enhance our project, and we're excited to have you join us! Please take a moment to review our [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md) before getting started.
If you have any questions or need assistance, feel free to reach out to us on [LinkedIn](https://www.linkedin.com/in/puskar-roy/).❤️
`;
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
console.log(`Commented on the issue: ${commentBody}.`);
46 changes: 46 additions & 0 deletions .github/workflows/prMerged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Comment on PR Closure

on:
pull_request_target:
types:
- closed

jobs:
comment:
runs-on: ubuntu-latest

steps:
- name: Check PR Merge Status and Comment
id: comment_on_pr
if: github.event.pull_request.merged == true
uses: actions/github-script@v4
with:
github-token: ${{ secrets.MY_SEC }}
script: |
const { owner, repo, number } = context.issue;
const commentAuthor = context.payload.pull_request.user.login;
const commentBody = `
Hey @${commentAuthor}! We're excited to let you know that your pull request has been merged into the APIverse🚀🎁
Your commitment, effort, and expertise have greatly influenced our project, and we're incredibly thankful for your contributions.😇
Your code is now part of our expanding ecosystem, assisting developers worldwide in creating exceptional APIs.❣️🔥
Happy Coding! ✨ We look forward to seeing you again soon!❣️
`;
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
console.log(`Commented on the closed PR: ${commentBody}.`);
- name: Check PR Merge Status and Comment
if: github.event.pull_request.merged != true
uses: actions/github-script@v4
with:
github-token: ${{ secrets.MY_SEC }}
script: |
const { owner, repo, number } = context.issue;
const commentAuthor = context.payload.pull_request.user.login;
const commentBody = `
Hey @${commentAuthor}, I wanted to inform you that we've decided to close your pull request.🙇
If you have any questions or need assistance, please don't hesitate to reach out to us on Discord.
Thank you for your understanding!❣️
Happy coding! ✨ We hope to see you again soon!❣️
`;
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
console.log(`Commented on the closed PR: ${commentBody}.`);
23 changes: 23 additions & 0 deletions .github/workflows/prOpen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pull Request Welcome Comment
on:
pull_request_target:
types:
- opened

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Comment on Opening Pull Request
uses: actions/github-script@v4
with:
github-token: ${{ secrets.MY_SEC }}
script: |
const { owner, repo, number } = context.issue;
const author = context.payload.sender.login;
const commentBody = `Hello @${ author }, thank you for your pull request! We will review it shortly. 😇❣️
Your contributions help us grow and improve our project. Please make sure you have read and followed our [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md).
Your efforts are appreciated, and we value your participation in our community. Don't forget to ⭐ our repository!
Happy coding!✨`;
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });
console.log('Commented on PR');
Loading

0 comments on commit 243ad27

Please sign in to comment.