-
Notifications
You must be signed in to change notification settings - Fork 525
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
Fix create PR in release workflow #3528
Conversation
The workflow was issued to test from private branch on old backport of 8.9 https://github.com/elastic/detection-rules/actions/runs/8380327773/job/22949293741 But the cahnges are not reflected. Checking this further. |
@shashank-elastic You don't need to run the entire workflow to test. You can debug the method locally that's failing (and pass the correct parameters). python -m detection_rules dev integrations-pr \
$LOCAL_REPO \
--github-repo $TARGET_REPO \
--base-branch $TARGET_BRANCH \
--assign shashank-elastic \
$DRAFT_ARGS I recommend setting up a debug session and set breakpoints in the |
Local Testing
PR successfully created - elastic/integrations#9452 |
detection_rules/devtools.py
Outdated
@@ -675,7 +675,7 @@ def elastic_pkg(*args): | |||
None | |||
""") # noqa: E501 | |||
|
|||
pr = repo.create_pull(message, body, base_branch, branch_name, maintainer_can_modify=True, draft=draft) | |||
pr = repo.create_pull(title=message, body=body, base=base_branch, head=branch_name, maintainer_can_modify=True, draft=draft) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: create pull is called in a couple places in the repo.
Just to double check, should the other call be updated to match this one as well? pr = repo.create_pull(title, body, base=kwargs["base_branch"], head=branch_name, maintainer_can_modify=True,
draft=draft) |
Honestly, that was not scoped here, so if we intend to that we would need to test the workflow kibana-pr. Also looking at this post title and body are not the "required parameters" so may be we will no hit the issue like in integrations_pr where even the required parameters such as "base_branch" and "branch_name" are also not aligned as per 3.12 requirements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation! Also looks like the kibana pr dev command is no longer used in release workflows so not required to fix for the release process.
LGTM 👍
Concur, with @eric-forte-elastic. The other references should be updated. OR immediately in a separate issue/PR, delete:
if we no longer do this. |
@Mikaayenson The deprectaion is handled in #3552. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(cherry picked from commit 8b215ea)
(cherry picked from commit 8b215ea)
(cherry picked from commit 8b215ea)
(cherry picked from commit 8b215ea)
(cherry picked from commit 8b215ea)
(cherry picked from commit 8b215ea)
(cherry picked from commit 8b215ea)
(cherry picked from commit 8b215ea)
(cherry picked from commit 8b215ea)
(cherry picked from commit 8b215ea)
(cherry picked from commit 8b215ea)
Issues
#3527
Summary