Skip to content

Add log file folder location to audit command overview section - #5889

Merged
pelikhan merged 3 commits into
mainfrom
copilot/add-logs-folder-location
Dec 8, 2025
Merged

Add log file folder location to audit command overview section#5889
pelikhan merged 3 commits into
mainfrom
copilot/add-logs-folder-location

Conversation

CopilotAI commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

The audit command's overview section now displays the log file folder location as a relative path from the workspace root.

Changes

  • Added LogsPath field to OverviewData struct with console:"header:Files,omitempty" tag
  • Populated LogsPath in buildAuditData with relative path conversion using filepath.Rel()
  • Updated OverviewDisplay and renderOverview to include Files field
  • Added test validation for LogsPath in overview data

Output

ℹ ## Overview
Run ID : 20036491169
Workflow: Dev
Status : completed (success)
Duration: 1.4m
Event : workflow_dispatch
Branch : local-safe-inputs
URL : https://github.com/githubnext/gh-aw/actions/runs/20036491169
Files : .gh-aw-logs/run-20036491169

The Files field displays the relative path (from the current working directory) to the directory containing downloaded artifacts and logs for the workflow run, making it easier to reference from the command line.

Original prompt

the "audit" command overview should render the log file folder location in the overview section:


ℹ ## Overview
Run ID : 20036491169
Workflow: Dev
Status : completed (success)
Duration: 1.4m
Event : workflow_dispatch
Branch : local-safe-inputs
URL : https://github.com/githubnext/gh-aw/actions/runs/20036491169
Files: # HERE logs file folder location

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
CopilotAI changed the title [WIP] Add logs file folder location to audit command overviewAdd log file folder location to audit command overview sectionDec 8, 2025
CopilotAI requested a review from pelikhanDecember 8, 2025 17:39

@pelikhanpelikhan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot make path relative to workspace

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

CopilotAI commented Dec 8, 2025

Copy link
Copy Markdown
ContributorAuthor

@copilot make path relative to workspace

Done in 644979e. The log file path is now displayed relative to the workspace:

ℹ ## Overview
Run ID : 20036491169
Workflow: Dev
Status : completed (success)
Duration: 1.4m
Event : workflow_dispatch
Branch : local-safe-inputs
URL : https://github.com/githubnext/gh-aw/actions/runs/20036491169
Files : .gh-aw-logs/run-20036491169

The path is calculated using filepath.Rel() to convert absolute paths to relative paths from the current working directory.

CopilotAI requested a review from pelikhanDecember 8, 2025 17:50
@pelikhan
pelikhan marked this pull request as ready for review December 8, 2025 17:52
@pelikhan
pelikhan merged commit b8737c0 into mainDec 8, 2025
5 checks passed
@pelikhan
pelikhan deleted the copilot/add-logs-folder-location branch December 8, 2025 17:52
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@pelikhan