`cml pr` needs more docs and/or diagrams
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- cli, documentation
Research direction
Start with the linked pull-request discussion and the cml pr --merge and cml pr flows described here. Clarify the branch and CI sequence, then document it with diagrams and explain which workaround is intended; the issue does not name a documentation file or test to run.
Written by the indexing model from the issue text.
Description
Coming from here
From discussion:
cml pr --mergethen:
- CI runs on the new branch created (let's call it
cml-branch-1), generating in turn a new branchcml-branch-2, etc.- once the branch
cml-branch-1is automatically merged into the original branch (typically a feature branch), CI will run again, which will again create a new branchcml-branch-1b. This branch will in turn generate a new look as in 1.
I don't follow (branch names are confusing). Do you mean "2. once cml-branch-2 is automatically merged into cml-branch-1 ..." instead? If so, the flow would be:
flowchart LR
M(main) -->|1. branch| F(feat) -->|2. branch| C1(cml-branch-1) -->|3. CI: cml pr --merge| C2(cml-branch-2)
C2 -->|4. CI: auto merge| C1 -->|5. CI: cml pr --merge| C1b(cml-branch-1b) -->|CI: infinite loop| C1
If so, this makes sense. And you ideally would like cml-branch-1b never to be created, right?
cml pr(without the auto-merge), then:
- CI will not run on the branch
cml-branch-1. So far so good!
I don't follow.
- Once I will manually merge
cml-branch-1back in the feature branch, if I don't manually add "[ci skip]" to the commit message, CI will run again on the feature branch, generatingcml-branch-1b.
flowchart LR
M(main) -->|1. branch| F(feat) -->|2. branch| C1(cml-branch-1) -->|3. CI: cml pr| C2(cml-branch-2)
C2 -->|"4. manual merge, entering [skip ci] into message"| C1
Anyway there are many work-arounds:
-
deterministic runs [not opening PRs because of] diff being empty.
-
feature request: make "[skip ci]" [appear in] all commit message of branches/PR created via
cml pr - feature request:
flowchart LR
M(main) -->|1. branch| F(feat) -->|2. branch| C1(cml-branch-1) -->|3. CI: cml pr --merge --skip-ci| C2("cml-branch-2 with commit containing [skip ci]")
C2 -->|"4. auto merge without any CI tests running"| C1
flowchart LR
M(main) -->|1. branch| F(feat) -->|2. branch| C1(cml-branch-1) -->|3. CI: cml pr --merge --skip-ci| C2(cml-branch-2)
C2 -->|"4. auto merge, inserting [skip ci] into the merge commit message"| C1
So basically the problem with this PR currently is "auto merge without any CI tests running" right? Work-around (3) is broken? So we should do work-around (4)?
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from iterative/cml.dev
-
Difficulty 5/5 Over a week Newbie friendliness 48/100
-
Link Checker ReportOpenlink-check-all
Difficulty 2/5 1-3 hours Newbie friendliness 40/100
-
Link Checker ReportOpenlink-check-all
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
crossref DVCLiveMay be free again @casperdcl claimed this 1390 days ago, and no pull request is open. OpenC: guide C: ref documentation p1-important
-
docs: driver token timeoutMay be free again @dacbd claimed this 1403 days ago, and no pull request is open. OpenC: guide C: ref documentation
All issues in iterative/cml.dev
Similar issues
-
clawsweeper:intake:bug clawsweeper:intake:needs-environment
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openclaw/openclaw#212827 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Use one constant for the 10,000-character input limitPossibly taken @NginxL claimed this today. Opengood first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aniru-dh21/snap-validate#51 ·
Maintainers usually reply within 1 day
-
dependencies effort: small good first issue priority: low
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
TMHSDigital/screencast-mcp#509 ·
Maintainers usually reply within 1 day
-
from-review tech-debt testing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
blamechris/chroxy#9520 ·
Maintainers usually reply within 1 day