Skip to content

Commit a84fa5f

Browse files
authored
Merge branch 'main' into linting
2 parents e431895 + 1050dc7 commit a84fa5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+5901
-702
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.git
3+
.DS_Store
4+
build

.github/GitHub Banner.gif

536 KB
Loading
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: 💡Feature Request
2+
description: Suggest a feature
3+
title: "💡[Feature]: "
4+
labels: "enhancement"
5+
body:
6+
- type: checkboxes
7+
id: existing-issue
8+
attributes:
9+
label: Is there an existing issue for this?
10+
description: Please search to see if an issue already exists for this feature.
11+
options:
12+
- label: I have searched the existing issues
13+
required: true
14+
- type: textarea
15+
id: feature-description
16+
attributes:
17+
label: Feature Description
18+
description: Please provide a detailed description of the feature you are requesting.
19+
placeholder: Describe the new feature or enhancement you'd like to see.
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: use-case
24+
attributes:
25+
label: Use Case
26+
description: How would this feature enhance your use of the project?
27+
placeholder: Describe a specific use case or scenario where this feature would be beneficial.
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: benefits
32+
attributes:
33+
label: Benefits
34+
description: What benefits would this feature bring to the project or community?
35+
placeholder: Explain the advantages of implementing this feature.
36+
- type: textarea
37+
id: screenShots
38+
attributes:
39+
label: Add ScreenShots
40+
description: If any...
41+
- type: dropdown
42+
id: priority
43+
attributes:
44+
label: Priority
45+
description: How important is this feature to you?
46+
options:
47+
- High
48+
- Medium
49+
- Low
50+
default: 0
51+
validations:
52+
required: true
53+
- type: checkboxes
54+
id: terms
55+
attributes:
56+
label: Record
57+
options:
58+
- label: "I have read the Contributing Guidelines"
59+
required: true
60+
- label: "Are you a GSSOC'25 contributor"
61+
required: false
62+
- label: "I want to work on this issue"
63+
required: false

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Bug report 🐞
2+
description: File a bug report
3+
title: "🐞[Bug]: "
4+
labels: 'bug'
5+
body:
6+
- type: checkboxes
7+
id: existing-issue
8+
attributes:
9+
label: Is there an existing issue for this?
10+
description: Please search to see if an issue already exists for the bug you encountered.
11+
options:
12+
- label: I have searched the existing issues
13+
required: true
14+
- type: textarea
15+
id: what-happened
16+
attributes:
17+
label: Describe the bug
18+
description: A concise description of what you are experiencing.
19+
placeholder: Tell us what you see!
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: expected-behaviour
24+
attributes:
25+
label: Expected behavior
26+
description: A clear and concise description of what you expected to happen.
27+
validations:
28+
required: true
29+
- type: textarea
30+
id: screenshots
31+
attributes:
32+
label: Add ScreenShots
33+
description: Add sufficient ScreenShots to explain your issue.
34+
- type: dropdown
35+
id: browsers
36+
attributes:
37+
label: What browsers are you seeing the problem on?
38+
multiple: true
39+
options:
40+
- Firefox
41+
- Chrome
42+
- Safari
43+
- Microsoft Edge
44+
- type: checkboxes
45+
id: terms
46+
attributes:
47+
label: Record
48+
options:
49+
- label: "I have read the Contributing Guidelines"
50+
required: true
51+
- label: "Are you a GSSOC'25 contributor"
52+
required: false
53+
- label: "I want to work on this issue"
54+
required: false
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: 📝 Documentation Update
2+
description: Improve Documentation
3+
title: "📝[Docs]: "
4+
labels: 'enhancement'
5+
body:
6+
- type: checkboxes
7+
id: existing-issue
8+
attributes:
9+
label: Is there an existing issue for this?
10+
description: Please search to see if an issue already exists for the updates you want to make.
11+
options:
12+
- label: I have searched the existing issues
13+
required: true
14+
- type: textarea
15+
id: issue-description
16+
attributes:
17+
label: Issue Description
18+
description: Please provide a clear description of the documentation update you are suggesting.
19+
placeholder: Describe the improvement or correction you'd like to see in the documentation.
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: suggested-change
24+
attributes:
25+
label: Suggested Change
26+
description: Provide details of the proposed change to the documentation.
27+
placeholder: Explain how the documentation should be updated or corrected.
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: rationale
32+
attributes:
33+
label: Rationale
34+
description: Why is this documentation update necessary or beneficial?
35+
placeholder: Explain the importance or reasoning behind the suggested change.
36+
validations:
37+
required: False
38+
- type: dropdown
39+
id: urgency
40+
attributes:
41+
label: Urgency
42+
description: How urgently do you believe this documentation update is needed?
43+
options:
44+
- High
45+
- Medium
46+
- Low
47+
default: 0
48+
validations:
49+
required: true
50+
- type: checkboxes
51+
id: terms
52+
attributes:
53+
label: Record
54+
options:
55+
- label: "I have read the Contributing Guidelines"
56+
required: true
57+
- label: "Are you a GSSOC'25 contributor"
58+
required: false
59+
- label: "I want to work on this issue"
60+
required: false

.github/pull_request_template.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Description
2+
3+
Provide a brief summary of the changes made to the website and the motivation behind them. Include any relevant issues or tickets.
4+
This helps fast tracking your PR and merge it, Check the respective box below.
5+
6+
Fixes # (issue)
7+
8+
## Type of Change
9+
10+
- [ ] New feature (e.g., new page, component, or functionality)
11+
- [ ] Bug fix (non-breaking change that fixes an issue)
12+
- [ ] UI/UX improvement (design, layout, or styling updates)
13+
- [ ] Performance optimization (e.g., code splitting, caching)
14+
- [ ] Documentation update (README, contribution guidelines, etc.)
15+
- [ ] Other (please specify):
16+
17+
## Changes Made
18+
19+
- Describe the key changes (e.g., new sections, updated components, responsive fixes).
20+
21+
## Dependencies
22+
23+
- List any new dependencies or tools required for this change.
24+
- Mention any version updates or configurations that need to be considered.
25+
26+
## Checklist
27+
28+
- [ ] My code follows the style guidelines of this project.
29+
- [ ] I have tested my changes across major browsers/devices
30+
- [ ] My changes do not generate new console warnings or errors , I ran `npm run build` and attached scrrenshot in this PR.
31+
- [ ] This is already assigned Issue to me, not an unassigned issue.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Close Old Issues
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v4
13+
14+
- name: Close Old Issues
15+
run: |
16+
open_issues=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
17+
"https://api.github.com/repos/${{ github.repository }}/issues?state=open" \
18+
| jq -r '.[] | .number')
19+
for issue in $open_issues; do
20+
# Get the last updated timestamp of the issue
21+
last_updated=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
22+
"https://api.github.com/repos/${{ github.repository }}/issues/$issue" \
23+
| jq -r '.updated_at')
24+
days_since_update=$(( ( $(date +%s) - $(date -d "$last_updated" +%s) ) / 86400 ))
25+
if [ $days_since_update -gt 30 ]; then
26+
curl -s -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
27+
-H "Accept: application/vnd.github.v3+json" \
28+
-d '{"state":"closed"}' \
29+
"https://api.github.com/repos/${{ github.repository }}/issues/$issue"
30+
31+
# Add a comment explaining when the issue will be closed
32+
curl -s -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
33+
-H "Accept: application/vnd.github.v3+json" \
34+
-d '{"body":"This issue has been automatically closed because it has been inactive for more than 30 days. If you believe this is still relevant, feel free to reopen it or create a new one. Thank you!"}' \
35+
"https://api.github.com/repos/${{ github.repository }}/issues/$issue/comments"
36+
fi
37+
done
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Close Stale PRs
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Runs daily at midnight
6+
pull_request:
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
12+
permissions:
13+
pull-requests: write
14+
issues: write
15+
16+
jobs:
17+
close_stale_prs:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
pull-requests: write
21+
22+
steps:
23+
- uses: actions/stale@v7
24+
with:
25+
repo-token: ${{ secrets.GITHUB_TOKEN }}
26+
stale-pr-message: 'This PR has been automatically closed due to inactivity from the owner for 15 days.'
27+
days-before-pr-stale: 15
28+
days-before-pr-close: 0
29+
exempt-pr-author: false
30+
exempt-pr-labels: ''
31+
only-labels: ''
32+
operations-per-run: 30
33+
remove-stale-when-updated: true
34+
debug-only: false
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Auto Comment on PR Merge
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
comment:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: write
16+
if: github.event.pull_request.merged == true
17+
18+
steps:
19+
- name: Checkout Repository
20+
uses: actions/checkout@v2
21+
22+
- name: Add Comment to Issue
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
run: |
26+
COMMENT=$(cat <<EOF
27+
{
28+
"body": "🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. \n\n I would be grateful if you can nominate for keeping this opensource project live and running [Link to Nominate](https://stars.github.com/nominate/). Please do star the repo and Keep up the fantastic work! 🚀"
29+
}
30+
EOF
31+
)
32+
curl -X POST \
33+
-H "Authorization: Bearer $GITHUB_TOKEN" \
34+
-H "Accept: application/vnd.github.v3+json" \
35+
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \
36+
-d "$COMMENT"

.github/workflows/autocomment-iss-label.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)