-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from Anjaliavv51/React-JS-Code
Game
- Loading branch information
Showing
13 changed files
with
540 additions
and
1 deletion.
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,53 @@ | ||
name: Bug report 🐞 | ||
description: File a bug report | ||
title: "🐞[Bug]: " | ||
body: | ||
- type: checkboxes | ||
id: existing-issue | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists for the bug you encountered. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: Describe the bug | ||
description: A concise description of what you are experiencing. | ||
placeholder: Tell us what you see! | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected-behaviour | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: screenshots | ||
attributes: | ||
label: Add ScreenShots | ||
description: Add sufficient ScreenShots to explain your issue. | ||
- type: dropdown | ||
id: browsers | ||
attributes: | ||
label: What browsers are you seeing the problem on? | ||
multiple: true | ||
options: | ||
- Firefox | ||
- Chrome | ||
- Safari | ||
- Microsoft Edge | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Record | ||
options: | ||
- label: "I have read the Contributing Guidelines" | ||
required: true | ||
- label: "I'm a GSSOC'24 contributor" | ||
required: true | ||
- label: "I have starred the repository" | ||
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,59 @@ | ||
name: 📝 Documentation Update | ||
description: Improve Documentation | ||
title: "📝[Documentation Update]: " | ||
body: | ||
- type: checkboxes | ||
id: existing-issue | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists for the updates you want to make. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: textarea | ||
id: issue-description | ||
attributes: | ||
label: Issue Description | ||
description: Please provide a clear description of the documentation update you are suggesting. | ||
placeholder: Describe the improvement or correction you'd like to see in the documentation. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: suggested-change | ||
attributes: | ||
label: Suggested Change | ||
description: Provide details of the proposed change to the documentation. | ||
placeholder: Explain how the documentation should be updated or corrected. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: rationale | ||
attributes: | ||
label: Rationale | ||
description: Why is this documentation update necessary or beneficial? | ||
placeholder: Explain the importance or reasoning behind the suggested change. | ||
validations: | ||
required: False | ||
- type: dropdown | ||
id: urgency | ||
attributes: | ||
label: Urgency | ||
description: How urgently do you believe this documentation update is needed? | ||
options: | ||
- High | ||
- Medium | ||
- Low | ||
default: 0 | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Record | ||
options: | ||
- label: "I have read the Contributing Guidelines" | ||
required: true | ||
- label: "I'm a GSSOC'24 contributor" | ||
required: true | ||
- label: "I have starred the repository" | ||
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,62 @@ | ||
name: ✨ Feature Request | ||
description: Suggest a feature | ||
title: "✨[Feature Request]: " | ||
body: | ||
- type: checkboxes | ||
id: existing-issue | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists for this feature. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: textarea | ||
id: feature-description | ||
attributes: | ||
label: Feature Description | ||
description: Please provide a detailed description of the feature you are requesting. | ||
placeholder: Describe the new feature or enhancement you'd like to see. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: use-case | ||
attributes: | ||
label: Use Case | ||
description: How would this feature enhance your use of the project? | ||
placeholder: Describe a specific use case or scenario where this feature would be beneficial. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: benefits | ||
attributes: | ||
label: Benefits | ||
description: What benefits would this feature bring to the project or community? | ||
placeholder: Explain the advantages of implementing this feature. | ||
- type: textarea | ||
id: screenShots | ||
attributes: | ||
label: Add ScreenShots | ||
description: If any... | ||
- type: dropdown | ||
id: priority | ||
attributes: | ||
label: Priority | ||
description: How important is this feature to you? | ||
options: | ||
- High | ||
- Medium | ||
- Low | ||
default: 0 | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Record | ||
options: | ||
- label: "I have read the Contributing Guidelines" | ||
required: true | ||
- label: "I'm a GSSOC'24 contributor" | ||
required: true | ||
- label: "I have starred the repository" | ||
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,32 @@ | ||
## Description | ||
|
||
[Please include a brief description of the changes or features added] | ||
|
||
## Related Issues | ||
|
||
[Cite any related issue(s) this pull request addresses. If none, simply state “None”] | ||
- Closes # | ||
|
||
## Type of PR | ||
|
||
- [ ] Bug fix | ||
- [ ] Feature enhancement | ||
- [ ] Documentation update | ||
- [ ] Other (specify): _______________ | ||
|
||
## Screenshots / videos (if applicable) | ||
[Attach any relevant screenshots or videos demonstrating the changes] | ||
|
||
|
||
## Checklist | ||
|
||
- [ ] I have gone through the [contributing guide](https://github.com/Anishkagupta04/RAPIDOC-HEALTHCARE-WEBSITE-/) | ||
- [ ] I have updated my branch and synced it with project `main` branch before making this PR | ||
- [ ] I have performed a self-review of my code | ||
- [ ] I have tested the changes thoroughly before submitting this pull request. | ||
- [ ] I have provided relevant issue numbers, screenshots, and videos after making the changes. | ||
- [ ] I have commented my code, particularly in hard-to-understand areas. | ||
<!-- [X] - put a cross/X inside [] to check the box --> | ||
|
||
## Additional context: | ||
[Include any additional information or context that might be helpful for reviewers.] |
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 @@ | ||
name: Auto Comment on PR Merge | ||
|
||
on: | ||
pull_request_target: | ||
types: [closed] | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
comment: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Add Comment to Merged PR | ||
run: | | ||
COMMENT=$(cat <<EOF | ||
{ | ||
"body": "🎉 Your pull request has been successfully merged! 🎉 Thank you for your contribution to our project. Your efforts are greatly appreciated. Keep up the fantastic work! 🚀" | ||
} | ||
EOF | ||
) | ||
RESPONSE=$(curl -s -o response.json -w "%{http_code}" \ | ||
-X POST \ | ||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \ | ||
-d "$COMMENT") | ||
cat response.json | ||
if [ "$RESPONSE" -ne 201 ]; then | ||
echo "Failed to add comment" | ||
exit 1 | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,43 @@ | ||
name: Auto Label Issues | ||
on: | ||
issues: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
label_issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
const issue = context.payload.issue; | ||
const title = issue.title.toLowerCase(); | ||
const body = issue.body.toLowerCase(); | ||
const labels = []; | ||
if (title.includes('gssoc') || body.includes('gssoc')) { | ||
labels.push('GSSoC'); | ||
} | ||
if (title.includes('enhancement') || body.includes('enhancement')) { | ||
labels.push('Enhancement'); | ||
} | ||
if (title.includes('bug') || body.includes('bug')) { | ||
labels.push('Bug'); | ||
} | ||
if (title.includes('documentation') || body.includes('documentation')) { | ||
labels.push('Documentation'); | ||
} | ||
if (labels.length > 0) { | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.name, | ||
labels: labels | ||
}); | ||
} |
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,43 @@ | ||
name: Auto Label PRs | ||
on: | ||
pull_request: | ||
types: [opened, edited, synchronize] | ||
|
||
jobs: | ||
label_prs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
const pr = context.payload.pull_request; | ||
const title = pr.title.toLowerCase(); | ||
const body = pr.body ? pr.body.toLowerCase() : ''; | ||
const labels = []; | ||
if (title.includes('gssoc') || body.includes('gssoc')) { | ||
labels.push('GSSoC'); | ||
} | ||
if (title.includes('enhancement') || body.includes('enhancement')) { | ||
labels.push('Enhancement'); | ||
} | ||
if (title.includes('bug') || body.includes('bug')) { | ||
labels.push('Bug'); | ||
} | ||
if (title.includes('documentation') || body.includes('documentation')) { | ||
labels.push('Documentation'); | ||
} | ||
if (labels.length > 0) { | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.name, | ||
labels: labels | ||
}); | ||
} |
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,55 @@ | ||
name: Close Old Issues | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # Runs daily at midnight | ||
|
||
jobs: | ||
manage-issues: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Manage Issues | ||
run: | | ||
open_issues=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
"https://api.github.com/repos/${{ github.repository }}/issues?state=open" \ | ||
| jq -r '.[] | .number') | ||
for issue in $open_issues; do | ||
# Get issue details | ||
issue_details=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
"https://api.github.com/repos/${{ github.repository }}/issues/$issue") | ||
last_updated=$(echo $issue_details | jq -r '.updated_at') | ||
labels=$(echo $issue_details | jq -r '.labels[].name') | ||
days_since_update=$(( ( $(date +%s) - $(date -d "$last_updated" +%s) ) / 86400 )) | ||
if [ $days_since_update -gt 7 ]; then | ||
if echo "$labels" | grep -q "stale"; then | ||
# If stale for more than 10 days, close the issue | ||
if [ $days_since_update -gt 17 ]; then | ||
curl -s -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-d '{"state":"closed"}' \ | ||
"https://api.github.com/repos/${{ github.repository }}/issues/$issue" | ||
curl -s -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-d '{"body":"This issue has been automatically closed because it has been inactive for more than 17 days (including 7 days marked as stale). If you believe this is still relevant, feel free to reopen it or create a new one. Thank you!"}' \ | ||
"https://api.github.com/repos/${{ github.repository }}/issues/$issue/comments" | ||
fi | ||
else | ||
# Mark as stale | ||
curl -s -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-d '{"labels":["stale"]}' \ | ||
"https://api.github.com/repos/${{ github.repository }}/issues/$issue/labels" | ||
curl -s -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-d '{"body":"This issue has been marked as stale because it has been inactive for more than 7 days. It will be closed if no further activity occurs in the next 10 days. Please update if you want to keep it open."}' \ | ||
"https://api.github.com/repos/${{ github.repository }}/issues/$issue/comments" | ||
fi | ||
fi | ||
done |
Oops, something went wrong.