Table of Contents
Main goal for that app is to push commits between branches
but just those which pass evaluation checks.
Example use case "push all commits pushed to branch develop more than 30 minutes ago to branch master"
Usage:
github-flow-manager [OWNER] [REPOSITORY] [SOURCE_BRANCH] [DESTINATION_BRANCH] [EXPRESSION] [SPECIFIC_COMMIT_CHECK_NAME - Optional] [flags]
Flags:
-c, --commits-number int Number of commits to get under evaluation (>0, <=100) (default 100)
-d, --dry-run Don't modify repository
-f, --force Use the force Luke... - Changes branch HEAD with force
-t, --github-token string GitHub token (can be passed also as GITHUB_TOKEN env variable
-h, --help help for github-flow-manager
-v, --verbose Print table with commits evaluation status
-s, --separator Set string separator of status checks (default ,)
- Evaluating commit status success based on the cumulative commit checks result
GITHUB_TOKEN=xxx github-flow-manager octocat Hello-World test master "StatusSuccess == false" --verbose --dry-run
- Passing specific commit check name for the evaluation of the status success of the commit
GITHUB_TOKEN=xxx github-flow-manager octocat Hello-World test master "StatusSuccess == false" "pipeline-name-to-be-checked" --verbose --dry-run
GITHUB_TOKEN=xxx github-flow-manager octocat Hello-World test master "StatusSuccess == false" "pipeline-1-name-to-be-checked,pipeline-2-name-to-be-checked" --verbose --dry-run
This repo leverage pre commit to lint, secure, document the IaaC codebase. The pre-commit configuration require the following dependencies:
One first repo download, to install the pre-commit hooks run: pre-commit install
, to run the hooks at will run: pre-commit run -a
SHA
Message
AuthoredDate
- when commit was authoredStatusSuccess
- f.ex. CI status
Message contains "HOTFIX"
Message NOT contains "FEATURE"
Message == "very important commit"
StatusSuccess == true
AuthoredDate < "now-30m"
AuthoredDate < "now-30m" AND StatusSuccess == true
You will need:
- Permissions to create tags in
master
branch
Check tags
git tag
Tag your changes to create a new release with the tag specified:
git tag -a v1.0.X -m "fix"