Skip to content

Commit 90009fe

Browse files
Enhance GitHub event logging by refining sender, enterprise, organization, owner, and repository details
1 parent e87d168 commit 90009fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/main.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,27 +108,27 @@ process {
108108
}
109109

110110
LogGroup 'EventInfo - Sender' {
111-
$Sender = $gitHubEvent.sender
111+
$Sender = $gitHubEvent.sender | Select-Object -Property login, type, id, node_id, html_url
112112
$Sender | Format-List
113113
}
114114

115115
LogGroup 'EventInfo - Enterprise' {
116-
$Enterprise = $gitHubEvent.enterprise
116+
$Enterprise = $gitHubEvent.enterprise | Select-Object -Property name, slug, id, node_id, html_url
117117
$Enterprise | Format-List
118118
}
119119

120120
LogGroup 'EventInfo - Organization' {
121-
$Organization = $gitHubEvent.organization
121+
$Organization = $gitHubEvent.organization | Select-Object -Property login, id, node_id
122122
$Organization | Format-List
123123
}
124124

125125
LogGroup 'EventInfo - Owner' {
126-
$Owner = $gitHubEvent.repository.owner
126+
$Owner = $gitHubEvent.repository.owner | Select-Object -Property login, type, id, node_id, html_url
127127
$Owner | Format-List
128128
}
129129

130130
LogGroup 'EventInfo - Repository' {
131-
$Repository = $gitHubEvent.repository | Select-Object -ExcludeProperty owner
131+
$Repository = $gitHubEvent.repository | Select-Object -Property name, full_name, html_url, id, node_id, default_branch
132132
$Repository | Format-List
133133
}
134134

0 commit comments

Comments
 (0)