Skip to content

Fix various problems#37129

Merged
wxiaoguang merged 6 commits intogo-gitea:mainfrom
wxiaoguang:fix-regression
Apr 7, 2026
Merged

Fix various problems#37129
wxiaoguang merged 6 commits intogo-gitea:mainfrom
wxiaoguang:fix-regression

Conversation

@wxiaoguang
Copy link
Copy Markdown
Contributor

@wxiaoguang wxiaoguang commented Apr 7, 2026

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 7, 2026
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Apr 7, 2026
@github-actions github-actions bot added the docs-update-needed The document needs to be updated synchronously label Apr 7, 2026
@wxiaoguang wxiaoguang changed the title Fix regression bugs Fix various problems Apr 7, 2026
@wxiaoguang wxiaoguang added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Apr 7, 2026
@wxiaoguang wxiaoguang force-pushed the fix-regression branch 2 times, most recently from 2e5de22 to b08ee73 Compare April 7, 2026 05:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses three unrelated regressions/rough edges across the web issue comment flow, Docker SSH service behavior, and example configuration documentation.

Changes:

  • Prevents creating a user comment when the request is only a close/reopen status change (avoids generating an extra blank comment on reopen).
  • Adds a restart delay for the Docker openssh s6 service when it exits with a non-zero code (reduces tight restart loops/CPU spikes).
  • Clarifies SSH_ROOT_PATH documentation in app.example.ini for non-builtin SSH usage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
routers/web/repo/issue_comment.go Adjusts comment-creation conditions so status-only actions don’t create an empty comment; preserves redirect behavior when a real comment is created.
docker/root/etc/s6/openssh/finish Introduces a 3-second sleep on non-zero exit to slow s6 restarts of sshd after failures.
custom/conf/app.example.ini Updates/clarifies comments for SSH_ROOT_PATH and non-builtin SSH key file creation behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
@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 Apr 7, 2026
@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 Apr 7, 2026
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
@wxiaoguang wxiaoguang enabled auto-merge (squash) April 7, 2026 16:11
@wxiaoguang wxiaoguang disabled auto-merge April 7, 2026 16:19
@github-actions github-actions bot added the modifies/api This PR adds API routes or modifies them label Apr 7, 2026
@wxiaoguang
Copy link
Copy Markdown
Contributor Author

wxiaoguang commented Apr 7, 2026

By the way, made a follow-up fix 4f76905 for #36697

Old code: UploadIssueAttachment -> uploadAttachment -> UploadAttachmentReleaseSizeLimit

New code: UploadIssueAttachment -> uploadAttachment -> UploadAttachmentForIssue

also cc @TheFox0x7

@wxiaoguang wxiaoguang merged commit 73e0e44 into go-gitea:main Apr 7, 2026
25 of 26 checks passed
@wxiaoguang wxiaoguang deleted the fix-regression branch April 7, 2026 17:17
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 8, 2026
* main:
  [skip ci] Updated translations via Crowdin
  Fix various problems (go-gitea#37129)
  Add support for RPM Errata (updateinfo.xml) (go-gitea#37125)
  upgrade vite (go-gitea#37126)
  Bugfix: Apply notify/register mail flags during install load (go-gitea#37120)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-update-needed The document needs to be updated synchronously 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 modifies/internal skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.

Projects

None yet

5 participants