Skip to content

Commit

Permalink
Add commit sha in log when Nelson tries to merge a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
amigaire committed May 6, 2024
1 parent 09d8925 commit 270f04c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Akeneo/Git/PullRequestMerger.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function mergePullRequest(array $pullRequest): void
$this->eventDispatcher->dispatch(
new GenericEvent($this, [
'number' => $pullRequest['number'],
'commit_sha' => $pullRequest['base']['sha'],
]),
Events::PRE_GITHUB_MERGE_PR,
);
Expand Down
2 changes: 1 addition & 1 deletion src/Akeneo/Resources/translations/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ pre_crowdin_packages: 'Checking packages to update'
post_crowdin_packages: '%count% package(s) found!'
nelson_rename: 'Rename %from% to %to%'
nelson_drop_useless: 'Drop useless file %file%'
pre_github_merge_pr: 'Merging Pull Request %number%'
pre_github_merge_pr: 'Merging Pull Request %number% . Commit: %commit_sha%'
post_github_merge_pr: 'Pull Request merged!'

0 comments on commit 270f04c

Please sign in to comment.