Skip to content

Commit 20d7621

Browse files
authored
Merge branch 'main' into all-contributors/add-4darsh-Dev
2 parents f7976f4 + e95681f commit 20d7621

21 files changed

+241
-7
lines changed

.all-contributorsrc

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,114 @@
403403
"name": "ADARSH MAURYA",
404404
"avatar_url": "https://avatars.githubusercontent.com/u/109789509?v=4",
405405
"profile": "https://linktr.ee/4darsh_dev",
406+
"login": "Sanchitbajaj02",
407+
"name": "Sanchit Bajaj",
408+
"avatar_url": "https://avatars.githubusercontent.com/u/55249639?v=4",
409+
"profile": "https://sanchitbajaj02.github.io/portfolio",
410+
"login": "ChhaviRohilla",
411+
"name": "Chhavi Rohilla",
412+
"avatar_url": "https://avatars.githubusercontent.com/u/136676662?v=4",
413+
"profile": "https://github.com/ChhaviRohilla",
414+
},
415+
{
416+
"login": "abhisheks008",
417+
"name": "Abhishek Sharma",
418+
"avatar_url": "https://avatars.githubusercontent.com/u/68724349?v=4",
419+
"profile": "https://abhisheks008.bio.link/",
420+
},
421+
{
422+
"login": "sourabhkumar47",
423+
"name": "Sourabh Kumar",
424+
"avatar_url": "https://avatars.githubusercontent.com/u/81826285?v=4",
425+
"profile": "http://sourabhkumar.tech/",
426+
},
427+
{
428+
"login": "Soumya-Kushwaha",
429+
"name": "Soumya Kushwaha",
430+
"avatar_url": "https://avatars.githubusercontent.com/u/87495134?v=4",
431+
"profile": "https://github.com/Soumya-Kushwaha",
432+
"contributions": [
433+
"review"
434+
]
435+
},
436+
{
437+
"login": "Jagpreet153",
438+
"name": "Jagpreet Singh Khurana",
439+
"avatar_url": "https://avatars.githubusercontent.com/u/119691733?v=4",
440+
"profile": "https://github.com/Jagpreet153",
441+
},
442+
{
443+
"login": "hirapurekannu72",
444+
"name": "hirapurekannu72",
445+
"avatar_url": "https://avatars.githubusercontent.com/u/146826102?v=4",
446+
"profile": "https://github.com/hirapurekannu72",
447+
"contributions": [
448+
"review"
449+
]
450+
},
451+
{
452+
"login": "Krish-Depani",
453+
"name": "Krish Depani",
454+
"avatar_url": "https://avatars.githubusercontent.com/u/72994417?v=4",
455+
"profile": "https://github.com/Krish-Depani",
456+
"contributions": [
457+
"review"
458+
]
459+
},
460+
{
461+
"login": "Devamani11D",
462+
"name": "Duddekunta Devamani",
463+
"avatar_url": "https://avatars.githubusercontent.com/u/117567542?v=4",
464+
"profile": "https://github.com/Devamani11D",
465+
},
466+
{
467+
"login": "Rohith2201",
468+
"name": "J VENKATA LAKSHMI SAI ROHITH",
469+
"avatar_url": "https://avatars.githubusercontent.com/u/94969985?v=4",
470+
"profile": "https://julururohith.blogspot.com/",
471+
},
472+
{
473+
"login": "GauravKesh",
474+
"name": "Gaurav Kesh Roushan",
475+
"avatar_url": "https://avatars.githubusercontent.com/u/98611148?v=4",
476+
"profile": "https://gkrcoder.vercel.app",
477+
"contributions": [
478+
"review"
479+
]
480+
},
481+
{
482+
"login": "shaurya35",
483+
"name": "Shaurya Jha",
484+
"avatar_url": "https://avatars.githubusercontent.com/u/106850641?v=4",
485+
"profile": "https://shauryacreativefolio.netlify.app/",
486+
"contributions": [
487+
"review"
488+
]
489+
},
490+
{
491+
"login": "Luson045",
492+
"name": "Luson Basumatary",
493+
"avatar_url": "https://avatars.githubusercontent.com/u/131430087?v=4",
494+
"profile": "https://github.com/Luson045",
495+
},
496+
{
497+
"login": "iitzIrFan",
498+
"name": "iitzIrFan",
499+
"avatar_url": "https://avatars.githubusercontent.com/u/138690953?v=4",
500+
"profile": "https://irfan-shaikh-portfolio.vercel.app/",
501+
"login": "vijaychandra1910",
502+
"name": "VIJAY KUMAR CHANDRA",
503+
"avatar_url": "https://avatars.githubusercontent.com/u/138502362?v=4",
504+
"profile": "https://linktr.ee/vijay__19",
505+
"contributions": [
506+
"review"
507+
]
508+
},
509+
{
510+
"login": "theashikagupta",
511+
"name": "Ashika Gupta",
512+
"avatar_url": "https://avatars.githubusercontent.com/u/136061047?v=4",
513+
"profile": "https://github.com/theashikagupta",
406514
"contributions": [
407515
"review"
408516
]

.github/workflows/allcontributor_autocommentor_active_issue.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Comment on Active "Add Profile" Issues
1+
name: Comment on Active Add Profile Issues
22

33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '0 */3 * * *'
6+
- cron: '0 */6 * * *'
77

88
jobs:
99
comment-on-active-issues:
@@ -27,13 +27,27 @@ jobs:
2727
const issueCreator = issue.user.login;
2828
const commentMessage = `@all-contributors please add @${issueCreator} for review`;
2929
30-
await github.rest.issues.createComment({
30+
const { data: comments } = await github.rest.issues.listComments({
3131
owner: context.repo.owner,
3232
repo: context.repo.repo,
33-
issue_number: issue.number,
34-
body: commentMessage
33+
issue_number: issue.number
3534
});
3635
37-
console.log(`Commented on issue #${issue.number}`);
36+
const hasAllContributorsComment = comments.some(comment =>
37+
comment.body.includes('@all-contributors please add')
38+
);
39+
40+
if (!hasAllContributorsComment) {
41+
await github.rest.issues.createComment({
42+
owner: context.repo.owner,
43+
repo: context.repo.repo,
44+
issue_number: issue.number,
45+
body: commentMessage
46+
});
47+
48+
console.log(`Commented on issue #${issue.number}`);
49+
} else {
50+
console.log(`Skipped commenting on issue #${issue.number} - already has an all-contributors comment`);
51+
}
3852
}
3953
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Merge Active All-Contributors PRs
2+
3+
on:
4+
schedule:
5+
- cron: '0 */6 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
merge-active-prs:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Merge active PRs
20+
uses: actions/github-script@v6
21+
with:
22+
github-token: ${{ secrets.GITHUB_TOKEN }}
23+
script: |
24+
const { data: pullRequests } = await github.rest.pulls.list({
25+
owner: context.repo.owner,
26+
repo: context.repo.repo,
27+
state: 'open',
28+
sort: 'created',
29+
direction: 'asc'
30+
});
31+
32+
for (const pr of pullRequests) {
33+
if (pr.user.login === 'allcontributors[bot]' && pr.mergeable_state === 'clean') {
34+
try {
35+
await github.rest.pulls.merge({
36+
owner: context.repo.owner,
37+
repo: context.repo.repo,
38+
pull_number: pr.number,
39+
merge_method: 'squash'
40+
});
41+
console.log(`Successfully merged PR #${pr.number}`);
42+
} catch (error) {
43+
console.error(`Failed to merge PR #${pr.number}: ${error.message}`);
44+
}
45+
}
46+
}

.github/workflows/codereview.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Auto-Approve and Merge Pull Requests
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
schedule:
7+
- cron: '0 */6 * * *'
8+
workflow_dispatch:
9+
10+
jobs:
11+
auto-approve-and-merge:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: write
15+
contents: write
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
- name: Install PyGithub
22+
run: pip install PyGithub
23+
24+
- name: Auto-approve and Merge Pull Requests
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: |
28+
import os
29+
from github import Github
30+
def approve_and_merge_pr(pr):
31+
pr.create_review(event='APPROVE', body='Automatically approved')
32+
print(f"Approved PR #{pr.number}")
33+
if pr.mergeable:
34+
pr.merge(merge_method='squash')
35+
print(f"Merged PR #{pr.number}")
36+
else:
37+
print(f"PR #{pr.number} is not mergeable")
38+
g = Github(os.getenv('GITHUB_TOKEN'))
39+
repo = g.get_repo(os.getenv('GITHUB_REPOSITORY'))
40+
if os.getenv('GITHUB_EVENT_NAME') == 'pull_request':
41+
pr_number = os.getenv('GITHUB_EVENT_PULL_REQUEST_NUMBER')
42+
pr = repo.get_pull(int(pr_number))
43+
approve_and_merge_pr(pr)
44+
else:
45+
for pr in repo.get_pulls(state='open'):
46+
approve_and_merge_pr(pr)
47+
print("Auto-approval and merge process completed successfully.")
48+
shell: python

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 align="center">Awesome Github Profiles</h1>
1+
<h2 align="center">Awesome Github Profile</h2>
22

33
<div align="center">
44

@@ -73,6 +73,24 @@
7373
<tr>
7474
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rajgorsmit"><img src="https://avatars.githubusercontent.com/u/78331752?v=4?s=100" width="100px;" alt="m"/><br /><sub><b>m</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3Arajgorsmit" title="Reviewed Pull Requests">👀</a></td>
7575
<td align="center" valign="top" width="14.28%"><a href="https://linktr.ee/4darsh_dev"><img src="https://avatars.githubusercontent.com/u/109789509?v=4?s=100" width="100px;" alt="ADARSH MAURYA"/><br /><sub><b>ADARSH MAURYA</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3A4darsh-Dev" title="Reviewed Pull Requests">👀</a></td>
76+
<td align="center" valign="top" width="14.28%"><a href="https://sanchitbajaj02.github.io/portfolio"><img src="https://avatars.githubusercontent.com/u/55249639?v=4?s=100" width="100px;" alt="Sanchit Bajaj"/><br /><sub><b>Sanchit Bajaj</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3ASanchitbajaj02" title="Reviewed Pull Requests">👀</a></td>
77+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ChhaviRohilla"><img src="https://avatars.githubusercontent.com/u/136676662?v=4?s=100" width="100px;" alt="Chhavi Rohilla"/><br /><sub><b>Chhavi Rohilla</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3AChhaviRohilla" title="Reviewed Pull Requests">👀</a></td>
78+
<td align="center" valign="top" width="14.28%"><a href="https://abhisheks008.bio.link/"><img src="https://avatars.githubusercontent.com/u/68724349?v=4?s=100" width="100px;" alt="Abhishek Sharma"/><br /><sub><b>Abhishek Sharma</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3Aabhisheks008" title="Reviewed Pull Requests">👀</a></td>
79+
<td align="center" valign="top" width="14.28%"><a href="http://sourabhkumar.tech/"><img src="https://avatars.githubusercontent.com/u/81826285?v=4?s=100" width="100px;" alt="Sourabh Kumar"/><br /><sub><b>Sourabh Kumar</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3Asourabhkumar47" title="Reviewed Pull Requests">👀</a></td>
80+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Soumya-Kushwaha"><img src="https://avatars.githubusercontent.com/u/87495134?v=4?s=100" width="100px;" alt="Soumya Kushwaha"/><br /><sub><b>Soumya Kushwaha</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3ASoumya-Kushwaha" title="Reviewed Pull Requests">👀</a></td>
81+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Jagpreet153"><img src="https://avatars.githubusercontent.com/u/119691733?v=4?s=100" width="100px;" alt="Jagpreet Singh Khurana"/><br /><sub><b>Jagpreet Singh Khurana</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3AJagpreet153" title="Reviewed Pull Requests">👀</a></td>
82+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/hirapurekannu72"><img src="https://avatars.githubusercontent.com/u/146826102?v=4?s=100" width="100px;" alt="hirapurekannu72"/><br /><sub><b>hirapurekannu72</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3Ahirapurekannu72" title="Reviewed Pull Requests">👀</a></td>
83+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Krish-Depani"><img src="https://avatars.githubusercontent.com/u/72994417?v=4?s=100" width="100px;" alt="Krish Depani"/><br /><sub><b>Krish Depani</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3AKrish-Depani" title="Reviewed Pull Requests">👀</a></td>
84+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Devamani11D"><img src="https://avatars.githubusercontent.com/u/117567542?v=4?s=100" width="100px;" alt="Duddekunta Devamani"/><br /><sub><b>Duddekunta Devamani</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3ADevamani11D" title="Reviewed Pull Requests">👀</a></td>
85+
<td align="center" valign="top" width="14.28%"><a href="https://julururohith.blogspot.com/"><img src="https://avatars.githubusercontent.com/u/94969985?v=4?s=100" width="100px;" alt="J VENKATA LAKSHMI SAI ROHITH"/><br /><sub><b>J VENKATA LAKSHMI SAI ROHITH</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3ARohith2201" title="Reviewed Pull Requests">👀</a></td>
86+
<td align="center" valign="top" width="14.28%"><a href="https://gkrcoder.vercel.app"><img src="https://avatars.githubusercontent.com/u/98611148?v=4?s=100" width="100px;" alt="Gaurav Kesh Roushan"/><br /><sub><b>Gaurav Kesh Roushan</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3AGauravKesh" title="Reviewed Pull Requests">👀</a></td>
87+
<td align="center" valign="top" width="14.28%"><a href="https://shauryacreativefolio.netlify.app/"><img src="https://avatars.githubusercontent.com/u/106850641?v=4?s=100" width="100px;" alt="Shaurya Jha"/><br /><sub><b>Shaurya Jha</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3Ashaurya35" title="Reviewed Pull Requests">👀</a></td>
88+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Luson045"><img src="https://avatars.githubusercontent.com/u/131430087?v=4?s=100" width="100px;" alt="Luson Basumatary"/><br /><sub><b>Luson Basumatary</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3ALuson045" title="Reviewed Pull Requests">👀</a></td>
89+
<td align="center" valign="top" width="14.28%"><a href="https://irfan-shaikh-portfolio.vercel.app/"><img src="https://avatars.githubusercontent.com/u/138690953?v=4?s=100" width="100px;" alt="iitzIrFan"/><br /><sub><b>iitzIrFan</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3AiitzIrFan" title="Reviewed Pull Requests">👀</a></td>
90+
<td align="center" valign="top" width="14.28%"><a href="https://linktr.ee/vijay__19"><img src="https://avatars.githubusercontent.com/u/138502362?v=4?s=100" width="100px;" alt="VIJAY KUMAR CHANDRA"/><br /><sub><b>VIJAY KUMAR CHANDRA</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3Avijaychandra1910" title="Reviewed Pull Requests">👀</a></td>
91+
</tr>
92+
<tr>
93+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/theashikagupta"><img src="https://avatars.githubusercontent.com/u/136061047?v=4?s=100" width="100px;" alt="Ashika Gupta"/><br /><sub><b>Ashika Gupta</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3Atheashikagupta" title="Reviewed Pull Requests">👀</a></td>
7694
</tr>
7795
</tbody>
7896
</table>

screenshots/Devamani11D.png

480 KB
Loading

screenshots/FezanMuhammadAli.png

341 KB
Loading

screenshots/GauravKesh.png

569 KB
Loading

screenshots/Jagpreet153.png

712 KB
Loading

screenshots/Krish-Depani.png

593 KB
Loading

0 commit comments

Comments
 (0)