Skip to content

Quote the gh api PUT URL in the ruleset caveat example - #130

Merged
ptr727 merged 1 commit into
developfrom
quote-gh-api-put-example
Jun 8, 2026
Merged

Quote the gh api PUT URL in the ruleset caveat example#130
ptr727 merged 1 commit into
developfrom
quote-gh-api-put-example

Conversation

@ptr727

@ptr727 ptr727 commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Shell-correctness nit from Copilot on the promotion PR: the inline gh api -X PUT repos/<owner>/<repo>/rulesets/<id> example had an unquoted URL, so a shell would interpret <owner>/<repo>/<id> as redirections. Quoted it to match the other gh api "repos/<owner>/<repo>/..." examples in the same section.

The placeholder URL had unquoted <owner>/<repo>/<id>, which a shell would parse
as redirections; quote it to match the other gh api examples in this section.
Copilot AI review requested due to automatic review settings June 8, 2026 16:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a shell-correctness issue in the documentation by quoting the gh api -X PUT URL in the ruleset caveat example, preventing shells from misinterpreting <owner>, <repo>, and <id> as redirection tokens.

Changes:

  • Quote the repos/<owner>/<repo>/rulesets/<id> argument in the gh api -X PUT example to make the command shell-safe.
  • Align the PUT example style with the other quoted gh api "repos/<owner>/<repo>/..." examples in the same section.

@ptr727
ptr727 merged commit f96845e into develop Jun 8, 2026
8 checks passed
@ptr727
ptr727 deleted the quote-gh-api-put-example branch July 7, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants