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

Suppress Errors Optionally #33

Closed
wants to merge 1 commit into from

Conversation

hammerdr
Copy link

@hammerdr hammerdr commented Sep 11, 2020

  • Lets some errors bubble up so we can handle them if needed

cc @pturley

Resolves #32

* Lets some errors bubble up so we can handle them if needed
Comment on lines -98 to -103
try {
await client.issues.addLabels(labelData);
} catch (error) {
core.setFailed(error.message);
process.exit(1);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

any particular reason on removing this try...catch block?

Copy link

Choose a reason for hiding this comment

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

the thought was that these errors are already caught in main, and since we added more specific error handling in there it was nice to have the errors bubble up and be handled in main.

@maddhruv
Copy link
Contributor

@Anks @loftykhanna can probably merge this PR

@rheaditi
Copy link
Contributor

@maddhruv @Anks @loftykhanna

There probably isn't a way for us to test these PRs anymore since we do not use Pivotal anymore.
We should definitely test since some of the comments used to break due to flaky markdown syntax.

Suggestions?

@rheaditi
Copy link
Contributor

@hammerdr Thanks for raising this PR! 👋🏽

WRT the comment above, we would really appreciate if you could post a few screenshots after enabling/disabling this option on one of your test repos and showing the description maybe?

Feel free to blur out any confidential information from your company.

@hammerdr
Copy link
Author

example:
image

@hammerdr hammerdr closed this Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add flag to suppress failures
4 participants