[PR #2548] [CLOSED] Add commit comment when push to pull request branch #16458

Closed
opened 2025-11-02 12:11:08 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2548
Author: @lunny
Created: 9/19/2017
Status: Closed

Base: masterHead: lunny/add_commit_comment_pull


📝 Commits (10+)

  • a6fbf87 add commit comment when push to pull
  • 41b63bf add fore push handle and rename Link to RepoFullName
  • 3219e95 detected force push when needed
  • d23dc98 add TargetURL for comment and some refactors
  • 9a5f7a1 fix force push detect & some improvements
  • 19a5c66 some improvements
  • d8dec2c typo and function refactor
  • a134401 update repo RefFullName on comment when repo change owner, rename or transfer owner
  • 82a7cb9 simplified code via func
  • 5cc2686 change the sequence of commit comment save

📊 Changes

12 files changed (+291 additions, -62 deletions)

View changed files

📝 models/action.go (+49 -5)
📝 models/issue_comment.go (+192 -25)
📝 models/pull.go (+1 -0)
📝 models/repo.go (+2 -6)
📝 models/status.go (+3 -3)
📝 routers/api/v1/repo/status.go (+1 -1)
📝 routers/repo/commit.go (+1 -1)
📝 routers/repo/issue.go (+11 -4)
📝 routers/repo/setting.go (+1 -1)
📝 routers/repo/view.go (+1 -1)
📝 templates/repo/commit_status.tmpl (+16 -14)
📝 templates/repo/issue/view_content/comments.tmpl (+13 -1)

📄 Description

Fixes #2830


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2548 **Author:** [@lunny](https://github.com/lunny) **Created:** 9/19/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `lunny/add_commit_comment_pull` --- ### 📝 Commits (10+) - [`a6fbf87`](https://github.com/go-gitea/gitea/commit/a6fbf87a3ec811bab84856e6c0b38ad98a682b7e) add commit comment when push to pull - [`41b63bf`](https://github.com/go-gitea/gitea/commit/41b63bfe0000d8bf7eeab5e2ac66c7684316629a) add fore push handle and rename Link to RepoFullName - [`3219e95`](https://github.com/go-gitea/gitea/commit/3219e95a4c832a21f6caf78ff4e09d6526e023ab) detected force push when needed - [`d23dc98`](https://github.com/go-gitea/gitea/commit/d23dc9874affb2a35dcca6aeb73dfd15141dfeb0) add TargetURL for comment and some refactors - [`9a5f7a1`](https://github.com/go-gitea/gitea/commit/9a5f7a15f06f2c4458d5fd659ceda18d1d235b44) fix force push detect & some improvements - [`19a5c66`](https://github.com/go-gitea/gitea/commit/19a5c66a7d08b80e49ec034473bbb0bd60d6dd72) some improvements - [`d8dec2c`](https://github.com/go-gitea/gitea/commit/d8dec2c475079b9e2575476e2ce4607b5a4c647a) typo and function refactor - [`a134401`](https://github.com/go-gitea/gitea/commit/a134401b44c93493b45f8ddc37c5debdc9fe84fa) update repo RefFullName on comment when repo change owner, rename or transfer owner - [`82a7cb9`](https://github.com/go-gitea/gitea/commit/82a7cb9fde2bf040deb15eb61f8093cfaff51ddc) simplified code via func - [`5cc2686`](https://github.com/go-gitea/gitea/commit/5cc2686784b303a819a17637e1e9b9b29a8248f8) change the sequence of commit comment save ### 📊 Changes **12 files changed** (+291 additions, -62 deletions) <details> <summary>View changed files</summary> 📝 `models/action.go` (+49 -5) 📝 `models/issue_comment.go` (+192 -25) 📝 `models/pull.go` (+1 -0) 📝 `models/repo.go` (+2 -6) 📝 `models/status.go` (+3 -3) 📝 `routers/api/v1/repo/status.go` (+1 -1) 📝 `routers/repo/commit.go` (+1 -1) 📝 `routers/repo/issue.go` (+11 -4) 📝 `routers/repo/setting.go` (+1 -1) 📝 `routers/repo/view.go` (+1 -1) 📝 `templates/repo/commit_status.tmpl` (+16 -14) 📝 `templates/repo/issue/view_content/comments.tmpl` (+13 -1) </details> ### 📄 Description Fixes #2830 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:11:08 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16458