-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set report output & skip comment #13
Conversation
index.ts
Outdated
@@ -89,6 +89,7 @@ async function run() { | |||
try { | |||
const accessToken = core.getInput('access-token'); | |||
const limit = Number(core.getInput('limit')); | |||
const skipComment = core.getInput('skip-comment') === 'true'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use getBooleanInput
I believe.
index.ts
Outdated
|
||
if (skipComment) { | ||
core.debug('Skipping comment creation'); | ||
core.setOutput('comment-created', 'false'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe call saveSummary
here also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense 👍🏻
@rcrowe Looks good, just a few Qs. |
Thanks for the comments, will get them sorted tomorrow 🧹 |
https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputsinput_iddefault > A string representing the default value
Address PR comments: - Call saveSummary - Use getBooleanInput
awesome stuff |
Allow the report to be generated & accessed, but no PR comment raised; this allows more complex workflows to use this action for rendering only.