From 2488e2ea0858906cce5d6d0065c42a1f3fd212fd Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Mon, 5 Jan 2026 06:21:42 +0530 Subject: [PATCH 01/56] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b26a93c..6cd689a 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ check 10 check 11 check 12 check 13 +check 14
From 8b29e93acd25a188003e6d861637c4ebd7bbd9c9 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Tue, 6 Jan 2026 11:59:31 +0530 Subject: [PATCH 02/56] gist check logging --- .github/workflows/update-trigger.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index 5f16ca8..be8471a 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -12,6 +12,16 @@ jobs: outputs: lines_changed: ${{ steps.calc.outputs.lines_changed }} steps: + - name: Verify GIST_PAT secret exists + env: + GIST_PAT: ${{ secrets.GIST_PAT }} + run: | + if [ -z "$GIST_PAT" ]; then + echo "❌ GIST_PAT secret is not configured" + exit 1 + fi + echo "✓ GIST_PAT is configured (length: ${#GIST_PAT} chars)" + - name: Calculate lines changed id: calc run: | From 793ffcb8ac7bb591b059995a1c13c09eedc0ad1a Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Tue, 6 Jan 2026 12:03:49 +0530 Subject: [PATCH 03/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 02e2622..a4128ed 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ check 11 check 12 check 13 check 14 - +check 15
From da564448ec510462b298b94ca08b31941a2ac703 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Tue, 6 Jan 2026 12:33:54 +0530 Subject: [PATCH 04/56] add logging of other env --- .github/workflows/update-trigger.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index be8471a..8068b58 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -12,15 +12,31 @@ jobs: outputs: lines_changed: ${{ steps.calc.outputs.lines_changed }} steps: - - name: Verify GIST_PAT secret exists + - name: Verify secrets configuration env: GIST_PAT: ${{ secrets.GIST_PAT }} + DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} + DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }} run: | + echo "Checking required secrets..." + if [ -z "$GIST_PAT" ]; then echo "❌ GIST_PAT secret is not configured" exit 1 fi echo "✓ GIST_PAT is configured (length: ${#GIST_PAT} chars)" + + if [ -z "$DISCORD_BOT_TOKEN" ]; then + echo "⚠️ DISCORD_BOT_TOKEN is not configured (optional for registry update)" + else + echo "✓ DISCORD_BOT_TOKEN is configured (length: ${#DISCORD_BOT_TOKEN} chars)" + fi + + if [ -z "$DISCORD_GUILD_ID" ]; then + echo "⚠️ DISCORD_GUILD_ID is not configured (optional for registry update)" + else + echo "✓ DISCORD_GUILD_ID is configured (value: $DISCORD_GUILD_ID)" + fi - name: Calculate lines changed id: calc From a53da20467f81850f033c3cea9fd9ccb6a574ecc Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Tue, 6 Jan 2026 12:35:38 +0530 Subject: [PATCH 05/56] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a4128ed..1bb75ec 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,9 @@ check 12 check 13 check 14 check 15 +check 16 + +
From 4b481c6bf2c6ca5a995aaf5e6b2fd4c1c5394c71 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Tue, 6 Jan 2026 12:38:51 +0530 Subject: [PATCH 06/56] remove exit --- .github/workflows/update-trigger.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index 8068b58..e6c64e4 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -22,7 +22,8 @@ jobs: if [ -z "$GIST_PAT" ]; then echo "❌ GIST_PAT secret is not configured" - exit 1 + else + echo "✓ GIST_PAT is configured (length: ${#GIST_PAT} chars)" fi echo "✓ GIST_PAT is configured (length: ${#GIST_PAT} chars)" From 20152fbd543e3030abd52eacc6f80e837606b164 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Tue, 6 Jan 2026 12:39:31 +0530 Subject: [PATCH 07/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bb75ec..be71a8d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ check 13 check 14 check 15 check 16 - +check 17
From b4312b9b8a531aecbbb39cd3fd07ae450ea87626 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Tue, 6 Jan 2026 22:34:39 +0530 Subject: [PATCH 08/56] config GIST_PAT env --- .github/workflows/update-trigger.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index e6c64e4..d6e6baf 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -9,6 +9,7 @@ jobs: # Run on any merged PR (not just first-time contributors) if: github.event.pull_request.merged == true runs-on: ubuntu-latest + environment: GIST_PAT # Use environment secret outputs: lines_changed: ${{ steps.calc.outputs.lines_changed }} steps: @@ -49,6 +50,7 @@ jobs: update: needs: calculate + environment: GIST_PAT # Use environment secret uses: automation-workflows/contributor-automation/.github/workflows/reusable-update-registry.yml@main with: pr_number: ${{ github.event.pull_request.number }} From fe9c53b930ce673cfdfebca6f30e594c9e7a3bbd Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Tue, 6 Jan 2026 22:35:34 +0530 Subject: [PATCH 09/56] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index be71a8d..72b1341 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ check 14 check 15 check 16 check 17 +check 18 +
From 31491cd27a101d792f09fc75ad920f6cdfd7f715 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Tue, 6 Jan 2026 22:41:20 +0530 Subject: [PATCH 10/56] error fix --- .github/workflows/update-trigger.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index d6e6baf..efef240 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -50,7 +50,6 @@ jobs: update: needs: calculate - environment: GIST_PAT # Use environment secret uses: automation-workflows/contributor-automation/.github/workflows/reusable-update-registry.yml@main with: pr_number: ${{ github.event.pull_request.number }} From d73558196cc04d6a4f814596478642cbd36403d1 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Tue, 6 Jan 2026 22:42:02 +0530 Subject: [PATCH 11/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 72b1341..c3a2ca1 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ check 15 check 16 check 17 check 18 - +check 19
From 7f9d68256b9d26f9ff379e41ede1bd1ab757b3f9 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Tue, 6 Jan 2026 22:57:51 +0530 Subject: [PATCH 12/56] check org secret --- .github/workflows/update-trigger.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index efef240..e6c64e4 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -9,7 +9,6 @@ jobs: # Run on any merged PR (not just first-time contributors) if: github.event.pull_request.merged == true runs-on: ubuntu-latest - environment: GIST_PAT # Use environment secret outputs: lines_changed: ${{ steps.calc.outputs.lines_changed }} steps: From a88862dc4c17b29acc35477ac6ca4636d5c6d51e Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Tue, 6 Jan 2026 22:58:35 +0530 Subject: [PATCH 13/56] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index c3a2ca1..21fb10c 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,9 @@ check 16 check 17 check 18 check 19 +check 20 + +
From e577824221cdf7a1d51dcf9d4d6e276b48c48fd6 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Tue, 6 Jan 2026 23:28:29 +0530 Subject: [PATCH 14/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 21fb10c..ec180c6 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ check 17 check 18 check 19 check 20 - +check 21 From 86115d27e45d004ce3fb382b0ce9c57822c4e64c Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Wed, 7 Jan 2026 00:44:45 +0530 Subject: [PATCH 15/56] Revert "check org secret" This reverts commit 7f9d68256b9d26f9ff379e41ede1bd1ab757b3f9. --- .github/workflows/update-trigger.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index e6c64e4..efef240 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -9,6 +9,7 @@ jobs: # Run on any merged PR (not just first-time contributors) if: github.event.pull_request.merged == true runs-on: ubuntu-latest + environment: GIST_PAT # Use environment secret outputs: lines_changed: ${{ steps.calc.outputs.lines_changed }} steps: From 158af4cb8c92f9f297cb34a259fd804d0b78db23 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Wed, 7 Jan 2026 00:46:17 +0530 Subject: [PATCH 16/56] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ec180c6..a927259 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ check 18 check 19 check 20 check 21 +check 22 From 0c09230a4ec7cdd910bcf6946b2b8317a475e499 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Wed, 7 Jan 2026 17:12:06 +0530 Subject: [PATCH 17/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a927259..1150a55 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ check 19 check 20 check 21 check 22 - +check 23
From 7530bfc8175c52a4cc82d6e2cd040688246f0bcc Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Wed, 7 Jan 2026 18:55:42 +0530 Subject: [PATCH 18/56] debug secert workflow --- .github/workflows/debug-secrets.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/debug-secrets.yml diff --git a/.github/workflows/debug-secrets.yml b/.github/workflows/debug-secrets.yml new file mode 100644 index 0000000..c9a8b51 --- /dev/null +++ b/.github/workflows/debug-secrets.yml @@ -0,0 +1,25 @@ +name: Debug Secrets + +on: + workflow_dispatch: # Manual trigger + push: + branches: [main] # Or remove this if you only want manual + +jobs: + debug: + runs-on: ubuntu-latest + environment: GIST_PAT # Use environment to test environment secrets + steps: + - name: Check all secrets + env: + GIST_PAT: ${{ secrets.GIST_PAT }} + DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} + DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }} + DISCORD_APPRENTICE_ROLE_ID: ${{ secrets.DISCORD_APPRENTICE_ROLE_ID }} + DISCORD_SENTINEL_ROLE_ID: ${{ secrets.DISCORD_SENTINEL_ROLE_ID }} + run: | + [ -n "$GIST_PAT" ] && echo "✓ GIST_PAT (${#GIST_PAT} chars)" || echo "❌ GIST_PAT missing" + [ -n "$DISCORD_BOT_TOKEN" ] && echo "✓ DISCORD_BOT_TOKEN (${#DISCORD_BOT_TOKEN} chars)" || echo "❌ DISCORD_BOT_TOKEN missing" + [ -n "$DISCORD_GUILD_ID" ] && echo "✓ DISCORD_GUILD_ID ($DISCORD_GUILD_ID)" || echo "❌ DISCORD_GUILD_ID missing" + [ -n "$DISCORD_APPRENTICE_ROLE_ID" ] && echo "✓ DISCORD_APPRENTICE_ROLE_ID ($DISCORD_APPRENTICE_ROLE_ID)" || echo "❌ DISCORD_APPRENTICE_ROLE_ID missing" + [ -n "$DISCORD_SENTINEL_ROLE_ID" ] && echo "✓ DISCORD_SENTINEL_ROLE_ID ($DISCORD_SENTINEL_ROLE_ID)" || echo "❌ DISCORD_SENTINEL_ROLE_ID missing" From 0643ee56368eeed48e9d50c2110aba900beef038 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Thu, 8 Jan 2026 11:41:56 +0530 Subject: [PATCH 19/56] remove env for better scope --- .github/workflows/debug-secrets.yml | 1 - .github/workflows/update-trigger.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/debug-secrets.yml b/.github/workflows/debug-secrets.yml index c9a8b51..44a1202 100644 --- a/.github/workflows/debug-secrets.yml +++ b/.github/workflows/debug-secrets.yml @@ -8,7 +8,6 @@ on: jobs: debug: runs-on: ubuntu-latest - environment: GIST_PAT # Use environment to test environment secrets steps: - name: Check all secrets env: diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index efef240..e6c64e4 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -9,7 +9,6 @@ jobs: # Run on any merged PR (not just first-time contributors) if: github.event.pull_request.merged == true runs-on: ubuntu-latest - environment: GIST_PAT # Use environment secret outputs: lines_changed: ${{ steps.calc.outputs.lines_changed }} steps: From 5d68bdec14686f1def1f120487ab4d2c48d0ee27 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 11:47:05 +0530 Subject: [PATCH 20/56] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1150a55..bad5879 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ check 20 check 21 check 22 check 23 +check 24
From bde56bf6e261f847229eb0e517ad66e52b5a2163 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Thu, 8 Jan 2026 11:55:31 +0530 Subject: [PATCH 21/56] commented error portion --- .github/workflows/update-trigger.yml | 29 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index e6c64e4..3d06e3e 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -3,11 +3,12 @@ name: Update Contributor Registry on: pull_request: types: [closed] + workflow_dispatch: jobs: calculate: # Run on any merged PR (not just first-time contributors) - if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest outputs: lines_changed: ${{ steps.calc.outputs.lines_changed }} @@ -42,19 +43,19 @@ jobs: - name: Calculate lines changed id: calc run: | - ADDITIONS=${{ github.event.pull_request.additions }} - DELETIONS=${{ github.event.pull_request.deletions }} + ADDITIONS=${{ github.event.pull_request.additions || 0 }} + DELETIONS=${{ github.event.pull_request.deletions || 0 }} LINES_CHANGED=$((ADDITIONS + DELETIONS)) echo "lines_changed=$LINES_CHANGED" >> $GITHUB_OUTPUT - update: - needs: calculate - uses: automation-workflows/contributor-automation/.github/workflows/reusable-update-registry.yml@main - with: - pr_number: ${{ github.event.pull_request.number }} - repo_name: ${{ github.repository }} - pr_author: ${{ github.event.pull_request.user.login }} - lines_changed: ${{ fromJson(needs.calculate.outputs.lines_changed) }} - pr_labels: ${{ toJson(github.event.pull_request.labels.*.name) }} - secrets: - GIST_PAT: ${{ secrets.GIST_PAT }} \ No newline at end of file + # update: + # needs: calculate + # uses: automation-workflows/contributor-automation/.github/workflows/reusable-update-registry.yml@main + # with: + # pr_number: ${{ github.event.pull_request.number }} + # repo_name: ${{ github.repository }} + # pr_author: ${{ github.event.pull_request.user.login }} + # lines_changed: ${{ fromJson(needs.calculate.outputs.lines_changed) }} + # pr_labels: ${{ toJson(github.event.pull_request.labels.*.name) }} + # secrets: + # GIST_PAT: ${{ secrets.GIST_PAT }} \ No newline at end of file From cecbe92d6c6ec4c6680eb6978ac4405e9f978a18 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Thu, 8 Jan 2026 12:06:00 +0530 Subject: [PATCH 22/56] success revert --- .github/workflows/update-trigger.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index 3d06e3e..c234d80 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -48,14 +48,14 @@ jobs: LINES_CHANGED=$((ADDITIONS + DELETIONS)) echo "lines_changed=$LINES_CHANGED" >> $GITHUB_OUTPUT - # update: - # needs: calculate - # uses: automation-workflows/contributor-automation/.github/workflows/reusable-update-registry.yml@main - # with: - # pr_number: ${{ github.event.pull_request.number }} - # repo_name: ${{ github.repository }} - # pr_author: ${{ github.event.pull_request.user.login }} - # lines_changed: ${{ fromJson(needs.calculate.outputs.lines_changed) }} - # pr_labels: ${{ toJson(github.event.pull_request.labels.*.name) }} - # secrets: - # GIST_PAT: ${{ secrets.GIST_PAT }} \ No newline at end of file + update: + needs: calculate + uses: automation-workflows/contributor-automation/.github/workflows/reusable-update-registry.yml@main + with: + pr_number: ${{ github.event.pull_request.number }} + repo_name: ${{ github.repository }} + pr_author: ${{ github.event.pull_request.user.login }} + lines_changed: ${{ fromJson(needs.calculate.outputs.lines_changed) }} + pr_labels: ${{ toJson(github.event.pull_request.labels.*.name) }} + secrets: + GIST_PAT: ${{ secrets.GIST_PAT }} \ No newline at end of file From e26f16050cbd32c61b84126f91ed32fe77d4b658 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Thu, 8 Jan 2026 18:23:26 +0530 Subject: [PATCH 23/56] left changes revert --- .github/workflows/update-trigger.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index c234d80..cc60efb 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -23,10 +23,10 @@ jobs: if [ -z "$GIST_PAT" ]; then echo "❌ GIST_PAT secret is not configured" + exit 1 else echo "✓ GIST_PAT is configured (length: ${#GIST_PAT} chars)" fi - echo "✓ GIST_PAT is configured (length: ${#GIST_PAT} chars)" if [ -z "$DISCORD_BOT_TOKEN" ]; then echo "⚠️ DISCORD_BOT_TOKEN is not configured (optional for registry update)" @@ -52,10 +52,10 @@ jobs: needs: calculate uses: automation-workflows/contributor-automation/.github/workflows/reusable-update-registry.yml@main with: - pr_number: ${{ github.event.pull_request.number }} + pr_number: ${{ github.event.pull_request.number || 0 }} repo_name: ${{ github.repository }} - pr_author: ${{ github.event.pull_request.user.login }} - lines_changed: ${{ fromJson(needs.calculate.outputs.lines_changed) }} - pr_labels: ${{ toJson(github.event.pull_request.labels.*.name) }} + pr_author: ${{ github.event.pull_request.user.login || github.actor }} + lines_changed: ${{ needs.calculate.outputs.lines_changed }} + pr_labels: ${{ toJson(github.event.pull_request.labels.*.name || '[]') }} secrets: GIST_PAT: ${{ secrets.GIST_PAT }} \ No newline at end of file From 1523310c8f412a142e6923c7d422fc519cda4759 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 19:20:25 +0530 Subject: [PATCH 24/56] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index bad5879..0b128f2 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ check 21 check 22 check 23 check 24 +check 25 +
From 5a6703166fa9dcee095204ba6ec35c1d4dbee7b8 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 19:30:27 +0530 Subject: [PATCH 25/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b128f2..a07a707 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ check 22 check 23 check 24 check 25 - +check 26
From 0dff2e47213d82117f8224421c57994418c1106d Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Thu, 8 Jan 2026 20:07:55 +0530 Subject: [PATCH 26/56] specify permission(as resuable use inherits caller --- .github/workflows/update-trigger.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index cc60efb..84460d4 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -50,6 +50,9 @@ jobs: update: needs: calculate + permissions: + contents: write + pull-requests: read uses: automation-workflows/contributor-automation/.github/workflows/reusable-update-registry.yml@main with: pr_number: ${{ github.event.pull_request.number || 0 }} From ea1cd8c35b637939b1899c0a759537712ac79176 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 21:15:56 +0530 Subject: [PATCH 27/56] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a07a707..887cec1 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ check 23 check 24 check 25 check 26 +check 27 + +
From 0419f1be91403e6713ccb521778757d15b1aa818 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Thu, 8 Jan 2026 21:18:53 +0530 Subject: [PATCH 28/56] add permission --- .github/workflows/update-trigger.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index 84460d4..e8f4bbc 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -5,6 +5,10 @@ on: types: [closed] workflow_dispatch: +permissions: + contents: write + pull-requests: read + jobs: calculate: # Run on any merged PR (not just first-time contributors) From e26df3024d1e345536fafc1a51d6f7bc267a8af3 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 21:19:16 +0530 Subject: [PATCH 29/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 887cec1..f987faa 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ check 24 check 25 check 26 check 27 - +check 28 From 0d3fb75f34e3f5717390b0df4c792d4c869e06e3 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 21:23:13 +0530 Subject: [PATCH 30/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f987faa..7da0afb 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ check 25 check 26 check 27 check 28 - +check 29
From 131baad7f3714be0fcd2fa0365abc8c72a278f68 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 21:26:44 +0530 Subject: [PATCH 31/56] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7da0afb..4d94818 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ check 26 check 27 check 28 check 29 +check 30
From 163fe8ae9643a77471f82470574b7a2c637a93f0 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Thu, 8 Jan 2026 23:00:55 +0530 Subject: [PATCH 32/56] try remove main permission but still on reuable --- .github/workflows/update-trigger.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index e8f4bbc..84460d4 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -5,10 +5,6 @@ on: types: [closed] workflow_dispatch: -permissions: - contents: write - pull-requests: read - jobs: calculate: # Run on any merged PR (not just first-time contributors) From 891f916c5ccb1477f95e1d880cbbfac886c3c36d Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 23:02:16 +0530 Subject: [PATCH 33/56] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4d94818..ed719e8 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ check 27 check 28 check 29 check 30 +check 31
From 4fd471fa3cf6cab3ac403ee5b7bf1714062c5ec9 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Thu, 8 Jan 2026 23:05:20 +0530 Subject: [PATCH 34/56] try permission to calculate job --- .github/workflows/update-trigger.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index 84460d4..cf55109 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -10,6 +10,9 @@ jobs: # Run on any merged PR (not just first-time contributors) if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read outputs: lines_changed: ${{ steps.calc.outputs.lines_changed }} steps: From 21832fe0830d9310ee75b214939aefd124b3b0ab Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 23:06:20 +0530 Subject: [PATCH 35/56] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ed719e8..69d824c 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ check 28 check 29 check 30 check 31 +check 32 +
From c03da88d8be12b6d9a230dea8b60d6e8c4d309cb Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Thu, 8 Jan 2026 23:18:54 +0530 Subject: [PATCH 36/56] try permission inside --- .github/workflows/update-trigger.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index cf55109..cc60efb 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -10,9 +10,6 @@ jobs: # Run on any merged PR (not just first-time contributors) if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: read outputs: lines_changed: ${{ steps.calc.outputs.lines_changed }} steps: @@ -53,9 +50,6 @@ jobs: update: needs: calculate - permissions: - contents: write - pull-requests: read uses: automation-workflows/contributor-automation/.github/workflows/reusable-update-registry.yml@main with: pr_number: ${{ github.event.pull_request.number || 0 }} From 93ff78731243b133c1f3ef129900161154f26bcc Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 23:20:43 +0530 Subject: [PATCH 37/56] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 69d824c..f77ebc4 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ check 29 check 30 check 31 check 32 +check 33 From b34a696145e69fe1864f2768dc229f70b3497631 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 23:33:43 +0530 Subject: [PATCH 38/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f77ebc4..99f9a4e 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ check 30 check 31 check 32 check 33 - +check 34
From 3344a5556c1de543ec7869ff06e8544be21e972d Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Thu, 8 Jan 2026 23:46:56 +0530 Subject: [PATCH 39/56] try inherit --- .github/workflows/update-trigger.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index cc60efb..8634401 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -57,5 +57,4 @@ jobs: pr_author: ${{ github.event.pull_request.user.login || github.actor }} lines_changed: ${{ needs.calculate.outputs.lines_changed }} pr_labels: ${{ toJson(github.event.pull_request.labels.*.name || '[]') }} - secrets: - GIST_PAT: ${{ secrets.GIST_PAT }} \ No newline at end of file + secrets: inherit \ No newline at end of file From 73550f32c5959db788005d46c2b370734b00f210 Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Thu, 8 Jan 2026 23:52:04 +0530 Subject: [PATCH 40/56] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 99f9a4e..8ae3891 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ check 31 check 32 check 33 check 34 +check 35 + + +
From dcce60480a1a4c27ea1fc7b54d7438fdeaa979c1 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Fri, 9 Jan 2026 00:02:39 +0530 Subject: [PATCH 41/56] made it manually --- .github/workflows/update-trigger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index 8634401..733ee1a 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -1,7 +1,7 @@ name: Update Contributor Registry on: - pull_request: + pull_request_target: types: [closed] workflow_dispatch: From 275b12614d2faaf9f694847e04bdc29975ac87dd Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Fri, 9 Jan 2026 00:04:06 +0530 Subject: [PATCH 42/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ae3891..bcda56e 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ check 32 check 33 check 34 check 35 - +check 36 From 2d264d8113a5207dcfb0eebe8ccb02a28e58485f Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Fri, 9 Jan 2026 00:15:22 +0530 Subject: [PATCH 43/56] Revert "try permission inside" This reverts commit c03da88d8be12b6d9a230dea8b60d6e8c4d309cb. --- .github/workflows/update-trigger.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/update-trigger.yml b/.github/workflows/update-trigger.yml index 733ee1a..b213926 100644 --- a/.github/workflows/update-trigger.yml +++ b/.github/workflows/update-trigger.yml @@ -10,6 +10,9 @@ jobs: # Run on any merged PR (not just first-time contributors) if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read outputs: lines_changed: ${{ steps.calc.outputs.lines_changed }} steps: @@ -50,6 +53,9 @@ jobs: update: needs: calculate + permissions: + contents: write + pull-requests: read uses: automation-workflows/contributor-automation/.github/workflows/reusable-update-registry.yml@main with: pr_number: ${{ github.event.pull_request.number || 0 }} From 297e306f34c9c50f15d18622616a3303264b04ed Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Fri, 9 Jan 2026 00:17:09 +0530 Subject: [PATCH 44/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ae3891..bcda56e 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ check 32 check 33 check 34 check 35 - +check 36 From 205baa65ac787b652e60a46f9ad9a04257d4442a Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Fri, 9 Jan 2026 00:42:25 +0530 Subject: [PATCH 45/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bcda56e..2c71f06 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ check 33 check 34 check 35 check 36 - +check 37 From 1e067c17f677c8fcb0a85c732a12003acb7690ef Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Fri, 9 Jan 2026 00:50:44 +0530 Subject: [PATCH 46/56] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2c71f06..d5ca614 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ check 34 check 35 check 36 check 37 +check 38 From bb6b6b5f2c65c05579b2fa945c7fe281ef14d84b Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Fri, 9 Jan 2026 01:50:52 +0530 Subject: [PATCH 47/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d5ca614..ec9ca18 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ check 35 check 36 check 37 check 38 - +check 40
From b6e71bae006a01f5e236fc5892ff10bd65238b64 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Fri, 9 Jan 2026 02:13:31 +0530 Subject: [PATCH 48/56] try inherit --- .github/workflows/promote-trigger.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/promote-trigger.yml b/.github/workflows/promote-trigger.yml index abeb2a9..11ddb23 100644 --- a/.github/workflows/promote-trigger.yml +++ b/.github/workflows/promote-trigger.yml @@ -13,9 +13,4 @@ jobs: pr_number: ${{ github.event.pull_request.number }} repo_name: ${{ github.repository }} pr_author: ${{ github.event.pull_request.user.login }} - secrets: - GIST_PAT: ${{ secrets.GIST_PAT }} - DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} - DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }} - DISCORD_APPRENTICE_ROLE_ID: ${{ secrets.DISCORD_APPRENTICE_ROLE_ID }} - DISCORD_SENTINEL_ROLE_ID: ${{ secrets.DISCORD_SENTINEL_ROLE_ID }} + secrets: inherit From 26145aef44500c0b9c73fdf65bc0c73adbc248aa Mon Sep 17 00:00:00 2001 From: kpj-2006 Date: Fri, 9 Jan 2026 02:15:07 +0530 Subject: [PATCH 49/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ec9ca18..ebab48c 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ check 36 check 37 check 38 check 40 - +check 41
From b3642f5605e3bd9f0d6e783778d7defd2140cfa1 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Fri, 9 Jan 2026 02:17:52 +0530 Subject: [PATCH 50/56] Revert "try inherit" This reverts commit b6e71bae006a01f5e236fc5892ff10bd65238b64. --- .github/workflows/promote-trigger.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/promote-trigger.yml b/.github/workflows/promote-trigger.yml index 11ddb23..abeb2a9 100644 --- a/.github/workflows/promote-trigger.yml +++ b/.github/workflows/promote-trigger.yml @@ -13,4 +13,9 @@ jobs: pr_number: ${{ github.event.pull_request.number }} repo_name: ${{ github.repository }} pr_author: ${{ github.event.pull_request.user.login }} - secrets: inherit + secrets: + GIST_PAT: ${{ secrets.GIST_PAT }} + DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} + DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }} + DISCORD_APPRENTICE_ROLE_ID: ${{ secrets.DISCORD_APPRENTICE_ROLE_ID }} + DISCORD_SENTINEL_ROLE_ID: ${{ secrets.DISCORD_SENTINEL_ROLE_ID }} From 2f4ac634544ca9f67c5724a08d287b3032d7dd63 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Fri, 9 Jan 2026 02:33:45 +0530 Subject: [PATCH 51/56] add manual trigger --- .github/workflows/promote-trigger.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/promote-trigger.yml b/.github/workflows/promote-trigger.yml index abeb2a9..4fb1f2f 100644 --- a/.github/workflows/promote-trigger.yml +++ b/.github/workflows/promote-trigger.yml @@ -3,16 +3,22 @@ name: Check Promotion to Sentinel on: pull_request: types: [closed] + workflow_dispatch: + inputs: + pr_author: + description: 'GitHub username to check for promotion' + required: true + type: string jobs: promote: # Run after PR is merged to check if promotion is needed - if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' uses: automation-workflows/contributor-automation/.github/workflows/reusable-promote.yml@main with: - pr_number: ${{ github.event.pull_request.number }} + pr_number: ${{ github.event.pull_request.number || 0 }} repo_name: ${{ github.repository }} - pr_author: ${{ github.event.pull_request.user.login }} + pr_author: ${{ github.event.pull_request.user.login || inputs.pr_author }} secrets: GIST_PAT: ${{ secrets.GIST_PAT }} DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} From ff3f8a1353d54bd7e5ca8534093a46a8aba7921f Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Fri, 9 Jan 2026 18:40:59 +0530 Subject: [PATCH 52/56] add manaul assign role flow --- .github/workflows/manual-assign-role.yml | 82 ++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .github/workflows/manual-assign-role.yml diff --git a/.github/workflows/manual-assign-role.yml b/.github/workflows/manual-assign-role.yml new file mode 100644 index 0000000..daa779e --- /dev/null +++ b/.github/workflows/manual-assign-role.yml @@ -0,0 +1,82 @@ +name: Manual Discord Role Assignment + +on: + workflow_dispatch: + inputs: + discord_user_id: + description: 'Discord User ID (17-19 digits)' + required: true + type: string + role_name: + description: 'Role to assign' + required: true + type: choice + options: + - Apprentice + - Sentinel + - Knights + +jobs: + assign-role: + runs-on: ubuntu-latest + + steps: + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install requests + run: pip install requests + + - name: Assign Discord Role + env: + DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} + DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }} + DISCORD_USER_ID: ${{ inputs.discord_user_id }} + DISCORD_APPRENTICE_ROLE_ID: ${{ secrets.DISCORD_APPRENTICE_ROLE_ID }} + DISCORD_SENTINEL_ROLE_ID: ${{ secrets.DISCORD_SENTINEL_ROLE_ID }} + DISCORD_KNIGHTS_ROLE_ID: ${{ secrets.DISCORD_KNIGHTS_ROLE_ID }} + ROLE_NAME: ${{ inputs.role_name }} + run: | + python << 'EOF' + import os + import requests + + # Get inputs + bot_token = os.environ['DISCORD_BOT_TOKEN'] + guild_id = os.environ['DISCORD_GUILD_ID'] + user_id = os.environ['DISCORD_USER_ID'] + role_name = os.environ['ROLE_NAME'] + + # Determine role ID + if role_name == 'Apprentice': + role_id = os.environ['DISCORD_APPRENTICE_ROLE_ID'] + elif role_name == 'Sentinel': + role_id = os.environ['DISCORD_SENTINEL_ROLE_ID'] + elif role_name == 'Knights': + role_id = os.environ['DISCORD_KNIGHTS_ROLE_ID'] + else: + print(f"✗ Unknown role: {role_name}") + exit(1) + + print(f"Assigning {role_name} role (ID: {role_id}) to user {user_id}") + + # Make Discord API request + url = f"https://discord.com/api/v10/guilds/{guild_id}/members/{user_id}/roles/{role_id}" + headers = { + "Authorization": f"Bot {bot_token}", + "Content-Type": "application/json" + } + + response = requests.put(url, headers=headers, timeout=10) + + # Log result + if response.status_code == 204: + print(f"✓ Successfully assigned {role_name} role") + exit(0) + else: + print(f"✗ Failed: {response.status_code}") + print(f"Response: {response.text}") + exit(1) + EOF From 6e7a9817ae5ba8a7167ba7f616735638e0572bbd Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Sat, 10 Jan 2026 17:09:39 +0530 Subject: [PATCH 53/56] Create manual-reward.yml --- .github/workflows/manual-reward.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/manual-reward.yml diff --git a/.github/workflows/manual-reward.yml b/.github/workflows/manual-reward.yml new file mode 100644 index 0000000..927a87d --- /dev/null +++ b/.github/workflows/manual-reward.yml @@ -0,0 +1,24 @@ +name: Manual Reward Input + +on: + workflow_dispatch: + inputs: + metamask: + description: "MetaMask Wallet Address" + required: true + type: string + + tokens: + description: "Number of Tokens to Reward" + required: true + type: number + +jobs: + reward: + runs-on: ubuntu-latest + + steps: + - name: Print inputs (dummy check) + run: | + echo "Wallet: ${{ github.event.inputs.metamask }}" + echo "Tokens: ${{ github.event.inputs.tokens }}" From b0e2012a3060959f460d95fd82f3f421611ca1d7 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Sun, 11 Jan 2026 02:14:37 +0530 Subject: [PATCH 54/56] use resuable script --- .../onboard-first-comment-trigger.yml | 45 ++++++------------- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/.github/workflows/onboard-first-comment-trigger.yml b/.github/workflows/onboard-first-comment-trigger.yml index 10ccb75..6babf01 100644 --- a/.github/workflows/onboard-first-comment-trigger.yml +++ b/.github/workflows/onboard-first-comment-trigger.yml @@ -65,35 +65,16 @@ jobs: # Only post comment if user is NOT already onboarded - name: Comment asking for Discord ID and wallet if: steps.check_existing.outputs.exists == 'false' - uses: actions/github-script@v7 - with: - script: | - const author = context.payload.pull_request.user.login; - const body = `🎉 **Congratulations @${author} on your first merged PR!** - - To complete onboarding and receive your Discord **Apprentice** role, please comment **exactly** in this format: - - \`\`\` - discord: "YOUR_DISCORD_USER_ID" - wallet: "YOUR_WALLET_ADDRESS" - \`\`\` - - **How to find your Discord ID:** - 1. Enable Developer Mode in Discord (Settings → Advanced) - 2. Right-click your username → Copy User ID - - **Wallet format:** Must start with \`0x\` (42 characters total) - - ⚠️ **Important:** - - Only the PR author's comment will be accepted - - You must be in the Discord server to be assigned a role - - **Discord Server:** https://discord.gg/fuuWX4AbJt - - ⏰ **You have 7 days to respond.**`; - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - body - }); + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO_NAME: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }} + PR_AUTHOR: ${{ github.event.pull_request.user.login }} + run: | + cd automation + python scripts/discord_manager.py \ + --action ask_info \ + --repo-name "$REPO_NAME" \ + --pr-number $PR_NUMBER \ + --pr-author "$PR_AUTHOR" \ + --github-token "$GITHUB_TOKEN" From 3d84b7b352e5ca793cd705916b2b8b1a63f5459e Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Tue, 27 Jan 2026 15:07:09 +0530 Subject: [PATCH 55/56] Create test-contributor-label.yml --- .github/workflows/test-contributor-label.yml | 51 ++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/test-contributor-label.yml diff --git a/.github/workflows/test-contributor-label.yml b/.github/workflows/test-contributor-label.yml new file mode 100644 index 0000000..275c2b5 --- /dev/null +++ b/.github/workflows/test-contributor-label.yml @@ -0,0 +1,51 @@ +name: Test Contributor Label + +on: + pull_request: + types: [opened, reopened] + +permissions: + contents: read + pull-requests: write + issues: write + +jobs: + label-contributor: + runs-on: ubuntu-latest + steps: + - name: Label contributor type + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const prNumber = context.payload.pull_request.number; + const prAuthor = context.payload.pull_request.user.login; + + console.log(`Checking contributor type for: ${prAuthor}`); + + let label = 'external-contributor'; + + try { + const permissionLevel = await github.rest.repos.getCollaboratorPermissionLevel({ + owner: context.repo.owner, + repo: context.repo.repo, + username: prAuthor + }); + + console.log(`Permission level: ${permissionLevel.data.permission}`); + + if (['admin', 'maintain'].includes(permissionLevel.data.permission)) { + label = 'maintainer'; + } + } catch (error) { + console.log(`Could not check permissions: ${error.message}`); + } + + console.log(`Applying label: ${label}`); + + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: prNumber, + labels: [label] + }); From fa9b1e48eb7a587b5cf8c39eaf7371a125680f11 Mon Sep 17 00:00:00 2001 From: kpj2006 <24ucs074@lnmiit.ac.in> Date: Tue, 27 Jan 2026 20:36:18 +0530 Subject: [PATCH 56/56] Change pull_request to pull_request_target event --- .github/workflows/test-contributor-label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-contributor-label.yml b/.github/workflows/test-contributor-label.yml index 275c2b5..1576f93 100644 --- a/.github/workflows/test-contributor-label.yml +++ b/.github/workflows/test-contributor-label.yml @@ -1,7 +1,7 @@ name: Test Contributor Label on: - pull_request: + pull_request_target: types: [opened, reopened] permissions: