Skip to content
5 changes: 2 additions & 3 deletions detection_rules/devtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def integrations_pr(ctx: click.Context, local_repo: str, token: str, draft: bool

local_repo = os.path.abspath(local_repo)
stack_version = Package.load_configs()["name"]
package_version = Package.load_configs()["registry_data"]["version"]
package_version = Package.load_configs()["registry_data"]["version"].split("-")[0]

release_dir = Path(RELEASE_DIR) / stack_version / "fleet" / package_version
message = f"[Security Rules] Update security rules package to v{package_version}"
Expand Down Expand Up @@ -541,7 +541,6 @@ def elastic_pkg(*args):
os.chdir(prev)

elastic_pkg("format")
elastic_pkg("lint")

# Upload the files to a branch
git("add", pkg_directory)
Expand Down Expand Up @@ -591,7 +590,7 @@ def elastic_pkg(*args):
click.echo("PR created:")
click.echo(pr.html_url)

# replace the changelog entry with the actual PR link
# # replace the changelog entry with the actual PR link
changelog_entries[0]["changes"][0]["link"] = pr.html_url
save_changelog()

Expand Down