From bad409ae3eeef33487014522b8782885ba3ba760 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 04:23:29 +0000 Subject: [PATCH 1/3] Initial plan From 9674a4b595c1b1a70fc38ea52cbc5c70eb8a10de Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 04:25:46 +0000 Subject: [PATCH 2/3] feat: enhance workflow to trigger on PR merge events Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com> --- .github/workflows/contributors.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index f5ea09a..bf4a5d9 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -1,16 +1,25 @@ -name: Update Contributors +name: Update Contributors Hall of Fame on: + # Trigger when PRs are merged to main (push to main branch) push: branches: - main + # Trigger when pull requests are closed (merged) + pull_request: + types: [closed] + branches: + - main + # Run daily at midnight UTC to catch any missed updates schedule: - # Run daily at midnight UTC - cron: '0 0 * * *' + # Allow manual trigger for on-demand updates workflow_dispatch: jobs: update-contributors: + # Only run if push to main, scheduled, manual trigger, or PR merged to main + if: github.event_name != 'pull_request' || github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: contents: write @@ -21,7 +30,7 @@ jobs: with: fetch-depth: 0 - - name: Update Contributors + - name: Update Contributors Hall of Fame uses: akhilmhdh/contributors-readme-action@v2.3.6 with: readme_path: "CONTRIBUTORS.md" From 86f659b589d87d3321e496d1201142c2998be41d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 04:26:56 +0000 Subject: [PATCH 3/3] fix: improve conditional logic in workflow to handle all event types safely Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com> --- .github/workflows/contributors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index bf4a5d9..e083c27 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -19,7 +19,7 @@ on: jobs: update-contributors: # Only run if push to main, scheduled, manual trigger, or PR merged to main - if: github.event_name != 'pull_request' || github.event.pull_request.merged == true + if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) runs-on: ubuntu-latest permissions: contents: write