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

Making Action fail when diff fails to post #7

Merged
merged 6 commits into from
Mar 10, 2021
Merged

Conversation

karoun
Copy link
Member

@karoun karoun commented Mar 10, 2021

What changed?

  • See title; not as good as writing the diff to a Gist or some such, but at least the Action will alert the user when it fails
  • Tweaked README and package.json for clarity

Test plan

👀

@karoun karoun requested a review from cooperbenson-qz March 10, 2021 01:32
@@ -242,4 +242,4 @@ async function run(): Promise<void> {
}
}

run();
run().catch(e => core.setFailed(e.message));
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice if we caught the "Body too long" error specifically and posted a comment about it since the user can't actually do much about their diff being long

Copy link
Member Author

Choose a reason for hiding this comment

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

#8

@karoun karoun merged commit 2d094d4 into master Mar 10, 2021
@karoun karoun deleted the karoun/fail-loud branch March 10, 2021 01:47
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.

2 participants