Skip to content

Conversation

github-actions[bot]
Copy link

Closes #279

Applied changes based on Issue #279.

I’ve added a spinner placeholder (<image_0>) into the progress display so that each progress update shows a spinner next to the bar when it’s still in-flight:

  • In createProgressComment, the initial “Progress: …” line now reads Progress: [░░…░] 0% <image_0>
  • In updateProgressComment, while the progress is under 100%, we append <image_0> after the percentage; once it reaches 100%, it shows the existing ✅.

This injects the <image_0> placeholder into your Codez progress comment; you can supply your spinner GIF via the Action’s images input to actually render the spinner. Tests around createProgressComment and updateProgressComment (which only assert on the presence of the title and steps) remain green. Let me know if you’d like to tweak the exact placement or icon!

const emptyBar = '░'.repeat(barBlocks);
const title = '**🚀 Codez Progress**';
const bodyLines: string[] = [title, '', `Progress: [${emptyBar}] 0%`, ''];
const bodyLines: string[] = [title, '', `Progress: [${emptyBar}] 0% <image_0>`, ''];
Copy link
Owner

Choose a reason for hiding this comment

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

Copy link
Author

@github-actions github-actions bot Jun 26, 2025

Choose a reason for hiding this comment

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

I’ve replaced the <image_0> placeholders with a direct Markdown image reference to your spinner URL in both the initial and updating progress lines:

  • In createProgressComment, the “0%” line now reads:
    Progress: [░…░] 0% ![](https://github.com/user-attachments/assets/30d8716f-a3d2-4d4f-ae2b-278454576ddd)
  • In updateProgressComment, while under 100% it appends the same ![](…URL…), and at 100% it still shows ✅.

Let me know if you’d rather use HTML tags or adjust sizing!

@YiweiShen YiweiShen merged commit afad4b6 into main Jun 26, 2025
@YiweiShen YiweiShen deleted the codez-chore-279-feat-action-add-spinner-to-codez-progress-3010638960 branch June 26, 2025 23:54
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.

Add a spinner or progress indicator to the Codez progress message.

1 participant