From fcebeabc0bc301c6152098b897be37ac38018498 Mon Sep 17 00:00:00 2001 From: sholderbach Date: Sun, 22 Dec 2024 23:13:28 +0100 Subject: [PATCH 1/5] 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 --- .github/workflows/command-block.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/command-block.yml b/.github/workflows/command-block.yml index 260c2a96803..fb322ec444a 100644 --- a/.github/workflows/command-block.yml +++ b/.github/workflows/command-block.yml @@ -1,6 +1,8 @@ name: Comment on manual command changes on: - pull_request: + pull_request_target: + types: + - opened paths: - 'commands/docs/**' From 06d05ad3056d56feb2f4cbd73f03de97f3ea030c Mon Sep 17 00:00:00 2001 From: sholderbach Date: Sun, 22 Dec 2024 23:17:47 +0100 Subject: [PATCH 2/5] Messing with the docs DO NOT MERGE --- commands/docs/ansi.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/docs/ansi.md b/commands/docs/ansi.md index 43c0fdc8640..b759e4e61e4 100644 --- a/commands/docs/ansi.md +++ b/commands/docs/ansi.md @@ -12,6 +12,7 @@ usage: | # `ansi` for [platform](/commands/categories/platform.md) +JUST MESSING
Output ANSI codes to change color and style of text.
## Signature @@ -146,4 +147,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 | \ No newline at end of file +| [`ansi strip`](/commands/docs/ansi_strip.md) | Strip ANSI escape sequences from a string. | built-in | From c7da16eb00a689ad389c108260c7a0be1c4befbc Mon Sep 17 00:00:00 2001 From: sholderbach Date: Sun, 22 Dec 2024 23:20:06 +0100 Subject: [PATCH 3/5] Remove the `opened` filter --- .github/workflows/command-block.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/command-block.yml b/.github/workflows/command-block.yml index fb322ec444a..247b9eab23c 100644 --- a/.github/workflows/command-block.yml +++ b/.github/workflows/command-block.yml @@ -1,8 +1,6 @@ name: Comment on manual command changes on: pull_request_target: - types: - - opened paths: - 'commands/docs/**' From 870a75a1fa73048d5b9a6f213a2ad45fb20defbc Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Sun, 22 Dec 2024 23:24:12 +0100 Subject: [PATCH 4/5] Update ansi.md --- commands/docs/ansi.md | 1 - 1 file changed, 1 deletion(-) diff --git a/commands/docs/ansi.md b/commands/docs/ansi.md index b759e4e61e4..723dff97d55 100644 --- a/commands/docs/ansi.md +++ b/commands/docs/ansi.md @@ -12,7 +12,6 @@ usage: | # `ansi` for [platform](/commands/categories/platform.md) -JUST MESSING
Output ANSI codes to change color and style of text.
## Signature From 70ad6de3137c6015b18c90a9ddd02e8683ee9486 Mon Sep 17 00:00:00 2001 From: sholderbach Date: Sun, 22 Dec 2024 23:31:27 +0100 Subject: [PATCH 5/5] Also protect the categories --- .github/workflows/command-block.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/command-block.yml b/.github/workflows/command-block.yml index 247b9eab23c..7aa910fd262 100644 --- a/.github/workflows/command-block.yml +++ b/.github/workflows/command-block.yml @@ -3,6 +3,7 @@ on: pull_request_target: paths: - 'commands/docs/**' + - 'commands/categories/**' jobs: comment: