Skip to content

Commit 1bbd073

Browse files
authored
Merge branch 'main' into all-contributors/add-Jagpreet153
2 parents ef7646b + e8c36fa commit 1bbd073

19 files changed

+84
-13
lines changed

.all-contributorsrc

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,12 @@
398398
"review"
399399
]
400400
},
401+
{
402+
"login": "sourabhkumar47",
403+
"name": "Sourabh Kumar",
404+
"avatar_url": "https://avatars.githubusercontent.com/u/81826285?v=4",
405+
"profile": "http://sourabhkumar.tech/",
406+
},
401407
{
402408
"login": "Soumya-Kushwaha",
403409
"name": "Soumya Kushwaha",
@@ -412,6 +418,57 @@
412418
"name": "Jagpreet Singh Khurana",
413419
"avatar_url": "https://avatars.githubusercontent.com/u/119691733?v=4",
414420
"profile": "https://github.com/Jagpreet153",
421+
},
422+
{
423+
"login": "hirapurekannu72",
424+
"name": "hirapurekannu72",
425+
"avatar_url": "https://avatars.githubusercontent.com/u/146826102?v=4",
426+
"profile": "https://github.com/hirapurekannu72",
427+
"contributions": [
428+
"review"
429+
]
430+
},
431+
{
432+
"login": "Krish-Depani",
433+
"name": "Krish Depani",
434+
"avatar_url": "https://avatars.githubusercontent.com/u/72994417?v=4",
435+
"profile": "https://github.com/Krish-Depani",
436+
"contributions": [
437+
"review"
438+
]
439+
},
440+
{
441+
"login": "GauravKesh",
442+
"name": "Gaurav Kesh Roushan",
443+
"avatar_url": "https://avatars.githubusercontent.com/u/98611148?v=4",
444+
"profile": "https://gkrcoder.vercel.app",
445+
"contributions": [
446+
"review"
447+
]
448+
},
449+
{
450+
"login": "shaurya35",
451+
"name": "Shaurya Jha",
452+
"avatar_url": "https://avatars.githubusercontent.com/u/106850641?v=4",
453+
"profile": "https://shauryacreativefolio.netlify.app/",
454+
"contributions": [
455+
"review"
456+
]
457+
},
458+
{
459+
"login": "vijaychandra1910",
460+
"name": "VIJAY KUMAR CHANDRA",
461+
"avatar_url": "https://avatars.githubusercontent.com/u/138502362?v=4",
462+
"profile": "https://linktr.ee/vijay__19",
463+
"contributions": [
464+
"review"
465+
]
466+
},
467+
{
468+
"login": "theashikagupta",
469+
"name": "Ashika Gupta",
470+
"avatar_url": "https://avatars.githubusercontent.com/u/136061047?v=4",
471+
"profile": "https://github.com/theashikagupta",
415472
"contributions": [
416473
"review"
417474
]

.github/workflows/codereview.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Auto-Approve Pull Requests
1+
name: Auto-Approve and Merge Pull Requests
22

33
on:
44
pull_request:
@@ -8,37 +8,41 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
auto-approve:
11+
auto-approve-and-merge:
1212
runs-on: ubuntu-latest
1313
permissions:
1414
pull-requests: write
15+
contents: write
1516

1617
steps:
1718
- name: Checkout repository
1819
uses: actions/checkout@v3
1920

20-
- name: Auto-approve Pull Requests
21+
- name: Install PyGithub
22+
run: pip install PyGithub
23+
24+
- name: Auto-approve and Merge Pull Requests
2125
env:
2226
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2327
run: |
2428
import os
2529
from github import Github
26-
27-
def approve_pr(pr):
30+
def approve_and_merge_pr(pr):
2831
pr.create_review(event='APPROVE', body='Automatically approved')
2932
print(f"Approved PR #{pr.number}")
30-
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")
3138
g = Github(os.getenv('GITHUB_TOKEN'))
3239
repo = g.get_repo(os.getenv('GITHUB_REPOSITORY'))
33-
3440
if os.getenv('GITHUB_EVENT_NAME') == 'pull_request':
3541
pr_number = os.getenv('GITHUB_EVENT_PULL_REQUEST_NUMBER')
3642
pr = repo.get_pull(int(pr_number))
37-
approve_pr(pr)
43+
approve_and_merge_pr(pr)
3844
else:
3945
for pr in repo.get_pulls(state='open'):
40-
approve_pr(pr)
41-
42-
print("Auto-approval process completed successfully.")
46+
approve_and_merge_pr(pr)
47+
print("Auto-approval and merge process completed successfully.")
4348
shell: python
44-

README.md

Lines changed: 11 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-45-orange.svg?style=flat-square)](#contributors-)
7+
78
<!-- ALL-CONTRIBUTORS-BADGE:END -->
89
🔍Welcome to the awesome github profiles repo project! 🌟.
910
</div>
@@ -72,8 +73,17 @@
7273
</tr>
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>
76+
<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>
7577
<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>
7678
<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>
79+
<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>
80+
<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>
81+
<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>
82+
<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>
83+
<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>
84+
</tr>
85+
<tr>
86+
<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>
7787
</tr>
7888
</tbody>
7989
</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

screenshots/Luson045.png

561 KB
Loading

screenshots/Rohith2201.png

1.22 MB
Loading

0 commit comments

Comments
 (0)