Skip to content

Commit 9e0710c

Browse files
authored
Merge pull request #4 from tsinis/v0.1.2
fix: fixed fallback-to-ask parameter input [ship]
2 parents d35b6ad + f5cba6e commit 9e0710c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

dist/index.js

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export async function run() {
1616
const caseSensitive = Boolean(core.getInput("case-sensitive"));
1717
const addLabel = Boolean(core.getInput("add-label"));
1818
const requireBrackets = Boolean(core.getInput("require-brackets"));
19+
const fallbackToAsk = Boolean(core.getInput("fallback-to-ask"));
1920
const strategy = await validate({
2021
token,
2122
context: github.context,
@@ -26,9 +27,13 @@ export async function run() {
2627
caseSensitive: caseSensitive || undefined,
2728
addLabel: addLabel || undefined,
2829
requireBrackets: requireBrackets || undefined,
30+
fallbackToAsk: fallbackToAsk || undefined,
2931
});
3032
if (strategy !== Strategy.Ship && strategy !== Strategy.Show) {
31-
return console.log("This is not a Ship or Show PR! Skipping approval.");
33+
return console.log(
34+
"This is not a Ship or Show PR! Skipping approval.",
35+
strategy,
36+
);
3237
}
3338

3439
await approve({

0 commit comments

Comments
 (0)