Skip to content

Commit e87d168

Browse files
🩹 [Patch]: Enhance GitHub event logging by adding detailed information for sender, enterprise, organization, owner, and repository
1 parent 556abd7 commit e87d168

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

‎scripts/main.ps1‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,31 @@ process {
107107
$gitHubEvent | Format-List
108108
}
109109

110+
LogGroup 'EventInfo - Sender' {
111+
$Sender = $gitHubEvent.sender
112+
$Sender | Format-List
113+
}
114+
115+
LogGroup 'EventInfo - Enterprise' {
116+
$Enterprise = $gitHubEvent.enterprise
117+
$Enterprise | Format-List
118+
}
119+
120+
LogGroup 'EventInfo - Organization' {
121+
$Organization = $gitHubEvent.organization
122+
$Organization | Format-List
123+
}
124+
125+
LogGroup 'EventInfo - Owner' {
126+
$Owner = $gitHubEvent.repository.owner
127+
$Owner | Format-List
128+
}
129+
130+
LogGroup 'EventInfo - Repository' {
131+
$Repository = $gitHubEvent.repository | Select-Object -ExcludeProperty owner
132+
$Repository | Format-List
133+
}
134+
110135
LogGroup 'Object' {
111136
[pscustomobject]@{
112137
Type = $env:GITHUB_EVENT_NAME

0 commit comments

Comments
 (0)