Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion build/command/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified bun.lockb
Binary file not shown.
3 changes: 3 additions & 0 deletions command/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ inputs:
description: GitHub access token to comment on PRs
required: false
default: ${{ github.token }}
command-override:
description: Command to run (if not provided, taken from comment)
required: false
9 changes: 8 additions & 1 deletion src/actions/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export function commandInput() {
return {
reaction: '+1' as Reaction['content'],
githubToken: getInput('github-token'),
commandOverride: getInput('command-override'),
};
}

Expand All @@ -31,7 +32,13 @@ export async function commandAction(input = commandInput()) {
return;
}

const command = parseCommand(comment);
let commandSource = comment;
if (input.commandOverride) {
info(`Overriding command with: ${input.commandOverride}`);
commandSource = input.commandOverride;
}

const command = parseCommand(commandSource);
if (!command) {
info("Comment didn't contain a valid expo/eas command");
return;
Expand Down