Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/gogsPublic

[F] Standardize HTTP status codes#7851

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Boc-chi-no wants to merge2 commits intogogs:main
base:main
Choose a base branch
Loading
fromBoc-chi-no:main

Conversation

Boc-chi-no
Copy link
Contributor

Standardize HTTP status codes

  1. Improved Flexibility: Allows for dynamic status code determination based on specific error contexts.
  2. Enhanced Accuracy: Prevents the misuse of 200 OK in cases where an error status is more appropriate.

Link to the issue:#7842

Checklist

  • I agree to follow theCode of Conduct by submitting this pull request.
  • I have read and acknowledge theContributing guide.
  • I have added test cases to cover the new code or have provided the test plan.

Test plan

  1. Clone repo and get tools
  2. Test the project using go test ./...
  3. Build the project using go build -o gogs
  4. Run server, and check Admin Dashboard page

Trust-genie and unknwon reacted with thumbs up emoji
@codecovCodecov
Copy link

codecovbot commentedNov 30, 2024
edited
Loading

Codecov Report

Attention: Patch coverage is2.23881% with131 lines in your changes missing coverage. Please review.

Project coverage is 10.78%. Comparing base(3650b32) to head(9b7ae83).
Report is 66 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@##             main    #7851      +/-   ##==========================================- Coverage   15.28%   10.78%   -4.51%==========================================  Files         106      209     +103       Lines       13864    28738   +14874     ==========================================+ Hits         2119     3099     +980- Misses      11465    25348   +13883- Partials      280      291      +11

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

@unknwonunknwonAwaiting requested review from unknwonunknwon is a code owner

At least 0 approving reviews are required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@Boc-chi-no

[8]ページ先頭

©2009-2025 Movatter.jp