From 27472d69e23306bb17d5dfc27d741ec97ee41236 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Mon, 8 Jul 2024 13:58:52 +0900 Subject: [PATCH] Fix gh CLI placeholder syntax in example documents --- docs/examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 27bca0e2..41d6791a 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -75,7 +75,7 @@ If you use GITHUB_TOKEN as above, make sure two options are enabled How to enable with gh CLI ```bash -gh repo edit OWNER/REPO --enable-auto-merge +gh repo edit --enable-auto-merge ``` `https://github.com/OWNER/REPO/settings/actions` => `Allow GitHub Actions to create and approve pull requests` @@ -87,7 +87,7 @@ gh api \ --method PUT \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - /repos/OWNER/REPO/actions/permissions/workflow \ + '/repos/{owner}/{repo}/actions/permissions/workflow' \ -F can_approve_pull_request_reviews=true ```