[PR #5255] [CLOSED] Add pre-commit hook to prevent commits to master branch #5845

Closed
opened 2026-02-28 21:19:42 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5255
Author: @MatissJanis
Created: 6/29/2025
Status: Closed

Base: masterHead: matiss/prohibit-master


📝 Commits (2)

  • b2183d0 Add pre-commit hook to prevent commits to master branch
  • e726653 Rename 5254.md to 5255.md

📊 Changes

2 files changed (+18 additions, -0 deletions)

View changed files

📝 .husky/pre-commit (+12 -0)
upcoming-release-notes/5255.md (+6 -0)

📄 Description

I recently accidentally pushed to master and thus had to overwrite my changes and do a force push.. this is not great.

Adding a pre-commit hook that prohibits committing directly to the master branch.


🔄 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/actualbudget/actual/pull/5255 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 6/29/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `matiss/prohibit-master` --- ### 📝 Commits (2) - [`b2183d0`](https://github.com/actualbudget/actual/commit/b2183d0ffd0a54783ac3fa0838f9263867038dd3) Add pre-commit hook to prevent commits to master branch - [`e726653`](https://github.com/actualbudget/actual/commit/e7266535a4ae79cdcb9ffe990e3f5594eb464ddc) Rename 5254.md to 5255.md ### 📊 Changes **2 files changed** (+18 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.husky/pre-commit` (+12 -0) ➕ `upcoming-release-notes/5255.md` (+6 -0) </details> ### 📄 Description I recently accidentally pushed to `master` and thus had to overwrite my changes and do a force push.. this is not great. Adding a pre-commit hook that prohibits committing directly to the `master` branch. --- <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 2026-02-28 21:19:42 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#5845