-
Notifications
You must be signed in to change notification settings - Fork 13
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
SWING-126 Implement Changelog #116
base: master
Are you sure you want to change the base?
Conversation
@@ -562,6 +632,13 @@ def deploy(c, noconfirm=False): | |||
).lower() not in ("y", "yes"): | |||
return | |||
|
|||
if "CHANGELOG.md" not in files_to_deploy(): |
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.
if "CHANGELOG.md" not in files_to_deploy(): | |
if "CHANGELOG.md" not in files_to_deploy(c): |
# Changelog gen # | ||
################# | ||
|
||
CHANGELOG_MD_PATH = os.path.join(BASE_DIR, "CHANGELOG.md") |
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.
Should we also expose a changelog view in the project template ? Or do you think that this is a project-specific decision ?
|
||
Before deploying, you should update the CHANGELOG.md file with the latest changes by running: | ||
``` | ||
docker-compose exec backend fab <environment> generate_changelog |
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.
docker-compose exec backend fab <environment> generate_changelog | |
docker-compose exec backend fab <environment> generate-changelog |
@@ -372,6 +394,30 @@ def get_local_modifications_count(): | |||
) | |||
|
|||
|
|||
@task | |||
@remote | |||
def generate_changelog(c, ignorecheck="n", initialize="n", **kwargs): |
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.
Use booleans for these arguments ?
def generate_changelog(c, ignorecheck=False, initialize=False, **kwargs):
def jira_release(c, command, **kwargs): | ||
full_kwargs = dict() | ||
|
||
if c.config["environment"] == "prod": |
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.
Move this condition into comment_and_close_on_jira
? Otherwise it always overrides the command
argument
"generate_changelog", | ||
**{ | ||
"jira-prefix": jira_prefix, | ||
"environment": c.config.environment, |
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.
environment
is not an argument of jira_release generate_changelog
@@ -360,6 +360,28 @@ def outgoing_commits(c): | |||
print_commits(get_outgoing_commits(c)) | |||
|
|||
|
|||
@task |
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.
Currently, it does not make sense as a task because it does not output anything to the console
No description provided.