docs: use the gh placeholders {owner} and {repo} in each gh api command

Open Beginner friendly
#84 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
86/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
github, shell

Research direction

Start with the Ruleset and Merge settings sections in docs/development.md, especially the gh api commands cited in the issue. Compare their repository paths and use the form that GitHub CLI fills from the current clone; leave template placeholders in URLs and other text intact. Done when every gh api command in that file uses the CLI placeholders and the documentation distinguishes them from template placeholders.

Written by the indexing model from the issue text.

Description

type/documentation
Kind

Unclear

Location

Ruleset in docs/development.md (lines 114 and 120 to 121 at a0dad0f), and Merge settings in the same file

Version

a0dad0f

Problem

The gh api commands in docs/development.md use two forms for the repository:

  • Ruleset uses repos/{{OWNER}}/{{REPO}}. These are template placeholders that step 2 of the setup steps in README.md replaces. Until then, the commands do not run, also in a clone of this template repo.
  • Merge settings (PR #81) uses 'repos/{owner}/{repo}'. GitHub CLI fills these in from the current clone, so the commands run without a substitution.

So the same file gives two forms for one thing, and the Ruleset commands cannot be copied and run in this repo.

Other places use {{OWNER}}/{{REPO}} for a URL, not for a gh command: the clone URL in First setup in docs/development.md, and the placeholder of a field in .github/ISSUE_TEMPLATE/ci.yml. They still need the template substitution.

Proposal

Use 'repos/{owner}/{repo}' in each gh api command, also in Ruleset. Keep {{OWNER}} and {{REPO}} for URLs and other text that gh does not read.

Dominant language
Shell
Stars
1
Forks
0
Avg merge
6h 59m
Merged PRs (30d)
26

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from c-w-z/commit-decision-record

All issues in c-w-z/commit-decision-record

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.