Skip to content

Conversation

@EbonyLouis
Copy link
Contributor

Fix Hacktoberfest Leaderboard (2025)

Summary

  • Restores the hourly-updating Hacktoberfest leaderboard for October 2025.
  • Replaces fragile logic with a strict October (UTC) merged window, full pagination, and consistent issue body rendering.

Why

  • The previous workflow wasn’t updating because:
    • Missing pull-requests: read permission prevented pulls.list from returning data.
    • Node 16 action (actions/github-script@v6) was outdated.
    • PR window was “last 30 days” (not strictly October).
    • Issue body assembly had inconsistencies in some branches/edits.

What Changed

  • uses: actions/github-script@v7 (Node 20).
  • Added permissions: pull-requests: read (kept contents: read, issues: write).
  • Strict October window (UTC) for merged_at:
    • Oct 1 00:00:00 UTCOct 31 23:59:59 UTC.
  • Pagination of closed PRs (100/page) with early exit before October.
  • Strict size labels only: small | medium | large → 5 | 10 | 15 points.
  • Tie-breaker: highest single PR size (small < medium < large).
  • Proper template-literal issueBody with rich copy + empty-state fallback.
  • Kept token style consistent with repo: github-token: ${{ secrets.GITHUB_TOKEN }}.
  • Tracks only block/goose for 2025 (can be expanded later).

Files

  • .github/workflows/update-hacktoberfest-leaderboard.yml
    433 changes: 233 additions & 200 deletions

Edge Cases / Notes

  • Points default to small (5) if none of small|medium|large labels are present.
  • Only PRs merged in October (UTC) and labeled hacktoberfest are counted.
  • If >100 closed PRs are present, pagination ensures none are missed.
  • If no qualifying PRs exist, the issue shows a clear empty-state message.

@taniandjerry taniandjerry merged commit b708302 into main Oct 8, 2025
11 checks passed
@taniandjerry taniandjerry deleted the fix-hacktoberfest-leaderboard branch October 8, 2025 20:18
@alexhancock alexhancock mentioned this pull request Oct 9, 2025
michaelneale added a commit that referenced this pull request Oct 9, 2025
* main: (170 commits)
  Applied server side call to parse and save recipe (#5022)
  feat(prompt-library): add Code Documentation Migrator intermediate prompt (#4996) (#5051)
  Add Messy Column Fixer recipe (#5062)
  Cleanup temp files (#5081)
  add openmetadata recipe (#5076)
  Fix Hacktoberfest Leaderboard (#5080)
  adding brand guidelines to AGENTS.md (#4887)
  Fix: Prevent cross-contamination of cache data across analysis modes for `analyze` tool (#5075)
  fix: remove circular reference (#5018)
  Introduced a new prompt for content amplification that integrates multi-step workflows using official Goose extensions. Closes Issue #4998 (#5050)
  Add hint for focus mode when used on file paths for `analyze` tool (#5069)
  fix: use dynamic port allocation for OAuth server (#5019)
  Art vandelay: Import & Export (#5053)
  docs: misc updates for extensions directory (#5035)
  updating recipe scanner workflows for detecting recipes from forked repos (#5056)
  feat(prompt-library): add Smart Meeting Assistant advanced prompt (#4998) (#5031)
  Allow auto focus and typing while chat is initializing (#5043)
  docs(blog): Add blog for running Goose in containerized envs  (#5052)
  fix: Add WINDOWS_CODESIGN_CERTIFICATE to nightly workflow (#5037)
  Developer `analyze` tool improvement (#5030)
  ...
tlongwell-block added a commit that referenced this pull request Oct 10, 2025
* origin/main:
  Improve Rust analysis output for `analyze` tool (#5072)
  Remove duplicate prepare_reply_context call (#5063)
  install react dev tools in development (#4979)
  Doc: Added powershell installation link to the guide (#5012)
  draft of new blog post about automating more automation (#5038)
  Subagent extension selection behavior fix (#5093)
  Add dev and alpha environment indicator (#5092)
  docs: add content carousel (#5086)
  Applied server side call to parse and save recipe (#5022)
  feat(prompt-library): add Code Documentation Migrator intermediate prompt (#4996) (#5051)
  Add Messy Column Fixer recipe (#5062)
  Cleanup temp files (#5081)
  add openmetadata recipe (#5076)
  Fix Hacktoberfest Leaderboard (#5080)
  adding brand guidelines to AGENTS.md (#4887)
  Fix: Prevent cross-contamination of cache data across analysis modes for `analyze` tool (#5075)
  fix: remove circular reference (#5018)
  Introduced a new prompt for content amplification that integrates multi-step workflows using official Goose extensions. Closes Issue #4998 (#5050)
  Add hint for focus mode when used on file paths for `analyze` tool (#5069)
  fix: use dynamic port allocation for OAuth server (#5019)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants