mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Prevent committing to dev/master/rc directly (#32029)
* Prevent committing to dev/master/rc directly * Skip pre-commit on version bump
This commit is contained in:
@@ -65,7 +65,7 @@ enum34==1000000000.0.0
|
||||
pycrypto==1000000000.0.0
|
||||
"""
|
||||
|
||||
IGNORE_PRE_COMMIT_HOOK_ID = ("check-json",)
|
||||
IGNORE_PRE_COMMIT_HOOK_ID = ("check-json", "no-commit-to-branch")
|
||||
|
||||
|
||||
def has_tests(module: str):
|
||||
|
||||
@@ -140,7 +140,7 @@ def main():
|
||||
if not arguments.commit:
|
||||
return
|
||||
|
||||
subprocess.run(["git", "commit", "-am", f"Bumped version to {bumped}"])
|
||||
subprocess.run(["git", "commit", "-nam", f"Bumped version to {bumped}"])
|
||||
|
||||
|
||||
def test_bump_version():
|
||||
|
||||
Reference in New Issue
Block a user