Skip to content

Add weekly check for new git feature versions - #146

Closed
phil-janeapp wants to merge 1 commit into
rails:mainfrom
phil-janeapp:automate-git-feature-version
Closed

phil-janeapp wants to merge 1 commit into
rails:mainfrom
phil-janeapp:automate-git-feature-version

Conversation

@phil-janeapp

Copy link
Copy Markdown

Depends on #145, which pins the git feature version to avoid GitHub API rate limits.

This workflow keeps the pinned version current. It runs weekly (and on manual dispatch):

  1. It finds the latest stable git tag with git ls-remote, so it makes no GitHub API calls.
  2. It stops if images/ruby/.devcontainer/devcontainer.json already has that version.
  3. Otherwise it changes the version, force-pushes the branch automated/git-version, and opens a PR labeled automation. If that PR is already open, it updates it.

It follows check-ruby-versions.yaml: it checks out with GITHUB_TOKEN and uses RUBY_AUTOMATION_PAT for gh, so CI runs on the PR. It does not enable auto-merge, because git is compiled from source and the PR CI does not build the image. It does not create tags. The job runs only in rails/devcontainer.

Testing

  • actionlint and shellcheck pass.
  • I ran the script in a temporary clone with gh and git push stubbed, for these cases: the version is already current, latest to a new version, an open PR exists, and the version key is not found (the job fails with an error).

🤖 Generated with Claude Code, approved by a human

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafaelfranca

Copy link
Copy Markdown
Member

Thank you for the pull request but I don't want to release a new version of the image and feature every time a new version of git is released.

@phil-janeapp

Copy link
Copy Markdown
Author

@rafaelfranca Understood, and I appreciate that stance. I had hoped for a simple solution where the lookup could be cached but it doesn't appear that one exists. Thanks for the consideration!

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.

2 participants