[Bug] Change YAML Dump Parameters for Integrations Changelog (#2545)

* changed yamp.dump parameters to have correct order for changelog

* adjusted note in changelog
This commit is contained in:
Terrance DeJesus
2023-02-14 12:10:41 -05:00
committed by GitHub
parent 7df801f5c2
commit 73d581500c
+2 -3
View File
@@ -580,9 +580,8 @@ def integrations_pr(ctx: click.Context, local_repo: str, token: str, draft: bool
with changelog_path.open("wt") as f:
# add a note for other maintainers of elastic/integrations to be careful with versions
f.write("# newer versions go on top\n")
f.write("# NOTE: please use pre-release versions (e.g. -dev.0) until a package is ready for production\n")
yaml.dump(changelog_entries, f, allow_unicode=True, default_flow_style=False, indent=2)
f.write("# NOTE: please use pre-release versions (e.g. -beta.0) until a package is ready for production\n")
yaml.dump(changelog_entries, f, allow_unicode=True, default_flow_style=False, indent=2, sort_keys=False)
save_changelog()