diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..a5cf6d7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,54 @@ +--- + +name: Bug report + +about: Create a report to help us improve + +title: "\[BUG] " + +labels: bug + +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. + + + +\*\*Additional context\*\* + +Add any other context about the problem here. + + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..c12ac25 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,40 @@ +--- + +name: Feature request + +about: Suggest an idea for this project + +title: "\[FEATURE] " + +labels: enhancement + +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. + + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..752f98c --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,17 @@ + +## Description +Please include a summary of the changes and the related issue. + +Fixes # (issue number) + +## Type of change +- [ ] Bug fix +- [ ] New feature +- [ ] Documentation update +- [ ] Other (please describe): + +## Checklist +- [ ] My code follows the style guidelines of this project +- [ ] I have performed a self-review of my code +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have added tests that prove my fix is effective or that my feature works diff --git a/.github/workflows/closeIssue.yml b/.github/workflows/closeIssue.yml new file mode 100644 index 0000000..8484787 --- /dev/null +++ b/.github/workflows/closeIssue.yml @@ -0,0 +1,24 @@ +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!๐ค + 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}.`);# trigger diff --git a/.github/workflows/issueOpen.yml b/.github/workflows/issueOpen.yml new file mode 100644 index 0000000..a619999 --- /dev/null +++ b/.github/workflows/issueOpen.yml @@ -0,0 +1,25 @@ +name: Issue opened comment +on: + issues: + types: + - opened + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Issue open + 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 = `Hi @${commentauthor}! ๐ + Thank you for opening this issue. Our team will review it soon. Meanwhile, please make sure youโve followed the issue template correctly and provided all the necessary details. + We're excited to collaborate with you under GSSoC'25 ๐ + Happy Coding! ๐`; + + await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); + console.log(`Commented on the issue: ${commentBody}.`);# trigger diff --git a/.github/workflows/pullReqMerge.yml b/.github/workflows/pullReqMerge.yml new file mode 100644 index 0000000..56cae85 --- /dev/null +++ b/.github/workflows/pullReqMerge.yml @@ -0,0 +1,26 @@ +name: PR merged comment +on: + pull_request: + types: + - closed + +jobs: + comment: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + + steps: + - name: PR merged + 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 prAuthor = context.payload.pull_request.user.login; + const commentBody = `Congratulations @${prAuthor}! ๐ + Your pull request has been successfully merged. + Thank you for your contribution and being part of our project! ๐ซ + Keep coding and keep shining! ๐`; + + await github.issues.createComment({ owner, repo, issue_number: prNumber, body: commentBody });# trigger diff --git a/.github/workflows/pullReqOpen.yml b/.github/workflows/pullReqOpen.yml new file mode 100644 index 0000000..9c55a9f --- /dev/null +++ b/.github/workflows/pullReqOpen.yml @@ -0,0 +1,24 @@ +name: PR opened comment +on: + pull_request: + types: + - opened + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: PR open + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.MY_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const prAuthor = context.payload.pull_request.user.login; + const commentBody = `Hey @${prAuthor}! ๐ + Thanks for submitting your PR! Our maintainer will review it shortly. + Please ensure your PR follows the contributing guidelines. + Keep contributing and growing! ๐ฑโจ`; + + await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody });# trigger diff --git a/.github/workflows/selfAssign.yml b/.github/workflows/selfAssign.yml new file mode 100644 index 0000000..7614653 --- /dev/null +++ b/.github/workflows/selfAssign.yml @@ -0,0 +1,29 @@ +name: Self-assign on issue comment +on: + issue_comment: + types: + - created + +jobs: + assign: + if: contains(github.event.comment.body, '/assign') + runs-on: ubuntu-latest + + steps: + - name: Assign user to issue + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.MY_TOKEN }} + script: | + const issueNumber = context.issue.number; + const assignee = context.payload.comment.user.login; + + await github.issues.addAssignees({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issueNumber, + assignees: [assignee] + }); + + console.log(`Assigned @${assignee} to issue #${issueNumber}`); +# trigger diff --git a/LICENSE b/LICENSE index b977304..80928fd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2025 NAYANIKA MUKHERJEE - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2025 NAYANIKA MUKHERJEE + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index d58bb2e..c3a075b 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,111 @@ -# React + Vite Starter Template +