Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/VCS/Adapter/Git/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ public function getEvent(string $event, string $payload): array
$authorUrl = $payload['sender']['html_url'];
$authorAvatarUrl = $payload['sender']['avatar_url'] ?? '';
$headCommitAuthor = $payload['head_commit']['author']['name'] ?? '';
$headCommitAuthorEmail = $payload['head_commit']['author']['email'] ?? '';
$headCommitMessage = $payload['head_commit']['message'] ?? '';
$headCommitUrl = $payload['head_commit']['url'] ?? '';

Expand All @@ -619,6 +620,7 @@ public function getEvent(string $event, string $payload): array
'authorUrl' => $authorUrl,
'authorAvatarUrl' => $authorAvatarUrl,
'headCommitAuthor' => $headCommitAuthor,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be a breaking change, so it will require update in Appwrite's usage of library, but let's please rename this variable to headCommitAuthorName, to be consistent with newly added headCommitAuthorEmail.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree on consistency - I was worried about backward compatibility.. if we can ensure compat, I'm down 👍

'headCommitAuthorEmail' => $headCommitAuthorEmail,
'headCommitMessage' => $headCommitMessage,
'headCommitUrl' => $headCommitUrl,
'external' => false,
Expand Down