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

Fix bug when a token is given public only #32204

Merged
merged 15 commits into from
Oct 8, 2024

Conversation

lunny
Copy link
Member

@lunny lunny commented Oct 6, 2024

No description provided.

@lunny lunny added the type/bug label Oct 6, 2024
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 6, 2024
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 6, 2024
@lunny lunny added backport/v1.22 This PR should be backported to Gitea 1.22 and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 6, 2024
@github-actions github-actions bot added modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code labels Oct 6, 2024
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Oct 6, 2024
routers/api/v1/api.go Outdated Show resolved Hide resolved
@yp05327 yp05327 added this to the 1.23.0 milestone Oct 7, 2024
@lunny lunny self-assigned this Oct 7, 2024
@lunny lunny marked this pull request as draft October 7, 2024 22:30
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 7, 2024
@lunny lunny marked this pull request as ready for review October 8, 2024 00:56
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 8, 2024
routers/api/v1/api.go Outdated Show resolved Hide resolved
@lafriks lafriks merged commit d6d3c96 into go-gitea:main Oct 8, 2024
26 checks passed
@GiteaBot
Copy link
Collaborator

GiteaBot commented Oct 8, 2024

I was unable to create a backport for 1.22. @lunny, please send one manually. 🍵

go run ./contrib/backport 32204
...  // fix git conflicts if any
go run ./contrib/backport --continue

@GiteaBot GiteaBot added the backport/manual No power to the bots! Create your backport yourself! label Oct 8, 2024
@lunny lunny deleted the lunny/fix_public_only_scope branch October 8, 2024 17:27
lunny added a commit to lunny/gitea that referenced this pull request Oct 8, 2024
@lunny lunny added the backport/done All backports for this PR have been created label Oct 8, 2024
lunny added a commit that referenced this pull request Oct 9, 2024
zjjhot added a commit to zjjhot/gitea that referenced this pull request Oct 10, 2024
* giteaofficial/main:
  Refactor CSRF token (go-gitea#32216)
  [skip ci] Updated translations via Crowdin
  Fix incorrect "Target branch does not exist" in PR title (go-gitea#32222)
  update git book link to v2 (go-gitea#32221)
  [skip ci] Updated translations via Crowdin
  Add null check for responseData.invalidTopics (go-gitea#32212)
  Fix bug when a token is given public only (go-gitea#32204)
DennisRasey pushed a commit to DennisRasey/forgejo that referenced this pull request Oct 11, 2024
Port of go-gitea/gitea#32204

(cherry picked from commit d6d3c96e6555fc91b3e2ef21f4d8d7475564bb3e)

Conflicts:
  routers/api/v1/api.go
	services/context/api.go
  trivial context conflicts
DennisRasey pushed a commit to DennisRasey/forgejo that referenced this pull request Oct 11, 2024
Port of go-gitea/gitea#32204

(cherry picked from commit d6d3c96e6555fc91b3e2ef21f4d8d7475564bb3e)

Conflicts:
  routers/api/v1/api.go
	services/context/api.go
  trivial context conflicts
(cherry picked from commit a052d2b)

Conflicts:
	routers/api/v1/user/user.go
  trivial context conflict (search by email is not in v9.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/done All backports for this PR have been created backport/manual No power to the bots! Create your backport yourself! backport/v1.22 This PR should be backported to Gitea 1.22 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code size/L Denotes a PR that changes 100-499 lines, ignoring generated files. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants