Skip to content

Commit

Permalink
Try to get the command doc comment bot working (#1704)
Browse files Browse the repository at this point in the history
* Try to get the command doc comment bot working

Trying to use the `pull_request_target` triggeer instead, as that has
apparently different permissions according to:
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request_target

* Messing with the docs DO NOT MERGE

* Remove the `opened` filter

* Update ansi.md

* Also protect the categories
  • Loading branch information
sholderbach authored Dec 22, 2024
1 parent a27af98 commit b8d3cd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/command-block.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Comment on manual command changes
on:
pull_request:
pull_request_target:
paths:
- 'commands/docs/**'
- 'commands/categories/**'

jobs:
comment:
Expand Down
2 changes: 1 addition & 1 deletion commands/docs/ansi.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ Operating system commands:
| -------------------------------------------------- | ------------------------------------------------------------------ | -------- |
| [`ansi gradient`](/commands/docs/ansi_gradient.md) | Add a color gradient (using ANSI color codes) to the given string. | built-in |
| [`ansi link`](/commands/docs/ansi_link.md) | Add a link (using OSC 8 escape sequence) to the given string. | built-in |
| [`ansi strip`](/commands/docs/ansi_strip.md) | Strip ANSI escape sequences from a string. | built-in |
| [`ansi strip`](/commands/docs/ansi_strip.md) | Strip ANSI escape sequences from a string. | built-in |

0 comments on commit b8d3cd8

Please sign in to comment.