Skip to content

Commit

Permalink
Fix gh CLI placeholder syntax in example documents
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 8, 2024
1 parent 825dc5e commit 27472d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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
```

Expand Down

0 comments on commit 27472d6

Please sign in to comment.