Enforce a triangular Git workflow. If this is not possible, explain why.
Reason this release was yanked:
Packaging errors
Project description
Samosa (���������������)
Enforce a triangular Git workflow. If this is not possible, explain why.
Samosa standard
The following checks should be true:
- In a Git repository
- There is a remote named "origin"
- There is a remote named "upstream"
- Author name and email are set, and are not invalid
- The default push target is "origin:current"
- The pre-commit hook exists and is executable
- There is a local branch named "main"
- The main branch tracks "upstream/main"
See WORKFLOW.md for a detailed workflow that results in a samosa standard repository.
Usage
cd <repository-folder>
samosa
If any checks fail, Samosa will attempt to make a correction. If the correction cannot be made automatically, Samosa will make a suggestion and terminate with exit code 1 (error).
If all checks pass, Samosa will display a short confirmation message and terminate with exit code 0 (success).
Development environment
First, fork https://gitlab.com/lofidevops/samosa
git checkout <your-fork>
cd samosa
# set up triangular workflow here!
pdm install --dev
You can use a text editor, or any IDE that supports virtualenv / pdm.
Roadmap (don't hold your breath)
samosa clone
: interactive prompts that follow the suggested workflow
Out of scope
- Detecting/supporting other workflows.
Sharing and contributions
Samosa (���������������)
https://gitlab.com/lofidevops/samosa
Copyright 2022 David Seaward and contributors
SPDX-License-Identifier: GPL-3.0-or-later
Shared under GPL-3.0-or-later. We adhere to the Contributor Covenant 2.0 without modification, and certify origin per DCO 1.1 with a signed-off-by line. Contributions under the same terms are welcome.
Submit conduct issues as private tickets. Sign commits with git -s
.
For a software bill of materials run reuse spdx
. For more details
see LICENSES, CONDUCT and DCO.
Acknowledgements
WORKFLOW.md and the associated pre-commit bash script are derived from Aaron Bull Schaefer's excellent Git Triangular Workflow. License details are included in the relevant files.
Additional references
- Git 2.5, including multiple worktrees and triangular workflows
- Forking workflow (this seems to be another name for triangular workflows)
- Git forking workflow, what names for the remotes?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file samosa-0.1.1.tar.gz
.
File metadata
- Download URL: samosa-0.1.1.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.1.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49426331b6ec4f2784abdd397d34e876fc97c747e2b9a21da7456e22aaa5ae72 |
|
MD5 | 2bce8691f91d9cc6161d3712b4b9d2a7 |
|
BLAKE2b-256 | 399304b4fe19108545bbea101900628bf8c45abdcbf3841148ecaa9960770e01 |
File details
Details for the file samosa-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: samosa-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.1.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fe169c86902446bbce9b22bd5c0354e869fa5166605631614f8ed14c0b455b4 |
|
MD5 | 24bc259377c0097c092f9154eefb10ef |
|
BLAKE2b-256 | e386d067aa6dafc26ea3320c69a0de96305f3a4066d439f1f3334098f3f41c14 |