Skip to content

Commit 68f0eb8

Browse files
authored
Merge branch 'main' into all-contributors/add-RamakrushnaBiswal
2 parents 03030f1 + 6007146 commit 68f0eb8

File tree

3,521 files changed

+554150
-135
lines changed

Some content is hidden

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

3,521 files changed

+554150
-135
lines changed

.all-contributorsrc

Lines changed: 121 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,128 @@
88
"commitConvention": "angular",
99
"contributors": [
1010
{
11-
"login": "dinxsh",
12-
"name": "Dinesh Talwadker",
13-
"avatar_url": "https://avatars.githubusercontent.com/u/90450035?v=4",
14-
"profile": "https://dinxsh.xyz",
11+
"login": "MastanSayyad",
12+
"name": "Mastan Sayyad",
13+
"avatar_url": "https://avatars.githubusercontent.com/u/101971980?v=4",
14+
"profile": "https://github.com/MastanSayyad",
1515
"contributions": [
16-
"bug",
17-
"maintenance"
16+
"review"
17+
]
18+
},
19+
{
20+
"login": "sanjay-kv",
21+
"name": "Sanjay Viswanathan",
22+
"avatar_url": "https://avatars.githubusercontent.com/u/30715153?v=4",
23+
"ScreenShot": "https://raw.githubusercontent.com/nishant0708/awesome-github-profiles/main/screenshots/sanjay-kv.png",
24+
"profile": "https://recodehive.com",
25+
"contributions": [
26+
"maintenance",
27+
"code",
28+
"review"
29+
]
30+
},
31+
{
32+
"login": "vishanurag",
33+
"name": "ANURAG VISHWAKARMA",
34+
"avatar_url": "https://avatars.githubusercontent.com/u/126074487?v=4",
35+
"profile": "http://vcma.rf.gd/Portfolio/",
36+
"contributions": [
37+
"review"
38+
]
39+
},
40+
{
41+
"login": "thevijayshankersharma",
42+
"name": "Vijay Shanker Sharma",
43+
"avatar_url": "https://avatars.githubusercontent.com/u/109781385?v=4",
44+
"profile": "https://github.com/thevijayshankersharma",
45+
"contributions": [
46+
"review"
47+
]
48+
},
49+
{
50+
"login": "nishant0708",
51+
"name": "Nishant Kaushal",
52+
"avatar_url": "https://avatars.githubusercontent.com/u/101548649?v=4",
53+
"profile": "https://github.com/nishant0708",
54+
"contributions": [
55+
"review"
56+
]
57+
},
58+
{
59+
"login": "RadhikaMalpani1702",
60+
"name": "Radhika Malpani",
61+
"avatar_url": "https://avatars.githubusercontent.com/u/163530398?v=4",
62+
"profile": "https://github.com/RadhikaMalpani1702",
63+
"contributions": [
64+
"review"
65+
]
66+
},
67+
{
68+
"login": "yashksaini-coder",
69+
"name": "Yash Kumar Saini",
70+
"avatar_url": "https://avatars.githubusercontent.com/u/115717039?v=4",
71+
"profile": "https://github.com/yashksaini-coder",
72+
"contributions": [
73+
"review"
74+
]
75+
},
76+
{
77+
"login": "Asymtode712",
78+
"name": "Siddheya Kulkarni",
79+
"avatar_url": "https://avatars.githubusercontent.com/u/115717746?v=4",
80+
"profile": "https://github.com/Asymtode712",
81+
"contributions": [
82+
"review"
83+
]
84+
},
85+
{
86+
"login": "vansh-codes",
87+
"name": "Vansh Chaurasiya",
88+
"avatar_url": "https://avatars.githubusercontent.com/u/114163734?v=4",
89+
"profile": "https://github.com/vansh-codes",
90+
"contributions": [
91+
"review"
92+
]
93+
},
94+
{
95+
"login": "vivekvardhan2810",
96+
"name": "Vivek Vardhan",
97+
"avatar_url": "https://avatars.githubusercontent.com/u/91594529?v=4",
98+
"profile": "https://github.com/vivekvardhan2810",
99+
"contributions": [
100+
"review"
101+
]
102+
},
103+
{
104+
105+
"login": "Anjaliavv51",
106+
"name": "Lakshmi Pavananjali",
107+
"avatar_url": "https://avatars.githubusercontent.com/u/154777864?v=4",
108+
"profile": "https://bento.me/anjali-pamidi",
109+
"login": "Skb08",
110+
"name": "Suraj Kumar Behera",
111+
"avatar_url": "https://avatars.githubusercontent.com/u/113046759?v=4",
112+
"profile": "https://github.com/Skb08",
113+
"login": "ratnesh-maurya",
114+
"name": "Ratnesh Maurya",
115+
"avatar_url": "https://avatars.githubusercontent.com/u/85143283?v=4",
116+
"profile": "https://g.dev/ratnesh",
117+
118+
"login": "yashwanths814",
119+
"name": "Yashwanth S",
120+
"avatar_url": "https://avatars.githubusercontent.com/u/123622523?v=4",
121+
"profile": "https://linktr.ee/yashwanths814",
122+
"contributions": [
123+
"review"
124+
]
125+
},
126+
{
127+
"login": "Meetjain1",
128+
"name": "Meet Jain",
129+
"avatar_url": "https://avatars.githubusercontent.com/u/133582566?v=4",
130+
"profile": "https://github.com/Meetjain1",
131+
"contributions": [
132+
"review"
18133
]
19134
},
20135
{

.github/ISSUE_TEMPLATE/add_profile.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,27 @@ name: ➕ Add Profile
33
about: Add your profile to our database ✨
44
title: "Add Profile: "
55
labels: ➕ profile
6-
category: String
76
---
87

9-
paste a screenshot of your GitHub profile here
8+
## Profile Submission
109

11-
enter category to label your profile
12-
category:
10+
Please paste a screenshot of your GitHub profile here.
1311

14-
then comment ``@all-contributors please add @<username> for review``
12+
### Profile Category
13+
Please select one or more categories for your profile:
14+
15+
- [ ] <span class="tag">Badge 🎖️</span>
16+
- [ ] <span class="tag">Minimalistic ✨</span>
17+
- [ ] <span class="tag">Dynamic 🔄</span>
18+
- [ ] <span class="tag">Icons 🎯</span>
19+
- [ ] <span class="tag">Backgrounds 😎</span>
20+
- [ ] <span class="tag">GIFS 🖼️</span>
21+
- [ ] <span class="tag">Game Mode 🚀</span>
22+
- [ ] <span class="tag">Code 👨‍💻</span>
23+
24+
### Next Steps
25+
26+
Once you've filled out the information, please comment below:
27+
28+
``@all-contributors please add @<username> for review``
1529

.github/scripts/addContributor.js

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

.github/workflows/add-contributor-on-issue.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Comment on Issue Close
2+
3+
on:
4+
issues:
5+
types: [closed]
6+
7+
jobs:
8+
greet-on-close:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- name: Greet User
14+
uses: actions/github-script@v5
15+
with:
16+
github-token: ${{ secrets.GITHUB_TOKEN }}
17+
script: |
18+
const issue = context.payload.issue;
19+
const issueCreator = issue.user.login;
20+
const issueNumber = issue.number;
21+
22+
const greetingMessage = `Hello @${issueCreator}! Your issue #${issueNumber} has been closed. Thank you for your contribution!`;
23+
24+
github.rest.issues.createComment({
25+
owner: context.repo.owner,
26+
repo: context.repo.repo,
27+
issue_number: issueNumber,
28+
body: greetingMessage
29+
});
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
const puppeteer = require('puppeteer-core');
2+
const fs = require('fs');
3+
const path = require('path');
4+
5+
async function takeScreenshot(username) {
6+
const url = `https://github.com/${username}`;
7+
const browser = await puppeteer.launch({
8+
headless: true,
9+
executablePath: '/usr/bin/google-chrome-stable', // Path to Chrome executable
10+
args: ['--no-sandbox', '--disable-setuid-sandbox']
11+
});
12+
const page = await browser.newPage();
13+
14+
try {
15+
await page.goto(url, { waitUntil: 'networkidle2' });
16+
await page.setViewport({ width: 1280, height: 800 });
17+
const screenshotPath = path.join('screenshots', `${username}.png`);
18+
await page.screenshot({ path: screenshotPath, fullPage: true });
19+
await browser.close();
20+
return screenshotPath;
21+
} catch (error) {
22+
await browser.close();
23+
throw error;
24+
}
25+
}
26+
27+
async function main() {
28+
const username = process.argv[2];
29+
if (!username) {
30+
console.error('No username provided');
31+
process.exit(1);
32+
}
33+
34+
const screenshotDir = path.resolve(__dirname, 'screenshots');
35+
if (!fs.existsSync(screenshotDir)) {
36+
fs.mkdirSync(screenshotDir);
37+
}
38+
39+
try {
40+
const screenshotPath = await takeScreenshot(username);
41+
console.log(`Screenshot taken for ${username}: ${screenshotPath}`);
42+
} catch (error) {
43+
console.error(`Error taking screenshot for ${username}:`, error);
44+
}
45+
}
46+
47+
main();
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Close Issues on PR Merge
2+
on:
3+
pull_request:
4+
types: [closed]
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
14+
- name: Close linked issues
15+
if: github.event.pull_request.merged == true
16+
run: |
17+
# Extract issue numbers from both direct references and comment links
18+
ISSUES=$(jq -r '.pull_request.body' "$GITHUB_EVENT_PATH" | grep -Eo '(#|issues/)[0-9]+' | grep -Eo '[0-9]+')
19+
20+
for ISSUE in $ISSUES
21+
do
22+
echo "Closing issue #$ISSUE"
23+
# Post a comment on the issue
24+
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
25+
-H "Accept: application/vnd.github.v3+json" \
26+
https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE/comments \
27+
-d '{"body":"Closed by PR #${{ github.event.pull_request.number }}"}'
28+
# Close the issue
29+
curl -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
30+
-H "Accept: application/vnd.github.v3+json" \
31+
https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE \
32+
-d '{"state":"closed"}'
33+
done
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

0 commit comments

Comments
 (0)