Skip to content

Add progress indicator to workflow runs fetching spinner#2054

Merged
pelikhan merged 3 commits intomainfrom
copilot/update-fetching-workflow-logs
Oct 21, 2025
Merged

Add progress indicator to workflow runs fetching spinner#2054
pelikhan merged 3 commits intomainfrom
copilot/update-fetching-workflow-logs

Conversation

Copy link
Contributor

Copilot AI commented Oct 21, 2025

Summary

Updates the spinner message during workflow run fetching to show real-time progress information in the format (downloaded / count).

Problem

When running gh aw logs to download workflow runs, the spinner message "⠋ Fetching workflow runs from GitHub..." provided no indication of progress during the iterative fetching process. Users had no visibility into how many runs had been processed or how many remained, especially during long-running operations.

Solution

The spinner now displays progress information showing the number of runs processed so far out of the total requested:

Before:

⠋ Fetching workflow runs from GitHub...

After:

⠋ Fetching workflow runs from GitHub... (0 / 100)
⠋ Fetching workflow runs from GitHub... (25 / 100)
⠋ Fetching workflow runs from GitHub... (50 / 100)

Implementation Details

  • Modified listWorkflowRunsWithPagination() to accept processedCount and targetCount parameters
  • Updated the spinner message format to: "Fetching workflow runs from GitHub... (%d / %d)"
  • The calling code in DownloadWorkflowLogs() passes:
    • len(processedRuns) for the current progress
    • count for the user-requested total
  • Updated test to match the new function signature

This provides clear feedback during the iterative download process, especially valuable when fetching large numbers of workflow runs or when network operations are slow.

Testing

  • All unit tests pass
  • All integration tests pass
  • Code formatting and linting checks pass
  • Binary builds successfully
Original prompt

Update "⠋ Fetching workflow runs from GitHub..." message in logs to process (downloaded / count)


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update fetching workflow runs log message Add progress indicator to workflow runs fetching spinner Oct 21, 2025
Copilot AI requested a review from pelikhan October 21, 2025 01:03
@pelikhan pelikhan marked this pull request as ready for review October 21, 2025 01:06
@github-actions
Copy link
Contributor

Agentic Changeset Generator triggered by this pull request.

@pelikhan pelikhan merged commit 616ccdf into main Oct 21, 2025
4 checks passed
@pelikhan pelikhan deleted the copilot/update-fetching-workflow-logs branch October 21, 2025 01:10
Sign up for free to 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