Skip to content

Commit

Permalink
Types and phrasing
Browse files Browse the repository at this point in the history
Fix types and update message sent when possible error occurs
  • Loading branch information
smac89 committed Nov 23, 2023
1 parent 851d161 commit 579e07b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/functions/private.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace Functions.Private {
return refObj.ref.endsWith(refName);
});

let upstreamRef: unknown;
let upstreamRef: Awaited<ReturnType<typeof github.rest.git.createRef>>['data'];

if (matchingRef !== undefined) {
core.info(`Updating ref: ${refName} to: ${process.env.GITHUB_SHA}`);
Expand All @@ -122,7 +122,8 @@ namespace Functions.Private {
}

if (core.isDebug()) {
core.debug(`${JSON.stringify(upstreamRef)} now points to: "${process.env.GITHUB_SHA}"`);
core.debug(`response: ${JSON.stringify(upstreamRef)}`);
core.debug(`${upstreamRef?.ref} now points to: "${process.env.GITHUB_SHA}"`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function presentError(actionError: ActionError): void {
throw error;
}
core.info(actionError);
core.info('If you believe this to be an error, please submit a bug report');
core.info('If you believe this to be a false positive, please submit a bug report');
core.info(
`https://github.com/${
process.env.GITHUB_ACTION_REPOSITORY ?? 'Actions-R-Us/actions-tagger'
Expand Down

0 comments on commit 579e07b

Please sign in to comment.