##// END OF EJS Templates
pull-request-events: add audit data for pull_request.close action
marcink -
r2082:db993005 default
parent child Browse files
Show More
@@ -1091,8 +1091,10 b' class PullRequestModel(BaseModel):'
1091 1091 Session().add(pull_request)
1092 1092 self._trigger_pull_request_hook(
1093 1093 pull_request, pull_request.author, 'close')
1094
1095 pr_data = pull_request.get_api_data(with_merge_state=False)
1094 1096 self._log_audit_action(
1095 'repo.pull_request.close', {}, user, pull_request)
1097 'repo.pull_request.close', {'data': pr_data}, user, pull_request)
1096 1098
1097 1099 def close_pull_request_with_comment(
1098 1100 self, pull_request, user, repo, message=None):
General Comments 0
You need to be logged in to leave comments. Login now