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

Refactor to use UnsafeStringToBytes #31358

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

alexandear
Copy link
Contributor

The PR replaces all goldmark/util.BytesToReadOnlyString with util.UnsafeBytesToString, goldmark/util.StringToReadOnlyBytes with util.UnsafeStringToBytes. This removes one TODO.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 13, 2024
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 13, 2024
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Jun 13, 2024
modules/system/db.go Outdated Show resolved Hide resolved
@alexandear alexandear force-pushed the refactor/unsafe-bytes-string branch from b66b014 to af162ba Compare June 13, 2024 13:58
@alexandear alexandear force-pushed the refactor/unsafe-bytes-string branch from af162ba to da4a68a Compare June 13, 2024 14:00
@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 Jun 13, 2024
@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Jun 13, 2024
@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 Jun 13, 2024
@wxiaoguang wxiaoguang enabled auto-merge (squash) June 14, 2024 00:58
@wxiaoguang wxiaoguang merged commit 1761459 into go-gitea:main Jun 14, 2024
26 checks passed
@GiteaBot GiteaBot added this to the 1.23.0 milestone Jun 14, 2024
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jun 14, 2024
* giteaofficial/main:
  Extract and display readme and comments for Composer packages (go-gitea#30927)
  Have new announcement about docs contributions (go-gitea#31364)
  Fix bug filtering issues which have no project (go-gitea#31337)
  Refactor to use UnsafeStringToBytes (go-gitea#31358)
  [skip ci] Updated translations via Crowdin
  Fix PullRequestList.GetIssueIDs's logic  (go-gitea#31352)
  [Refactor] Unify repo search order by logic (go-gitea#30876)
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Sep 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code size/M Denotes a PR that changes 30-99 lines, ignoring generated files. type/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants