Repository navigation
Add simple defaults to pipeline creation - #1037
Merged
Merged
Conversation
Infer pipeline names and repository URLs from Git origin, and share repository-root starter setup with bk init. Offer reviewed project-aware templates without overwriting existing pipeline files. Keep explicit and noninteractive creation prompt-free, and resolve dry-run inputs without generating local files or creating remote resources. Amp-Thread-ID: T-31916b17-e269-4fb9-8102-3718bc47aaa5
Default guided creation to a concise completion line while preserving explicit format flags, configured preferences and scripted output. Keep repository-relative file status and starter prompts on stderr so structured stdout stays parseable. Amp-Thread-ID: https://ampcode.com/threads/T-31916b17-e269-4fb9-8102-3718bc47aaa5
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.
Description
Creating a pipeline from a repository should not require retyping details the CLI already knows or guessing how to provide its pipeline file.
Changes
bk init: find existing pipeline files at the repository root, including from subdirectories/worktrees, and never overwrite them. When needed, offer a project-aware recommendation, reviewed Buildkite example templates, or an empty starter, with runtime prerequisites.For a repository with an existing pipeline file:
Generated starters still need review, commit and push before building, and suitable agents with the required runtimes. This does not change authentication defaults or add preflight, agent readiness checks, or first-build execution.
Testing
env -u BUILDKITE_API_TOKEN mise run testmise run format