From 64977b01bdb2d27b1d4d85ed5acb7bbf1eb06af2 Mon Sep 17 00:00:00 2001 From: Ross Wolf <31489089+rw-access@users.noreply.github.com> Date: Tue, 27 Jul 2021 16:03:28 -0600 Subject: [PATCH] Fix kibana_pr for click.Context (#1385) --- detection_rules/devtools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/detection_rules/devtools.py b/detection_rules/devtools.py index c9b7ca0c0..425ea677a 100644 --- a/detection_rules/devtools.py +++ b/detection_rules/devtools.py @@ -318,6 +318,7 @@ def kibana_commit(ctx, local_repo: str, github_repo: str, ssh: bool, kibana_dire # Pending an official GitHub API # @click.option("--automerge", is_flag=True, help="Enable auto-merge on the PR") @add_git_args +@click.pass_context def kibana_pr(ctx: click.Context, label: Tuple[str, ...], assign: Tuple[str, ...], draft: bool, token: str, **kwargs): """Create a pull request to Kibana.""" branch_name, commit_hash = ctx.invoke(kibana_commit, push=True, **kwargs)