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

List commits #11

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

List commits #11

wants to merge 3 commits into from

Conversation

frostyfan109
Copy link
Contributor

No description provided.

@frostyfan109 frostyfan109 requested a review from waTeim July 11, 2024 20:03
@frostyfan109 frostyfan109 changed the base branch from master to develop August 2, 2024 14:33
branch := r.URL.Query().Get("branch")

if repoName == "" || owner == "" || branch == "" {
http.Error(w, "Repo name, owner, and branch must be provided", http.StatusBadRequest)

Choose a reason for hiding this comment

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

For the sake of consistency, can you change this to errorapi.HandleError(w, errorapi.ErrBadRequest, "Repo name, owner, and branch must be provided")

Copy link

@hina-shah hina-shah left a comment

Choose a reason for hiding this comment

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

Just a minor edit to use errorapi instead http.Error.

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