We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3af0b2 commit 6739872Copy full SHA for 6739872
dist/index.js
@@ -384,15 +384,18 @@ async function run() {
384
try {
385
const inputs = {
386
token: core.getInput("token"),
387
+ sha: core.getInput("sha"),
388
body: core.getInput("body"),
389
path: core.getInput("path"),
390
position: core.getInput("position")
391
};
-
392
core.debug(`Inputs: ${inspect(inputs)}`);
393
394
+ const sha = inputs.sha ? inputs.sha : process.env.GITHUB_SHA;
395
+ core.debug(`SHA: ${sha}`);
396
+
397
await request(
- `POST /repos/${process.env.GITHUB_REPOSITORY}/commits/${process.env.GITHUB_SHA}/comments`,
398
+ `POST /repos/${process.env.GITHUB_REPOSITORY}/commits/${sha}/comments`,
399
{
400
headers: {
401
authorization: `token ${inputs.token}`
0 commit comments