Skip to content

Commit

Permalink
Limit pre-push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
tupui committed Aug 24, 2024
1 parent 2e311d8 commit 1fd1129
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
10 changes: 0 additions & 10 deletions dapp/CONTRIBUTING.md

This file was deleted.

4 changes: 4 additions & 0 deletions pre-commit/soroban_versioning_pre_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
if PROJECT_KEY is None:
raise ValueError("'TANSU_PROJECT_KEY' is missing from the environment")

BRANCH = os.getenv("PRE_COMMIT_REMOTE_BRANCH")
if BRANCH != "main":
exit(0)


def main():
project_key = bytes.fromhex(PROJECT_KEY)
Expand Down
3 changes: 1 addition & 2 deletions website/docs/developers/on_chain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ These events are ingested by a backend to make them easily consumable off-chain.

## Git Hooks

There is a convenient pre-push hook which can be used. This ensures that a
commit is only pushed if the hash is sent properly on-chain first.
There is a convenient pre-push hook which can be used. This ensures that a commit is only pushed if the hash is sent properly on-chain first.

```bash
pre-commit install -t pre-push
Expand Down

0 comments on commit 1fd1129

Please sign in to comment.