Skip to content

Event-driven stats refresh via repository_dispatch from watched repos #8

Description

@reece

Goal

Add lightweight GitHub Actions to each watched biocommons repo that fire a repository_dispatch event to github-stats on relevant activity, enabling near-real-time updates without waiting for the hourly schedule.

Trigger events (per watched repo)

  • issues (opened, closed, reopened)
  • pull_request (opened, closed, merged)
  • push to default branch

Implementation

Each watched repo gets a small workflow (~15 lines) calling the github-stats dispatch endpoint. Can be implemented as a reusable workflow in biocommons/.github that each repo calls.

Watched repos

anyvar, bioutils, eutils, hgvs, seqrepo, seqrepo-rest-service, uta

Acceptance criteria

  • Closing an issue in hgvs triggers a collection run in github-stats within 2 minutes
  • Burst activity (5+ events quickly) results in one collection run via concurrency cancel-in-progress

Notes

Depends on: biocommons/github-stats#2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions