forge icon indicating copy to clipboard operation
forge copied to clipboard

feat: Added progress bar to git hub publisher

Open rahulptl165 opened this issue 11 months ago • 0 comments

Fixes #3760 by @hichemfanter

  • [x] I have read the contribution documentation for this project.
  • [x] I agree to follow the code of conduct that this project follows, as appropriate.
  • [ ] The changes are appropriately documented (if applicable).
  • [ ] The changes have sufficient test coverage (if applicable).
  • [ ] The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:

  • Integrated cli-progress: Replaced the previous setStatusLine upload counter with a cli-progress.SingleBar instance to show upload progress visually.
  • Progress Bar Features:
  1. Displays the release name (e.g., Uploading to v1.0.0).
  2. Shows a bar, percentage, and current/total count (e.g., |#######............| 50% (5/10)).
  3. Uses the shades_classic preset for a clean, styled look.

Implementation Details:

  • Added cli-progress to dependencies.
  • Initialized the bar with total artifact count before uploads.
  • Incremented the bar in the done callback after each artifact is processed.
  • Stopped the bar after all uploads complete.

rahulptl165 avatar Mar 01 '25 06:03 rahulptl165