Skip to content

Commit 4390bce

Browse files
🩹 [Patch]: Remove redundant GitHub event context logging from main.ps1 (#14)
## Description This pull request simplifies the logging logic in the `scripts/main.ps1` script by removing several redundant log groups related to GitHub event context. Only the essential GitHub context and environment variables are now logged. Logging simplification: * Removed log groups for `GITHUB_EVENT`, `GITHUB_EVENT_ENTERPRISE`, `GITHUB_EVENT_ORGANIZATION`, and `GITHUB_EVENT_REPOSITORY` from the script to reduce unnecessary output and streamline context logging.
1 parent 2b4265c commit 4390bce

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

‎scripts/main.ps1‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,6 @@ LogGroup 'Context: [GITHUB]' {
1111
$CONTEXT_GITHUB | ConvertTo-Json -Depth 100
1212
}
1313

14-
LogGroup 'Context: [GITHUB_EVENT]' {
15-
$CONTEXT_GITHUB.event | ConvertTo-Json -Depth 100
16-
}
17-
18-
LogGroup 'Context: [GITHUB_EVENT_ENTERPRISE]' {
19-
$CONTEXT_GITHUB | ConvertTo-Json -Depth 100
20-
}
21-
22-
LogGroup 'Context: [GITHUB_EVENT_ORGANIZATION]' {
23-
$CONTEXT_GITHUB.event.organization | ConvertTo-Json -Depth 100
24-
}
25-
26-
LogGroup 'Context: [GITHUB_EVENT_REPOSITORY]' {
27-
$CONTEXT_GITHUB.event.repository | ConvertTo-Json -Depth 100
28-
}
29-
3014
LogGroup 'Context: [ENV]' {
3115
$env:CONTEXT_ENV
3216
}

0 commit comments

Comments
 (0)