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

Clarify path param naming#32969

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

Merged
wxiaoguang merged 3 commits intogo-gitea:mainfromwxiaoguang:fix-path-param
Dec 24, 2024
Merged

Conversation

@wxiaoguang
Copy link
Contributor

In history (from some legacy frameworks), both:name andname are supported as path path name,:name is an alias toname.

To make code consistent, now we should only usename but not:name.

Also added panic check in related functions to make sure the name won't be abused in case some downstreams still use them.

@GiteaBotGiteaBot added the lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelDec 24, 2024
@github-actionsgithub-actionsbot added modifies/apiThis PR adds API routes or modifies them modifies/goPull requests that update Go code labelsDec 24, 2024
@GiteaBotGiteaBot added lgtm/need 1This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelsDec 24, 2024
@GiteaBotGiteaBot added lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1This PR needs approval from one additional maintainer to be merged. labelsDec 24, 2024
@wxiaoguangwxiaoguangenabled auto-merge (squash)December 24, 2024 13:22
@wxiaoguangwxiaoguang merged commit2a828e2 intogo-gitea:mainDec 24, 2024
26 checks passed
@GiteaBotGiteaBot added this to the1.24.0 milestoneDec 24, 2024
@wxiaoguangwxiaoguang deleted the fix-path-param branchDecember 24, 2024 13:51
zjjhot added a commit to zjjhot/gitea that referenced this pull requestDec 25, 2024
* giteaofficial/main:  demilestone should not include milestone (go-gitea#32923)  fix textarea newline handle (go-gitea#32966)  Fix Azure blob object `Seek`  (go-gitea#32974)  Fix maven pom inheritance (go-gitea#32943)  Refactor arch route handlers (go-gitea#32972)  [skip ci] Updated translations via Crowdin  Refactor tmpl and blob_excerpt (go-gitea#32967)  Clarify path param naming (go-gitea#32969)  Refactor getpatch/getdiff functions and remove unnecessary fallback (go-gitea#32817)  Refactor request context (go-gitea#32956)
@go-giteago-gitea locked asresolvedand limited conversation to collaboratorsMar 24, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@lunnylunnylunny approved these changes

+1 more reviewer

@hiifonghiifonghiifong approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore.modifies/apiThis PR adds API routes or modifies themmodifies/goPull requests that update Go code

Projects

None yet

Milestone

1.24.0

Development

Successfully merging this pull request may close these issues.

4 participants

@wxiaoguang@lunny@hiifong@GiteaBot

[8]ページ先頭

©2009-2025 Movatter.jp