Answer product-owner round 1: 0 🔴, 3 🟡 (1 misread); say which plans finish at once, keep a repo with its own merge method from merging, and file item 457
This commit is contained in:
@@ -49,8 +49,9 @@ merge merges the pull request in its turn: the chunks of one project on this
|
||||
fails at once instead of waiting: do-epic parks the chunk until the approval comes.
|
||||
Where the project's config sets `merge = "human"` (`project-config --help`), it does
|
||||
steps 1 to 4, marks the pull request ready in place of step 5, and prints that the pull
|
||||
request awaits a person's merge, exit 0. The plan items step 2 finished are commits on
|
||||
the branch, so they land with that merge. It reads no approval then, whatever
|
||||
request awaits a person's merge, exit 0. A plan or changelog in the checkout that step 2
|
||||
finished is a commit on the branch, so it lands with that merge; one in Jira, or in
|
||||
the config's folder, is finished at once. It reads no approval then, whatever
|
||||
`wait-for-approval` says. Once a person merged it, run clean.
|
||||
It stops, without merging, and says what to do before running it again:
|
||||
- on a merge conflict in step 1, naming the conflicted files, with the merge in progress;
|
||||
@@ -362,7 +363,7 @@ class Merging:
|
||||
base: str
|
||||
required: set[str]
|
||||
waits: bool
|
||||
by_human: bool = False
|
||||
by_human: bool
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
|
||||
@@ -18,7 +18,7 @@ DRIVER = DO_EPIC
|
||||
|
||||
|
||||
def shipping(config: ProjectConfig) -> str:
|
||||
"""How a chunk in the repo that config names ships its change. An epic's issue isn't an item of the repo's plan, so `chunk-pr merge --finish`, which adds a finished item's changelog bullet, doesn't apply: the worker writes the bullet itself, where the repo publishes something others consume. Where the repo's config leaves the merge to a person, the worker is told that its run ends with the pull request ready (docs/decisions.md → `do-epic: drives one Jira epic …`, "Releases")."""
|
||||
"""How a chunk in the repo that config names ships its change. An epic's issue isn't an item of the repo's plan, so `chunk-pr merge --finish`, which adds a finished item's changelog bullet, doesn't apply: the worker writes the bullet itself, where the repo publishes something others consume. (docs/decisions.md → `do-epic: drives one Jira epic …`, "Releases"). Where the repo's config leaves the merge to a person, the worker ends its run on `chunk-pr merge`'s word, since do-epic parks the chunk until that merge ("Long gates")."""
|
||||
opening = "The issue isn't an item of the repo's plan, so run `chunk-pr merge` without `--finish`."
|
||||
if config.merge == "human":
|
||||
opening += " The repo's team merges its pull requests itself, so `chunk-pr merge` leaves the pull request ready for a person to merge: end your run when it says so."
|
||||
@@ -54,8 +54,8 @@ NAMES = prompts.RecordNames(
|
||||
)
|
||||
WORKER = prompts.worker_prompts(DRIVER, fresh, "", NAMES)
|
||||
|
||||
# What a worker does with a reviewer's feedback, as the decision asks (docs/decisions.md → `do-epic: drives one Jira epic …`, "Long gates").
|
||||
FEEDBACK = 'Where a reviewer left feedback, fix what is reasonable and push the fix, answer each other comment in its thread, and change the setup so our review would have caught the finding (~/.claude/CLAUDE.md → "Working loop", "Change the setup for each finding an outside reviewer raises on a PR, deterministic tools first"). Then merge the pull request as before. Where the pull request is merged, run `chunk-pr clean` in its worktree and finish the chunk.'
|
||||
# What a worker that was parked does: with a reviewer's feedback, and with a pull request a person merged, as the decision asks (docs/decisions.md → `do-epic: drives one Jira epic …`, "Long gates").
|
||||
FEEDBACK = 'Where a reviewer left feedback, fix what is reasonable and push the fix, answer each other comment in its thread, and change the setup so our review would have caught the finding (~/.claude/CLAUDE.md → "Working loop", "Change the setup for each finding an outside reviewer raises on a PR, deterministic tools first"). Then merge the pull request as before. Where the pull request is merged already, run `chunk-pr clean` in its worktree instead, and finish the chunk; where it was closed without a merge, say so and end your run.'
|
||||
|
||||
|
||||
def unparked(news: str) -> WorkerPrompts:
|
||||
|
||||
Reference in New Issue
Block a user