Skip to content

Commit dc88cf0

Browse files
authored
Merge branch 'main' into all-contributors/add-Zeenatattar
2 parents 84aff26 + 92c1f17 commit dc88cf0

21 files changed

+258
-7
lines changed

.all-contributorsrc

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

.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: 22 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,27 @@
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://github.com/Zeenatattar"><img src="https://avatars.githubusercontent.com/u/111846814?v=4?s=100" width="100px;" alt="Zeenat"/><br /><sub><b>Zeenat</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3AZeenatattar" title="Reviewed Pull Requests">👀</a></td>
76+
<td align="center" valign="top" width="14.28%"><a href="https://linktr.ee/rohitroy_r"><img src="https://avatars.githubusercontent.com/u/68563695?v=4?s=100" width="100px;" alt="Rohit Roy"/><br /><sub><b>Rohit Roy</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3Arohitroy-github" title="Reviewed Pull Requests">👀</a></td>
77+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Varsani2520"><img src="https://avatars.githubusercontent.com/u/137641079?v=4?s=100" width="100px;" alt="v_a_r_s_a_n_i"/><br /><sub><b>v_a_r_s_a_n_i</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3AVarsani2520" title="Reviewed Pull Requests">👀</a></td>
78+
<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>
79+
<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>
80+
<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>
81+
<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>
82+
<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>
83+
<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>
84+
<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>
85+
<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>
86+
<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>
87+
<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>
88+
<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>
89+
<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>
90+
<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>
91+
<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>
92+
<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>
93+
<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>
94+
</tr>
95+
<tr>
96+
<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>
7697
</tr>
7798
</tbody>
7899
</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)