diff --git a/dapp/CONTRIBUTING.md b/dapp/CONTRIBUTING.md deleted file mode 100644 index 2d24f2f..0000000 --- a/dapp/CONTRIBUTING.md +++ /dev/null @@ -1,10 +0,0 @@ -# Contributing - -This is a guide to contributing to `loam-build/soroban-frontend-template` -itself. Feel free to delete or modify it for your own project. - -soroban-cli requires that the main branch obtained with `git clone` be the branch to use as a template. So we are keeping `main` free of artifacts that do not make sense in the context of a `soroban contract init` template, such as the `contracts` folder. - -However, when actually maintaining and improving this template, we need these artifacts. - -Therefore, to contribute to this project, please check out the `dev` branch. All pushes/merges to the `dev` branch will be automatically pushed to `main` [on every push](.github/workflows/publish.yml). diff --git a/pre-commit/soroban_versioning_pre_push.py b/pre-commit/soroban_versioning_pre_push.py index 7b75fd6..ff20eac 100644 --- a/pre-commit/soroban_versioning_pre_push.py +++ b/pre-commit/soroban_versioning_pre_push.py @@ -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) diff --git a/website/docs/developers/on_chain.mdx b/website/docs/developers/on_chain.mdx index 9525c6f..7c49abf 100644 --- a/website/docs/developers/on_chain.mdx +++ b/website/docs/developers/on_chain.mdx @@ -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