Skip to content

Commit 3b0078c

Browse files
justin808claude
andcommitted
Add /run-skipped-tests as alias for /run-skipped-ci command
This change adds /run-skipped-tests as a shorter, more intuitive alias for the /run-skipped-ci GitHub PR comment command. Changes: - Updated run-skipped-ci.yml to accept both /run-skipped-ci and /run-skipped-tests - Updated detect-invalid-ci-commands.yml to recognize /run-skipped-tests as valid - Updated help message to document the alias This fixes the issue where /run-skipped-tests would not trigger any response, when users expected it to either work or show help. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 311d3a1 commit 3b0078c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/detect-invalid-ci-commands.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
contains(github.event.comment.body, '/help')
1919
) &&
2020
!contains(github.event.comment.body, '/run-skipped-ci') &&
21+
!contains(github.event.comment.body, '/run-skipped-tests') &&
2122
!contains(github.event.comment.body, '/stop-run-skipped-ci')
2223
runs-on: ubuntu-22.04
2324
permissions:
@@ -42,7 +43,7 @@ jobs:
4243
}
4344
4445
// Valid commands
45-
const validCommands = ['/run-skipped-ci', '/stop-run-skipped-ci'];
46+
const validCommands = ['/run-skipped-ci', '/run-skipped-tests', '/stop-run-skipped-ci'];
4647
4748
// Check if any command is invalid
4849
const invalidCommands = matches
@@ -78,7 +79,7 @@ jobs:
7879
7980
## Available GitHub Comment Commands
8081
81-
### 1. \\\`/run-skipped-ci\\\` - Enable Full CI Mode
82+
### 1. \\\`/run-skipped-ci\\\` (or \\\`/run-skipped-tests\\\`) - Enable Full CI Mode
8283
Triggers all CI workflows that were skipped due to unchanged code.
8384
8485
**What it does:**
@@ -93,6 +94,8 @@ jobs:
9394
**Example:**
9495
\\\`\\\`\\\`
9596
/run-skipped-ci
97+
# or use the shorter alias:
98+
/run-skipped-tests
9699
\\\`\\\`\\\`
97100
98101
---

.github/workflows/run-skipped-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
github.event.issue.pull_request &&
1717
(
1818
startsWith(github.event.comment.body, '/run-skipped-ci') ||
19-
contains(github.event.comment.body, '\n/run-skipped-ci')
19+
contains(github.event.comment.body, '\n/run-skipped-ci') ||
20+
startsWith(github.event.comment.body, '/run-skipped-tests') ||
21+
contains(github.event.comment.body, '\n/run-skipped-tests')
2022
)
2123
runs-on: ubuntu-22.04
2224
permissions:

0 commit comments

Comments
 (0)