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 various trivial problems #32861

Merged
merged 6 commits into from
Dec 17, 2024
Merged

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Dec 16, 2024

  1. add/improve comments to help future readers could understand the problem more easily.
  2. add an error log to LDAP with username fallback
  3. use or instead of Iif for "repo/branch_dropdown" (Iif was a mistake, but it doesn't really affect the UI)
  4. add tw-font-mono style to container digest to match dockerhub
  5. fix a bug in RepoBranchTagSelector: the form is not updated when there is no click to an item

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 16, 2024
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 16, 2024
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files labels Dec 16, 2024
@wxiaoguang wxiaoguang added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Dec 16, 2024
@wxiaoguang wxiaoguang added this to the 1.23.0 milestone Dec 16, 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 Dec 16, 2024
@wxiaoguang
Copy link
Contributor Author

No need to wait for this if you'd like to release 1.23

@@ -12,6 +12,9 @@ import (
"code.gitea.io/gitea/modules/setting"
)

// CanUserForkBetweenOwners returns true if user can fork between owners.
// By default, a user can fork a repository from another owner, but not from themselves.
// Many users really like to fork their own repositories, so add an experimental setting to allow this.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Many users really like to fork their own repositories, so add an experimental setting to allow this.
// TODO: Many users really like to fork their own repositories, so add an experimental setting to allow this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But it is describing the fact, it is not a TODO

Copy link
Member

Choose a reason for hiding this comment

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

Wait, we have this setting already?
Because as far as I'm aware, we have no such setting yet.
And without the TODO, it sounds like the setting exists already…

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Allow to fork repository into the same owner #32819

image

@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 Dec 16, 2024
@wxiaoguang wxiaoguang enabled auto-merge (squash) December 17, 2024 00:56
@wxiaoguang wxiaoguang merged commit 2d7e6e9 into go-gitea:main Dec 17, 2024
26 checks passed
@wxiaoguang wxiaoguang deleted the fix-misc-pending branch December 17, 2024 02:18
@lunny lunny modified the milestones: 1.23.0, 1.24.0 Dec 17, 2024
@lunny
Copy link
Member

lunny commented Dec 17, 2024

Should this be backported to release/v1.23?

@wxiaoguang
Copy link
Contributor Author

Yes if you have tagged.

wxiaoguang added a commit to wxiaoguang/gitea that referenced this pull request Dec 17, 2024
1. add/improve comments to help future readers could understand the
problem more easily.
2. add an error log to LDAP with username fallback
3. use `or` instead of `Iif` for "repo/branch_dropdown" (`Iif` was a
mistake, but it doesn't really affect the UI)
4. add `tw-font-mono` style to container digest to match dockerhub
5. fix a bug in RepoBranchTagSelector: the form is not updated when
there is no click to an item

---------

Co-authored-by: delvh <dev.lh@web.de>
@wxiaoguang
Copy link
Contributor Author

Backport 1.23 #32868

@lunny lunny added backport/v1.23 This PR should be backported to Gitea 1.23 backport/done All backports for this PR have been created labels Dec 17, 2024
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/v1.23 This PR should be backported to Gitea 1.23 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/frontend modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files size/M Denotes a PR that changes 30-99 lines, ignoring generated files. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants