-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User scenarios .phlow #209
Comments
Solution It appears that including the local (repo) level is what seems to be causing the challenge here. But there seem to exist a viable and generally accepted solution. In the following examples it's assumed that the content of [default]
remote = origin
service = github
integration_branch = master
issue_url = https://api.github.com
delivery_branch_prefix = ready are changed to [phlow]
remote = origin
service = github
integration-branch = master
issue-url = https://api.github.com
delivery-branch-prefix = ready
Actually since these are all default values they could all be removed. Example - Changing a setting on a global scope This can be done using git config: The first query fails - but after it's set - it's valid. The information is persisted in the [phlow]
...
...
service = bitbucket Example - Changing a setting on a local scope The local scope is read from the individual repo's config file: Ideally in a The following command git config --file .gitconfig --replace-all phlow.integration-branch gh-pages will result in the following configuration being written to a [phlow]
integration-branch = gh-pages it then can be included in the local git configuration like this: git config --local --add include.path ../.gitconfig We still have one slight inconvenience to overcome using this approach; the local config file
[ -e .gitconfig ] && git config --local --replace-all include.path ../.gitconfig |
Note on writing to the local To ensure that this is stored in a
cd `git rev-parse --show-toplevel`
git config --file .gitconfig --add phlow.integration-branch gh-pages or git config --file `git rev-parse --show-toplevel`.gitconfig --add phlow.integration-branch gh-pages |
@lakruzz Do we want a config command with git phlow that can bootstrap a new configuration file if the user wants, and a command that enables the user to see a configuration without having to look through .gitconfig files? e.g. Bootstrap
creates a new .gitconfig with a default configuration for the user to change Show config
prints the Jira configuration to the terminal |
Don't we just want to implement the (missing) git config switch?
|
Here's how I would like to see the desired behaviour of our
.phlow
filesCurrently we're using underscores in some of our key names - that is not compliant
all properties that can be set from the
.phlow
file must have program defined defaultsall program defaults should work against GitHub and GitHub issues
all defaults must be configurable on machine level (
system
) user level (global
) and repository level (.phlow
in repo root)Currently we're not git config file compliant
Eample
Currently the
.phlow
file in the repo is queried directly by git-phlow program.The
.phlow
should be renamed to.gitconfig
in order to adapt to conventions - and can be included in the standard git query by the following command (assuming it's made compliant prior to this step):This is results in the following include clause in the repos
/.git/config
file:Example: only if the
git config...
query in the example above returns a non-zero error coder shall program defaults be used.Currently .phlow is required in the repo
Currently it's created if it doesn't exist
The text was updated successfully, but these errors were encountered: