-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add support for defining version tags instead of branches #372
Conversation
fb10f89
to
9057315
Compare
I started to test a PoC with a temporary repository yesterday. If this is working, I'll finalize this draft and make a PR out of it. |
9d1aa7c
to
0f98b10
Compare
Make test more readable and removes implicit order of calls. This should also improve the documentation purpose of the test and its expected result.
Usually the branchName values are equal between $version and $projectVersion exept when branchName was omitted in the project's website config which results in a null-value.
0f98b10
to
40949b5
Compare
If no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @SenseException! Looking forward to being able to use this.
lib/Projects/ProjectGitSyncer.php
Outdated
$command = sprintf( | ||
'cd %s && git clean -xdf && git checkout tags/%s', | ||
$this->getRepositoryPath($repositoryName), | ||
$tagName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although it will be used only for doctrine-owned projects, it still makes sense to implement proper escaping of the command line arguments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was mentioned internally in Slack and using tags instead of branches is going to be a new additional configuration in .doctrine-project.json files.
So how does it work? Should we document that somewhere?
Omit
The documentation has no documentation 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK as is.
Handles #369