Skip to content

Commit 556abd7

Browse files
🩹 [Patch]: Refactor GitHub event details to separate owner from repository information
1 parent 2aa22b6 commit 556abd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎scripts/main.ps1‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ process {
114114
Sender = $gitHubEvent.sender
115115
Enterprise = $gitHubEvent.enterprise
116116
Organization = $gitHubEvent.organization
117-
Repository = $gitHubEvent.repository
117+
Owner = $gitHubEvent.repository.owner
118+
Repository = $gitHubEvent.repository | Select-Object -ExcludeProperty owner
118119
} | Format-List
119120
}
120121
} catch {

0 commit comments

Comments
 (0)