Skip to content

Automate Star History updates - #72

Open
tianyilt wants to merge 1 commit into
mainfrom
agent/automate-star-history
Open

Automate Star History updates#72
tianyilt wants to merge 1 commit into
mainfrom
agent/automate-star-history

Conversation

@tianyilt

Copy link
Copy Markdown
Collaborator

What changed

  • Replace the hosted Star History image URL in README.md with managed star-history markers.
  • Add a daily GitHub Actions workflow that renders light/dark Star History assets into the repository.
  • Keep a manual workflow_dispatch trigger for the first run and ad-hoc refreshes.
  • Pin narayann7/star-history-action to the v1.0.5 commit.

Why

The current README chart depends on a hosted api.star-history.com URL and an encrypted token. Following GitHub's stargazers API restriction, that hosted chart can fail to render. Generating and committing the chart inside this repository avoids the brittle external image request and does not expose a personal access token.

Impact

After merge, the workflow runs daily at 09:00 Asia/Singapore. The first scheduled or manually dispatched run will add the generated SVG/PNG assets and populate the README markers. Later runs commit only when the rendered chart changes.

Validation

  • Compared main...agent/automate-star-history: one commit, two intended files, no unrelated changes.
  • Inspected the generated workflow and README marker placement.
  • The workflow itself cannot be exercised until it exists on the default branch.

Repository Actions must permit GITHUB_TOKEN write access; protected-branch policy may also need to allow the Actions bot to commit generated assets.

@tianyilt
tianyilt marked this pull request as ready for review August 16, 2026 09:12
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.

1 participant