diff --git a/.all-contributorsrc b/.all-contributorsrc index 8f5edc89..69e70535 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -403,6 +403,119 @@ "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" ] diff --git a/.github/workflows/allcontributor_autocommentor_active_issue.yml b/.github/workflows/allcontributor_autocommentor_active_issue.yml index 77f3f0d7..24d00a8c 100644 --- a/.github/workflows/allcontributor_autocommentor_active_issue.yml +++ b/.github/workflows/allcontributor_autocommentor_active_issue.yml @@ -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: @@ -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`); + } } } diff --git a/.github/workflows/allcontributor_autopr_merge_active.yml b/.github/workflows/allcontributor_autopr_merge_active.yml new file mode 100644 index 00000000..28a81a52 --- /dev/null +++ b/.github/workflows/allcontributor_autopr_merge_active.yml @@ -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}`); + } + } + } diff --git a/.github/workflows/codereview.yml b/.github/workflows/codereview.yml new file mode 100644 index 00000000..5457e775 --- /dev/null +++ b/.github/workflows/codereview.yml @@ -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 diff --git a/README.md b/README.md index a288577e..97011e25 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

Awesome Github Profiles

+

Awesome Github Profile

@@ -73,6 +73,25 @@ m
m

👀 v_a_r_s_a_n_i
v_a_r_s_a_n_i

👀 + ADARSH MAURYA
ADARSH MAURYA

👀 + Sanchit Bajaj
Sanchit Bajaj

👀 + Chhavi Rohilla
Chhavi Rohilla

👀 + Abhishek Sharma
Abhishek Sharma

👀 + Sourabh Kumar
Sourabh Kumar

👀 + Soumya Kushwaha
Soumya Kushwaha

👀 + Jagpreet Singh Khurana
Jagpreet Singh Khurana

👀 + hirapurekannu72
hirapurekannu72

👀 + Krish Depani
Krish Depani

👀 + Duddekunta Devamani
Duddekunta Devamani

👀 + J VENKATA LAKSHMI SAI ROHITH
J VENKATA LAKSHMI SAI ROHITH

👀 + Gaurav Kesh Roushan
Gaurav Kesh Roushan

👀 + Shaurya Jha
Shaurya Jha

👀 + Luson Basumatary
Luson Basumatary

👀 + iitzIrFan
iitzIrFan

👀 + VIJAY KUMAR CHANDRA
VIJAY KUMAR CHANDRA

👀 + + + Ashika Gupta
Ashika Gupta

👀 diff --git a/screenshots/Devamani11D.png b/screenshots/Devamani11D.png new file mode 100644 index 00000000..0e06cca2 Binary files /dev/null and b/screenshots/Devamani11D.png differ diff --git a/screenshots/FezanMuhammadAli.png b/screenshots/FezanMuhammadAli.png new file mode 100644 index 00000000..9d1f389f Binary files /dev/null and b/screenshots/FezanMuhammadAli.png differ diff --git a/screenshots/GauravKesh.png b/screenshots/GauravKesh.png new file mode 100644 index 00000000..97e37438 Binary files /dev/null and b/screenshots/GauravKesh.png differ diff --git a/screenshots/Jagpreet153.png b/screenshots/Jagpreet153.png new file mode 100644 index 00000000..25a09cc0 Binary files /dev/null and b/screenshots/Jagpreet153.png differ diff --git a/screenshots/Krish-Depani.png b/screenshots/Krish-Depani.png new file mode 100644 index 00000000..90c8e1d1 Binary files /dev/null and b/screenshots/Krish-Depani.png differ diff --git a/screenshots/Luson045.png b/screenshots/Luson045.png new file mode 100644 index 00000000..1a100903 Binary files /dev/null and b/screenshots/Luson045.png differ diff --git a/screenshots/Rohith2201.png b/screenshots/Rohith2201.png new file mode 100644 index 00000000..ed3c9d6d Binary files /dev/null and b/screenshots/Rohith2201.png differ diff --git a/screenshots/ayushisk.png b/screenshots/ayushisk.png new file mode 100644 index 00000000..35b3cff4 Binary files /dev/null and b/screenshots/ayushisk.png differ diff --git a/screenshots/grasyPatel.png b/screenshots/grasyPatel.png new file mode 100644 index 00000000..779a754b Binary files /dev/null and b/screenshots/grasyPatel.png differ diff --git a/screenshots/hirapurekannu72.png b/screenshots/hirapurekannu72.png new file mode 100644 index 00000000..560c987c Binary files /dev/null and b/screenshots/hirapurekannu72.png differ diff --git a/screenshots/iitzIrFan.png b/screenshots/iitzIrFan.png new file mode 100644 index 00000000..d707888b Binary files /dev/null and b/screenshots/iitzIrFan.png differ diff --git a/screenshots/itsbhh.png b/screenshots/itsbhh.png new file mode 100644 index 00000000..29449cfd Binary files /dev/null and b/screenshots/itsbhh.png differ diff --git a/screenshots/sanjay-kv.png b/screenshots/sanjay-kv.png index e1eb8750..802a2d39 100644 Binary files a/screenshots/sanjay-kv.png and b/screenshots/sanjay-kv.png differ diff --git a/screenshots/shaurya35.png b/screenshots/shaurya35.png new file mode 100644 index 00000000..aa14ef31 Binary files /dev/null and b/screenshots/shaurya35.png differ diff --git a/screenshots/theashikagupta.png b/screenshots/theashikagupta.png new file mode 100644 index 00000000..1e4eaed5 Binary files /dev/null and b/screenshots/theashikagupta.png differ diff --git a/screenshots/vijaychandra1910.png b/screenshots/vijaychandra1910.png new file mode 100644 index 00000000..f3c47e80 Binary files /dev/null and b/screenshots/vijaychandra1910.png differ