Skip to content

Commit

Permalink
Merge branch 'main' into all-contributors/add-HimanshuNarware
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay-kv authored Oct 2, 2024
2 parents d2d5192 + 94c689e commit 5bc16d2
Show file tree
Hide file tree
Showing 21 changed files with 262 additions and 7 deletions.
125 changes: 125 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,131 @@
"name": "Himanshu Narware",
"avatar_url": "https://avatars.githubusercontent.com/u/83147410?v=4",
"profile": "https://github.com/HimanshuNarware",
"login": "Zeenatattar",
"name": "Zeenat",
"avatar_url": "https://avatars.githubusercontent.com/u/111846814?v=4",
"profile": "https://github.com/Zeenatattar",
"login": "rohitroy-github",
"name": "Rohit Roy",
"avatar_url": "https://avatars.githubusercontent.com/u/68563695?v=4",
"profile": "https://linktr.ee/rohitroy_r",
"login": "Varsani2520",
"name": "v_a_r_s_a_n_i",
"avatar_url": "https://avatars.githubusercontent.com/u/137641079?v=4",
"profile": "https://github.com/Varsani2520",

"login": "4darsh-Dev",
"name": "ADARSH MAURYA",
"avatar_url": "https://avatars.githubusercontent.com/u/109789509?v=4",
"profile": "https://linktr.ee/4darsh_dev",
"login": "Sanchitbajaj02",
"name": "Sanchit Bajaj",
"avatar_url": "https://avatars.githubusercontent.com/u/55249639?v=4",
"profile": "https://sanchitbajaj02.github.io/portfolio",
"login": "ChhaviRohilla",
"name": "Chhavi Rohilla",
"avatar_url": "https://avatars.githubusercontent.com/u/136676662?v=4",
"profile": "https://github.com/ChhaviRohilla",
},
{
"login": "abhisheks008",
"name": "Abhishek Sharma",
"avatar_url": "https://avatars.githubusercontent.com/u/68724349?v=4",
"profile": "https://abhisheks008.bio.link/",
},
{
"login": "sourabhkumar47",
"name": "Sourabh Kumar",
"avatar_url": "https://avatars.githubusercontent.com/u/81826285?v=4",
"profile": "http://sourabhkumar.tech/",
},
{
"login": "Soumya-Kushwaha",
"name": "Soumya Kushwaha",
"avatar_url": "https://avatars.githubusercontent.com/u/87495134?v=4",
"profile": "https://github.com/Soumya-Kushwaha",
"contributions": [
"review"
]
},
{
"login": "Jagpreet153",
"name": "Jagpreet Singh Khurana",
"avatar_url": "https://avatars.githubusercontent.com/u/119691733?v=4",
"profile": "https://github.com/Jagpreet153",
},
{
"login": "hirapurekannu72",
"name": "hirapurekannu72",
"avatar_url": "https://avatars.githubusercontent.com/u/146826102?v=4",
"profile": "https://github.com/hirapurekannu72",
"contributions": [
"review"
]
},
{
"login": "Krish-Depani",
"name": "Krish Depani",
"avatar_url": "https://avatars.githubusercontent.com/u/72994417?v=4",
"profile": "https://github.com/Krish-Depani",
"contributions": [
"review"
]
},
{
"login": "Devamani11D",
"name": "Duddekunta Devamani",
"avatar_url": "https://avatars.githubusercontent.com/u/117567542?v=4",
"profile": "https://github.com/Devamani11D",
},
{
"login": "Rohith2201",
"name": "J VENKATA LAKSHMI SAI ROHITH",
"avatar_url": "https://avatars.githubusercontent.com/u/94969985?v=4",
"profile": "https://julururohith.blogspot.com/",
},
{
"login": "GauravKesh",
"name": "Gaurav Kesh Roushan",
"avatar_url": "https://avatars.githubusercontent.com/u/98611148?v=4",
"profile": "https://gkrcoder.vercel.app",
"contributions": [
"review"
]
},
{
"login": "shaurya35",
"name": "Shaurya Jha",
"avatar_url": "https://avatars.githubusercontent.com/u/106850641?v=4",
"profile": "https://shauryacreativefolio.netlify.app/",
"contributions": [
"review"
]
},
{
"login": "Luson045",
"name": "Luson Basumatary",
"avatar_url": "https://avatars.githubusercontent.com/u/131430087?v=4",
"profile": "https://github.com/Luson045",
},
{
"login": "iitzIrFan",
"name": "iitzIrFan",
"avatar_url": "https://avatars.githubusercontent.com/u/138690953?v=4",
"profile": "https://irfan-shaikh-portfolio.vercel.app/",
"login": "vijaychandra1910",
"name": "VIJAY KUMAR CHANDRA",
"avatar_url": "https://avatars.githubusercontent.com/u/138502362?v=4",
"profile": "https://linktr.ee/vijay__19",
"contributions": [
"review"
]
},
{
"login": "theashikagupta",
"name": "Ashika Gupta",
"avatar_url": "https://avatars.githubusercontent.com/u/136061047?v=4",
"profile": "https://github.com/theashikagupta",
"contributions": [
"review"
]
Expand Down
26 changes: 20 additions & 6 deletions .github/workflows/allcontributor_autocommentor_active_issue.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Comment on Active "Add Profile" Issues
name: Comment on Active Add Profile Issues

on:
workflow_dispatch:
schedule:
- cron: '0 */3 * * *'
- cron: '0 */6 * * *'

jobs:
comment-on-active-issues:
Expand All @@ -27,13 +27,27 @@ jobs:
const issueCreator = issue.user.login;
const commentMessage = `@all-contributors please add @${issueCreator} for review`;
await github.rest.issues.createComment({
const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
body: commentMessage
issue_number: issue.number
});
console.log(`Commented on issue #${issue.number}`);
const hasAllContributorsComment = comments.some(comment =>
comment.body.includes('@all-contributors please add')
);
if (!hasAllContributorsComment) {
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
body: commentMessage
});
console.log(`Commented on issue #${issue.number}`);
} else {
console.log(`Skipped commenting on issue #${issue.number} - already has an all-contributors comment`);
}
}
}
46 changes: 46 additions & 0 deletions .github/workflows/allcontributor_autopr_merge_active.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Merge Active All-Contributors PRs

on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:

jobs:
merge-active-prs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Merge active PRs
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: pullRequests } = await github.rest.pulls.list({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
sort: 'created',
direction: 'asc'
});
for (const pr of pullRequests) {
if (pr.user.login === 'allcontributors[bot]' && pr.mergeable_state === 'clean') {
try {
await github.rest.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pr.number,
merge_method: 'squash'
});
console.log(`Successfully merged PR #${pr.number}`);
} catch (error) {
console.error(`Failed to merge PR #${pr.number}: ${error.message}`);
}
}
}
48 changes: 48 additions & 0 deletions .github/workflows/codereview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Auto-Approve and Merge Pull Requests

on:
pull_request:
types: [opened, synchronize, reopened]
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:

jobs:
auto-approve-and-merge:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install PyGithub
run: pip install PyGithub

- name: Auto-approve and Merge Pull Requests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
import os
from github import Github
def approve_and_merge_pr(pr):
pr.create_review(event='APPROVE', body='Automatically approved')
print(f"Approved PR #{pr.number}")
if pr.mergeable:
pr.merge(merge_method='squash')
print(f"Merged PR #{pr.number}")
else:
print(f"PR #{pr.number} is not mergeable")
g = Github(os.getenv('GITHUB_TOKEN'))
repo = g.get_repo(os.getenv('GITHUB_REPOSITORY'))
if os.getenv('GITHUB_EVENT_NAME') == 'pull_request':
pr_number = os.getenv('GITHUB_EVENT_PULL_REQUEST_NUMBER')
pr = repo.get_pull(int(pr_number))
approve_and_merge_pr(pr)
else:
for pr in repo.get_pulls(state='open'):
approve_and_merge_pr(pr)
print("Auto-approval and merge process completed successfully.")
shell: python
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 align="center">Awesome Github Profiles</h1>
<h2 align="center">Awesome Github Profile</h2>

<div align="center">

Expand Down Expand Up @@ -73,6 +73,28 @@
<tr>
<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>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/HimanshuNarware"><img src="https://avatars.githubusercontent.com/u/83147410?v=4?s=100" width="100px;" alt="Himanshu Narware"/><br /><sub><b>Himanshu Narware</b></sub></a><br /><a href="https://github.com/recodehive/awesome-github-profiles/pulls?q=is%3Apr+reviewed-by%3AHimanshuNarware" title="Reviewed Pull Requests">👀</a></td>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
</tr>
<tr>
<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>
</tr>
</tbody>
</table>
Expand Down
Binary file added screenshots/Devamani11D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/FezanMuhammadAli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/GauravKesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/Jagpreet153.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/Krish-Depani.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/Luson045.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/Rohith2201.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/ayushisk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/grasyPatel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/hirapurekannu72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/iitzIrFan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/itsbhh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/sanjay-kv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/shaurya35.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/theashikagupta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/vijaychandra1910.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5bc16d2

Please sign in to comment.