Skip to content

Conversation

@danickfort
Copy link
Contributor

No description provided.

).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


@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
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

@danickfort danickfort removed their assignment Apr 27, 2022
@danickfort danickfort requested a review from simonbru April 27, 2022 15:06
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