Skip to content

Add workflows to optimize PNG & SVG files - #9719

Open
PikachuEXE wants to merge 10 commits into
FreeTubeApp:developmentfrom
PikachuEXE:dev/image-optimize-pr
Open

PikachuEXE wants to merge 10 commits into
FreeTubeApp:developmentfrom
PikachuEXE:dev/image-optimize-pr

Conversation

@PikachuEXE

@PikachuEXE PikachuEXE commented Aug 31, 2026

Copy link
Copy Markdown
Member

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Existing image compression workflow seems broken and thus removed in #9686

Description

Workflows for compressing images like what's done in #9685
One for image compression and PR opening (PR body about file diff generation done inside)

Screenshots

Testing

I run new workflow manually which opened PikachuEXE#99 (file details should be default close but I forgot to commit that change before running)
See workflow runs in

Desktop

  • OS:
  • OS Version:
  • FreeTube version:

Additional context

Some previous discussion in PikachuEXE#87
Using https://github.com/PikachuEXE/FreeTube/tree/dev/image-optimize to test workflow runs (files there slightly different from PR

@FreeTubeBot
FreeTubeBot enabled auto-merge (squash) August 31, 2026 02:03
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Aug 31, 2026
@PikachuEXE
PikachuEXE marked this pull request as draft August 31, 2026 02:12
auto-merge was automatically disabled August 31, 2026 02:12

Pull request was converted to draft

@github-actions github-actions Bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Aug 31, 2026
@PikachuEXE

Copy link
Copy Markdown
Member Author

File diff one failed due unable to fetch branch from origin, probably action issue so putting PR on draft until fixed/new action found

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Failed to see that this PR was opened

PikachuEXE#87 (comment)

Comment thread .github/workflows/compress-images.yml
Comment thread .github/workflows/compress-images.yml Outdated
Comment thread .github/workflows/compress-images.yml Outdated
@PikachuEXE
PikachuEXE force-pushed the dev/image-optimize-pr branch from 1c12f90 to c54c15e Compare September 9, 2026 23:25
@PikachuEXE

Copy link
Copy Markdown
Member Author

Workflow updated with new action which generates part of PR body with file diff
See PikachuEXE#95 as example

But probably will wait for #9766 to be merged

Comment thread .github/workflows/compress-images.yml Outdated
Comment thread .github/workflows/compress-images.yml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I was looking at https://github.com/FreeTubeApp/FreeTube/blob/development/.github/workflows/conflicts.yml#L13-L15 and we probably also want to add concurrency too in the rare case that 2pr's are merged that contain images so it wont create 2 separate pr's

In our case it will look like

concurrency:
  group: compress-images-${{ github.ref }}
  cancel-in-progress: true

@efb4f5ff-1298-471a-8973-3d47447115dc

Copy link
Copy Markdown
Member

* development: (30 commits)
  Add handling for  `/show/` urls (FreeTubeApp#9788)
  Translated using Weblate (Portuguese (Brazil))
  Feature/drag drop improve (FreeTubeApp#9591)
  cleanup leftover from workflow removal (FreeTubeApp#9792)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Azerbaijani)
  Bump vue-router from 5.3.0 to 5.3.1 (FreeTubeApp#9779)
  Bump marked from 18.0.11 to 18.0.12 (FreeTubeApp#9780)
  Bump electron-builder from 26.15.7 to 26.16.1 (FreeTubeApp#9781)
  Bump dompurify from 3.4.14 to 3.4.15 (FreeTubeApp#9784)
  Bump the webpack group across 1 directory with 2 updates (FreeTubeApp#9778)
  Translated using Weblate (French)
  Bump the eslint group with 4 updates (FreeTubeApp#9775)
  Bump pnpm/action-setup from 6.0.10 to 6.1.0 (FreeTubeApp#9776)
  Translated using Weblate (Japanese)
  Translated using Weblate (Turkish)
  Translated using Weblate (Slovak)
  Translated using Weblate (Czech)
  Translated using Weblate (German)
  Hoist some v-ifs and use v-else and v-else-if (FreeTubeApp#9768)
  ...
@PikachuEXE

Copy link
Copy Markdown
Member Author

Changes made
And since #9766 requires more work won't wait for it to be ready

@PikachuEXE
PikachuEXE marked this pull request as ready for review September 14, 2026 05:42
@FreeTubeBot
FreeTubeBot enabled auto-merge (squash) September 14, 2026 05:42
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Sep 14, 2026
@PikachuEXE
PikachuEXE requested a review from Shadorc September 14, 2026 12:28
Comment thread .github/workflows/compress-images.yml
Comment thread .github/workflows/compress-images.yml Outdated
@efb4f5ff-1298-471a-8973-3d47447115dc

Copy link
Copy Markdown
Member

@PikachuEXE you might want to update pr body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: waiting for review For PRs that are complete, tested, and ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants