Use CLI tools #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The loop should instruct that before using the remote APIs directly, it should use the local CLI tools, like gh (github cli), glab (gitlab cli), fj (forgejo cli).
I've picked up this issue and I'm reviewing it now.
Triage Assessment
What's clear: The document should establish that CLI tools (
gh,glab,fj) are the preferred way to interact with the platform, with raw API calls as a fallback only when the CLI doesn't support an operation.Scope: Update the Working Context section to establish this preference hierarchy.
No clarifying questions — the intent is clear. Proceeding to planning.
Plan
Goal: Establish CLI tools as the preferred interface for platform operations, with raw API calls as a fallback.
Approach: Update the Working Context section in
merge-request-flow.mdto define a clear preference hierarchy: CLI first, API second.Tasks:
Update the platform detection section to reframe CLI tools as the primary interface rather than just one option. After the platform list, add a paragraph stating: "Prefer CLI tools for all operations they support (creating issues, merge requests, comments, reviews, etc.). Use the platform's REST API directly only for operations the CLI does not support (e.g., adding labels, checking reactions, verifying permissions)."
Add
fjto the Forgejo/Gitea bullet — currently it says "Use the Forgejo/Gitea API or a compatible CLI". Change to: "UsefjorteaCLI. Terminology: 'merge requests'." to be consistent with the GitHub/GitLab bullets that name specific tools.Risks:
fj,tea) may be too prescriptive if the user has a different tool. Mitigate by saying "or a compatible CLI" as a fallback.Test strategy:
Implementation complete. Merge request created: #5
Waiting for review.