Skip to content

Commit d3e5915

Browse files
committed
add comment input, fix #7
1 parent a10e2e1 commit d3e5915

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ inputs:
1414
commit-message:
1515
description: 'The commit message to use when fixing a commit.'
1616
required: false
17+
commment:
18+
description: 'Add a custom comment to the PR when fixing a commit.'
19+
required: false
1720
outputs:
1821
autofix_started:
1922
description: |

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ async function run() {
7979
version: 1,
8080
changes: fileChanges,
8181
failFast: core.getInput("fail-fast") === "true",
82+
comment: core.getInput("comment") || undefined,
8283
commitMessage: core.getInput("commit-message") || undefined,
8384
}));
8485
await client.uploadArtifact("autofix.ci", [filename], ".", {

0 commit comments

Comments
 (0)