-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add environment details in PR body #1120
Add environment details in PR body #1120
Conversation
What do you think about adding the env details to the body in this function and removing the code in other bodies? This way all PRs will have the env info. kebechet/kebechet/managers/manager.py Line 164 in c864a6b
|
c18f9fe
to
bb13ea8
Compare
b8b8860
to
5ed1c75
Compare
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.
This looks good. What do you think about extending this for issues created by Kebechet as well?
kebechet/managers/manager.py
Outdated
@@ -161,7 +161,7 @@ def create_pr(self, title: str, body: str, source_branch: str, target_branch: st | |||
"""Create a PR but defaults to opening PR within a fork rather than on parent fork.""" | |||
return self.project.create_pr( | |||
title=title, | |||
body=body, | |||
body=body + "\n" + str(self.get_environment_details()), |
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.
Please wrap this in a <details>
tag so that it is collapsable.
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.
Ack
@@ -400,7 +399,7 @@ def _open_merge_request_update( | |||
) | |||
|
|||
_LOGGER.info("Creating a new pull request to update dependencies.") | |||
merge_request = self.project.create_pr( |
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.
There is another call in managers/version/version.py
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.
ack
8aa2f1e
to
aa088f7
Compare
- Update UPDATE_MESSAGE_BODY to remove kebechet's version variable - Update _generate_update_body to remove kebechet's version - Update _create_pr_for_trigger_release() to call create_pr method wrapper Signed-off-by: Shreekara <sshreeka@redhat.com>
aa088f7
to
c672a3e
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: KPostOffice The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@shreekarSS has this feature been released and deployed? |
Signed-off-by: Shreekara sshreeka@redhat.com
Related Issues and Dependencies
Fixes: #1099
…