Skip to content
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

Merged
merged 4 commits into from
Apr 10, 2024
Merged

Conversation

rcrowe
Copy link
Contributor

@rcrowe rcrowe commented Apr 9, 2024

Allow the report to be generated & accessed, but no PR comment raised; this allows more complex workflows to use this action for rendering only.

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';
Copy link
Contributor

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');
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 👍🏻

@milesj
Copy link
Contributor

milesj commented Apr 9, 2024

@rcrowe Looks good, just a few Qs.

@milesj milesj self-assigned this Apr 9, 2024
@rcrowe
Copy link
Contributor Author

rcrowe commented Apr 9, 2024

Thanks for the comments, will get them sorted tomorrow 🧹

@rcrowe rcrowe requested a review from milesj April 10, 2024 10:27
@milesj
Copy link
Contributor

milesj commented Apr 10, 2024

awesome stuff

@milesj milesj merged commit 428c20b into moonrepo:master Apr 10, 2024
1 check passed
@rcrowe rcrowe deleted the report-output branch April 10, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants