[PR #1257] [MERGED] rewrite pre-commit, post-commit and options hooks (fixes #1250) #15836

Closed
opened 2025-11-02 11:55:45 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1257
Author: @philfry
Created: 3/14/2017
Status: Merged
Merged: 3/23/2017
Merged by: @lunny

Base: masterHead: fix_hooks


📝 Commits (7)

  • 0636e3e issue #1250, replace {pre,post}-receive and update hooks with a single shell script that does not require custom hooks to be a sh-script
  • 83a4fe5 issue #1250, make script posix compilant
  • 54329e5 v23, add migration script to update {pre,post}-receive and update hooks
  • e9ba36b migration: use a more common name and rename v23 to v26 to avoid conflicts
  • 74ca820 Merge branch 'master' into fix_hooks
  • 7d88e22 gofmt'ed and added copyright header
  • 5c81ed6 fix SyncRepositoryHooks to also sync wiki repos

📊 Changes

3 files changed (+96 additions, -6 deletions)

View changed files

📝 models/migrations/migrations.go (+2 -0)
models/migrations/v26.go (+87 -0)
📝 models/repo.go (+7 -6)

📄 Description

see #1250


🔄 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/1257 **Author:** [@philfry](https://github.com/philfry) **Created:** 3/14/2017 **Status:** ✅ Merged **Merged:** 3/23/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix_hooks` --- ### 📝 Commits (7) - [`0636e3e`](https://github.com/go-gitea/gitea/commit/0636e3ed85530037a455e77302229c454c2e474b) issue #1250, replace {pre,post}-receive and update hooks with a single shell script that does not require custom hooks to be a sh-script - [`83a4fe5`](https://github.com/go-gitea/gitea/commit/83a4fe52ea459a21dc3dd69b5702f269ce206747) issue #1250, make script posix compilant - [`54329e5`](https://github.com/go-gitea/gitea/commit/54329e52561b69e9d0d1258fbfbbb42f51fe96fe) v23, add migration script to update {pre,post}-receive and update hooks - [`e9ba36b`](https://github.com/go-gitea/gitea/commit/e9ba36bf1a61e341afb9e2c2edd20a4f93882edd) migration: use a more common name and rename v23 to v26 to avoid conflicts - [`74ca820`](https://github.com/go-gitea/gitea/commit/74ca8208898f222fe23034a254e4ef4e9b645681) Merge branch 'master' into fix_hooks - [`7d88e22`](https://github.com/go-gitea/gitea/commit/7d88e2288448dad20434af757e8620a3b479c5d4) gofmt'ed and added copyright header - [`5c81ed6`](https://github.com/go-gitea/gitea/commit/5c81ed61800f3723916ba1f838f59e65b371b845) fix SyncRepositoryHooks to also sync wiki repos ### 📊 Changes **3 files changed** (+96 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v26.go` (+87 -0) 📝 `models/repo.go` (+7 -6) </details> ### 📄 Description see #1250 --- <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 11:55:45 -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#15836