Repository navigation
_setup: build only versions added by a package/<pkg> PR - #3794
Merged
Merged
Conversation
Versions already merged to main but not yet released stay pending in docs/packages/<pkg>.yaml, so the commit that links a release re-triggered a build of all of them. On a PR from a package/ branch, skip versions the base branch already declares. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WLrKmVNbTh8QfP71a78k8b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Versions already merged to
mainbut not yet released stay pending indocs/packages/<pkg>.yaml. The commit on apackage/<pkg>branch that links a release therefore re-triggered a build of all of them.On a pull request from a
package/*branch (and no version glob),_setup.ymlnow fetches the base branch's copy ofdocs/packages/<pkg>.yamland passes it toci_scripts/pending_versions.py --base-file, which skips versions the base already declares. Only versions the PR adds are built.main, PRs from other branches and manual dispatches with a glob behave as before.docs/workflows.mddocuments the rule.A
package/<pkg>PR that only changes the build workflow and adds no versions will build nothing.Testing
Ran
pending_versions.pylocally with a base file, a missing base file and no base file; results were as expected. The workflow itself has not been run.Generated by Claude Code