Skip to content

Commit 38a674c

Browse files
authored
Merge branch 'main' into all-contributors/add-ChhaviRohilla
2 parents 5cb84b3 + 578596c commit 38a674c

21 files changed

+211
-7
lines changed

.all-contributorsrc

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,88 @@
403403
"name": "Chhavi Rohilla",
404404
"avatar_url": "https://avatars.githubusercontent.com/u/136676662?v=4",
405405
"profile": "https://github.com/ChhaviRohilla",
406+
},
407+
{
408+
"login": "abhisheks008",
409+
"name": "Abhishek Sharma",
410+
"avatar_url": "https://avatars.githubusercontent.com/u/68724349?v=4",
411+
"profile": "https://abhisheks008.bio.link/",
412+
},
413+
{
414+
"login": "sourabhkumar47",
415+
"name": "Sourabh Kumar",
416+
"avatar_url": "https://avatars.githubusercontent.com/u/81826285?v=4",
417+
"profile": "http://sourabhkumar.tech/",
418+
},
419+
{
420+
"login": "Soumya-Kushwaha",
421+
"name": "Soumya Kushwaha",
422+
"avatar_url": "https://avatars.githubusercontent.com/u/87495134?v=4",
423+
"profile": "https://github.com/Soumya-Kushwaha",
424+
"contributions": [
425+
"review"
426+
]
427+
},
428+
{
429+
"login": "Jagpreet153",
430+
"name": "Jagpreet Singh Khurana",
431+
"avatar_url": "https://avatars.githubusercontent.com/u/119691733?v=4",
432+
"profile": "https://github.com/Jagpreet153",
433+
},
434+
{
435+
"login": "hirapurekannu72",
436+
"name": "hirapurekannu72",
437+
"avatar_url": "https://avatars.githubusercontent.com/u/146826102?v=4",
438+
"profile": "https://github.com/hirapurekannu72",
439+
"contributions": [
440+
"review"
441+
]
442+
},
443+
{
444+
"login": "Krish-Depani",
445+
"name": "Krish Depani",
446+
"avatar_url": "https://avatars.githubusercontent.com/u/72994417?v=4",
447+
"profile": "https://github.com/Krish-Depani",
448+
"contributions": [
449+
"review"
450+
]
451+
},
452+
{
453+
"login": "GauravKesh",
454+
"name": "Gaurav Kesh Roushan",
455+
"avatar_url": "https://avatars.githubusercontent.com/u/98611148?v=4",
456+
"profile": "https://gkrcoder.vercel.app",
457+
"contributions": [
458+
"review"
459+
]
460+
},
461+
{
462+
"login": "shaurya35",
463+
"name": "Shaurya Jha",
464+
"avatar_url": "https://avatars.githubusercontent.com/u/106850641?v=4",
465+
"profile": "https://shauryacreativefolio.netlify.app/",
466+
"contributions": [
467+
"review"
468+
]
469+
},
470+
{
471+
"login": "iitzIrFan",
472+
"name": "iitzIrFan",
473+
"avatar_url": "https://avatars.githubusercontent.com/u/138690953?v=4",
474+
"profile": "https://irfan-shaikh-portfolio.vercel.app/",
475+
"login": "vijaychandra1910",
476+
"name": "VIJAY KUMAR CHANDRA",
477+
"avatar_url": "https://avatars.githubusercontent.com/u/138502362?v=4",
478+
"profile": "https://linktr.ee/vijay__19",
479+
"contributions": [
480+
"review"
481+
]
482+
},
483+
{
484+
"login": "theashikagupta",
485+
"name": "Ashika Gupta",
486+
"avatar_url": "https://avatars.githubusercontent.com/u/136061047?v=4",
487+
"profile": "https://github.com/theashikagupta",
406488
"contributions": [
407489
"review"
408490
]

.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: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
<h1 align="center">Awesome Github Profiles</h1>
1+
<h2 align="center">Awesome Github Profile</h2>
22

33
<div align="center">
44

55
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
66
[![All Contributors](https://img.shields.io/badge/all_contributors-44-orange.svg?style=flat-square)](#contributors-)
7+
78
<!-- ALL-CONTRIBUTORS-BADGE:END -->
89
🔍Welcome to the awesome github profiles repo project! 🌟.
910
</div>
@@ -73,6 +74,19 @@
7374
<tr>
7475
<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>
7576
<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>
77+
<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>
78+
<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>
79+
<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>
80+
<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>
81+
<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>
82+
<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>
83+
<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>
84+
<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>
85+
<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>
86+
<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>
87+
</tr>
88+
<tr>
89+
<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>
7690
</tr>
7791
</tbody>
7892
</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)