This repository was archived by the owner on Apr 20, 2026. It is now read-only.
Validate field lengths in checks annotations + actions#109
Merged
Conversation
Automatically validates the maximum length of properties. GitHub does not validate these properly on their side (at least in GHE 3.2) and returns 5xx HTTP responses instead. To avoid that, let's validate the data in this client library. The values are taken from the official GitHub documentation. Other fields might also have restrictions that are undocumented. We might add validation for these later.
Codecov Report
@@ Coverage Diff @@
## master #109 +/- ##
============================================
+ Coverage 72.82% 73.06% +0.24%
- Complexity 237 245 +8
============================================
Files 37 39 +2
Lines 872 880 +8
Branches 35 39 +4
============================================
+ Hits 635 643 +8
Misses 212 212
Partials 25 25
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automatically validates the maximum length of properties.
GitHub does not validate these properly on their side (at least in GHE 3.2)
and returns 5xx HTTP responses instead. To avoid that, let's validate the data
in this client library.
The values are taken from the official GitHub documentation.
Other fields might also have restrictions that are undocumented.
We might add validation for these later.