Skip to content

Fix string validation errors#1740

Merged
kfcampbell merged 4 commits intooctokit:mainfrom
hennevogel:bugfix/validation-strings
Apr 23, 2025
Merged

Fix string validation errors#1740
kfcampbell merged 4 commits intooctokit:mainfrom
hennevogel:bugfix/validation-strings

Conversation

@hennevogel
Copy link
Copy Markdown
Contributor

Just came across this in the wild

openSUSE/open-build-service#17535

Apparently sometimes the validation json is formated like that.


Before the change?

  • Octokit::Error.response_error_summary crashes

After the change?

  • Octokit::Error.response_error_summary succeeds

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

  • Yes
  • No

Just came across this in the wild

openSUSE/open-build-service#17535

Apparently sometimes the validation json is formated like that.
@github-actions
Copy link
Copy Markdown

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@hennevogel
Copy link
Copy Markdown
Contributor Author

Anything I can do to push this forward? 🤠

@kfcampbell kfcampbell moved this from 🆕 Triage to 📆 Monthly in 🧰 Octokit Active Apr 14, 2025
Copy link
Copy Markdown
Contributor

@kfcampbell kfcampbell left a comment

Choose a reason for hiding this comment

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

I've added a couple of additional test cases here and fixed the Rubocop error. I'll get this merged and released shortly.

@kfcampbell kfcampbell merged commit 4c55c3c into octokit:main Apr 23, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from 📆 Monthly to ✅ Done in 🧰 Octokit Active Apr 23, 2025
@hennevogel
Copy link
Copy Markdown
Contributor Author

Cheers Keegan 💐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants