Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

danickfort
Copy link
Contributor

No description provided.

@@ -562,6 +632,13 @@ def deploy(c, noconfirm=False):
).lower() not in ("y", "yes"):
return

if "CHANGELOG.md" not in files_to_deploy():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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")
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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):
Copy link
Contributor

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":
Copy link
Contributor

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,
Copy link
Contributor

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

@simonbru simonbru assigned simonbru and danickfort and unassigned simonbru Apr 24, 2022
@@ -360,6 +360,28 @@ def outgoing_commits(c):
print_commits(get_outgoing_commits(c))


@task
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants