Skip to content

feat: add GitHub URL validation and improve backend error handling#28

Open
A69SHUBHAM wants to merge 2 commits into
chaoss:mainfrom
A69SHUBHAM:feature/input-validation
Open

feat: add GitHub URL validation and improve backend error handling#28
A69SHUBHAM wants to merge 2 commits into
chaoss:mainfrom
A69SHUBHAM:feature/input-validation

Conversation

@A69SHUBHAM
Copy link
Copy Markdown

@A69SHUBHAM A69SHUBHAM commented Apr 29, 2026

Summary

This PR adds GitHub URL input validation and improves backend error handling for more reliable SDG analysis.

Changes

  • Validate GitHub URL format before API call
  • Prevent empty submissions
  • Add user-friendly error messages in UI
  • Improve backend error handling for invalid inputs
  • Handle external API failures and timeout scenarios

Why this is needed

Currently, invalid inputs or API failures can lead to unclear behavior and unnecessary API calls. This improves reliability and user experience.

Testing

  • Valid GitHub URLs → works correctly
  • Invalid URLs → error shown
  • Empty input → blocked
  • API failure simulation → handled gracefully

Closes #27

Signed-off-by: A69SHUBHAM <spacekrai0@gmail.com>
@A69SHUBHAM A69SHUBHAM force-pushed the feature/input-validation branch from ccd251f to f03a77c Compare April 29, 2026 08:07
…API failures

Signed-off-by: A69SHUBHAM <spacekrai0@gmail.com>
@A69SHUBHAM A69SHUBHAM force-pushed the feature/input-validation branch from edc72a6 to 1988b58 Compare April 29, 2026 10:42
@A69SHUBHAM A69SHUBHAM changed the title feat: add GitHub URL validation and prevent invalid submissions feat: add GitHub URL validation and improve backend error handling Apr 29, 2026
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.

Missing validation for GitHub repository input leads to invalid API calls

1 participant