-
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.
Merge pull request #23 from shuvadeepmondal/setup
Workflow added
- Loading branch information
Showing
12 changed files
with
642 additions
and
103 deletions.
There are no files selected for viewing
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,60 @@ | ||
name: Bug Report 🐛🔧 | ||
description: Report an issue or bug in the project. | ||
title: "[BUG] : " | ||
|
||
body: | ||
- type: textarea | ||
id: bug_description | ||
attributes: | ||
label: Bug Description 🐛 | ||
description: Provide a detailed description of the issue or bug you encountered. | ||
placeholder: Describe the problem, its impact, and any relevant details (e.g., error messages, affected components, etc.). | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: steps_to_reproduce | ||
attributes: | ||
label: Steps to Reproduce 🔍 | ||
description: Provide clear steps to reproduce the bug. | ||
placeholder: List the steps here, e.g., 1. Go to..., 2. Click on..., 3. See error. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: expected_behavior | ||
attributes: | ||
label: Expected Behavior ✅ | ||
description: Describe what you expected to happen instead of the observed behavior. | ||
placeholder: Clearly state the correct or expected outcome. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: actual_behavior | ||
attributes: | ||
label: Actual Behavior ❌ | ||
description: Describe what actually happened, including any error messages or anomalies. | ||
placeholder: Clearly state what occurred instead of the expected outcome. | ||
validations: | ||
required: true | ||
|
||
- type: dropdown | ||
id: contribution_program | ||
attributes: | ||
label: Select the open-source program you're contributing to | ||
multiple: true | ||
options: | ||
- cwoc24-25 | ||
- Other | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
id: contribution_guidelines | ||
attributes: | ||
label: Adherence to Contribution Guidelines | ||
description: By submitting this issue, you agree to abide by our [CONTRIBUTING GUIDELINES]. | ||
options: | ||
- label: I adhere to the [CONTRIBUTING GUIDELINES] of this project. | ||
required: true |
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,33 @@ | ||
name: Enhancement Proposal 💡🛠️ | ||
description: Suggest improvements to existing features or UI. | ||
title: "[ENHANCEMENT] : " | ||
|
||
body: | ||
- type: textarea | ||
id: enhancement_description | ||
attributes: | ||
label: Enhancement Description 🛠️ | ||
description: Provide details about the improvement you'd like to propose. | ||
placeholder: Describe what you want to improve, why it's necessary, and how it will enhance the project. | ||
validations: | ||
required: true | ||
|
||
- type: dropdown | ||
id: contribution_program | ||
attributes: | ||
label: Select the open-source program you're contributing to | ||
multiple: true | ||
options: | ||
- cwoc24-25 | ||
- Other | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
id: contribution_guidelines | ||
attributes: | ||
label: Adherence to Contribution Guidelines | ||
description: By submitting this issue, you agree to abide by our [CONTRIBUTING GUIDELINES]. | ||
options: | ||
- label: I adhere to the [CONTRIBUTING GUIDELINES] of this project. | ||
required: true |
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,33 @@ | ||
name: Changes in Frontend 🖌️✨ | ||
description: Enhance and add new functionalities to the existing frontend of the website. | ||
title: "[FRONTEND Enhancement] : " | ||
|
||
body: | ||
- type: textarea | ||
id: frontend_changes_description | ||
attributes: | ||
label: Quick Description ✨ | ||
description: Provide a brief description of the improvements or new features you plan to implement in the frontend. | ||
placeholder: Please provide a short summary of the changes or features you intend to add! Ensure to list at least 2 enhancements for your PR to be reviewed and merged. | ||
validations: | ||
required: true | ||
|
||
- type: dropdown | ||
id: contribution_program | ||
attributes: | ||
label: Select the open-source program you're contributing to | ||
multiple: true | ||
options: | ||
- cwoc24-25 | ||
- Other | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
id: contribution_guidelines | ||
attributes: | ||
label: Adherence to Contribution Guidelines | ||
description: By submitting this issue, you agree to abide by our [CONTRIBUTING GUIDELINES]. | ||
options: | ||
- label: I adhere to the [CONTRIBUTING GUIDELINES] of this project. | ||
required: true |
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,33 @@ | ||
name: New Feature Request 🚀✨ | ||
description: Propose a new feature to enhance the website. | ||
title: "[FEATURE] : " | ||
|
||
body: | ||
- type: textarea | ||
id: feature_description | ||
attributes: | ||
label: Feature Description ✨ | ||
description: Provide a detailed description of the new feature you'd like to add to the project. | ||
placeholder: Describe the functionality, purpose, and how it will benefit the project. Include any technical details, if possible. | ||
validations: | ||
required: true | ||
|
||
- type: dropdown | ||
id: contribution_program | ||
attributes: | ||
label: Select the open-source program you're contributing to | ||
multiple: true | ||
options: | ||
- cwoc24-25 | ||
- Other | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
id: contribution_guidelines | ||
attributes: | ||
label: Adherence to Contribution Guidelines | ||
description: By submitting this issue, you agree to abide by our [CONTRIBUTING GUIDELINES]. | ||
options: | ||
- label: I adhere to the [CONTRIBUTING GUIDELINES] of this project. | ||
required: true |
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,37 @@ | ||
# 🎯 Title and Issue Number | ||
|
||
<!-- Please make sure the issue number is mentioned in the Pull Request, else the PR will not be merged. --> | ||
|
||
### Closes #<issue_no> | ||
|
||
<!-- Replace `issue_no` with the issue number which is fixed in this PR --> | ||
|
||
--- | ||
|
||
# 📝 Description | ||
|
||
<!-- Provide a clear and concise description of what this PR does. Include what changes you made, why you made them, and any important details about the implementation. --> | ||
|
||
--- | ||
|
||
# 📸 Screenshots / Attachments (if applicable) | ||
|
||
<!-- Add screenshots or relevant images of the changes you made 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 followed the proper file structure. | ||
- [] I have reviewed my code to ensure it is free of errors. | ||
- [] I confirm that **my code has not been generated by any AI tool**. | ||
- [] I have provided a detailed description of the PR and uploaded relevant screenshots. | ||
|
||
--- | ||
|
||
Thank you for contributing! ❤️ | ||
|
||
Don't forget to show some support 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,25 @@ | ||
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_TOKEN }} | ||
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/shuvadeep-mondal-b6212b260/). 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}.`); |
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,40 @@ | ||
name: Issue Opening Comment and Add Labels | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
comment_and_label: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Comment on Issue Opened | ||
uses: actions/github-script@v4 | ||
with: | ||
github-token: ${{ secrets.MY_TOKEN }} | ||
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. | ||
If you'd like to work on this issue, please use the **/assignme** command to self-assign it. This is a great opportunity to enhance our project, and we're thrilled to have you onboard! 🎉 | ||
Before starting, please take a moment to review our [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md). | ||
If you have any questions or need assistance, feel free to reach out to us on [LinkedIn](https://www.linkedin.com/in/shuvadeep-mondal-b6212b260/). ❤️ | ||
Happy coding! ✨ | ||
`; | ||
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); | ||
console.log(`Commented on issue #${number}`); | ||
- name: Add Labels to the Issue | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
with: | ||
github_token: ${{ secrets.MY_TOKEN }} | ||
labels: 'cwoc' |
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,45 @@ | ||
name: Comment on PR Closure and Close Related Issue | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
close_issue: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check PR Merge Status | ||
id: pr_status | ||
run: echo "merged=${{ github.event.pull_request.merged }}" >> $GITHUB_ENV | ||
|
||
- name: Close related issues if PR is merged | ||
if: env.merged == 'true' | ||
uses: actions/github-script@v4 | ||
with: | ||
github-token: ${{ secrets.MY_TOKEN }} | ||
script: | | ||
const { owner, repo } = context.repo; | ||
const prNumber = context.payload.pull_request.number; | ||
const prBody = context.payload.pull_request.body || ''; | ||
const linkedIssues = prBody.match(/#\d+/g); // Find issue numbers in the PR body (e.g., "closes #123") | ||
console.log(`Processing PR #${prNumber}`); | ||
console.log(`PR Body: ${prBody}`); | ||
console.log(`Linked Issues Found: ${linkedIssues}`); | ||
if (linkedIssues) { | ||
for (const issueTag of linkedIssues) { | ||
const issueNumber = parseInt(issueTag.replace('#', ''), 10); | ||
console.log(`Closing linked issue: #${issueNumber}`); | ||
await github.issues.update({ | ||
owner, | ||
repo, | ||
issue_number: issueNumber, | ||
state: 'closed' | ||
}); | ||
} | ||
} else { | ||
console.log('No linked issues found in the PR body.'); | ||
} |
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,33 @@ | ||
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_TOKEN }} | ||
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 by', author); |
Oops, something went wrong.