├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── bug-report.yml │ └── feature-request.yml ├── dependabot.yml ├── pull_request_template.md └── workflows │ ├── build.yml │ └── image-actions.yml ├── .gitignore ├── .prettierignore ├── Brewfile ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── README.md ├── __tests__ ├── __snapshots__ │ └── github-markdown_test.js.snap ├── example-images │ ├── icon.png │ ├── optimised-image.png │ ├── roo.avif │ ├── roo.jpg │ └── roo.webp ├── fixtures │ └── pull-request-synchronize-event.json ├── get-changed-images_test.js ├── get-repository-images_test.js ├── github-markdown_test.js └── image-processing_test.js ├── action.yml ├── docker-compose.test.yml ├── entrypoint.ts ├── eslint.config.js ├── images └── image-actions-preview.png ├── markdown-templates ├── inline-pr-comment-with-diff.md └── pr-comment.md ├── package.json ├── src ├── config.ts ├── constants.ts ├── get-changed-images.ts ├── get-repository-images.ts ├── github-commit.ts ├── github-markdown.ts ├── github-pr-comment.ts ├── image-processing.ts ├── index.ts ├── template.ts └── types │ ├── ActionReport.d.ts │ ├── ProcessedImage.d.ts │ └── humanize.d.ts ├── tests ├── entrypoint.bats ├── example-images │ ├── icon.png │ └── roo.jpg ├── icon.png └── roo.jpg ├── tsconfig.json ├── vitest.config.ts └── vitest.setup.ts /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug-report.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/.github/ISSUE_TEMPLATE/bug-report.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature-request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/.github/ISSUE_TEMPLATE/feature-request.yml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/image-actions.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/.github/workflows/image-actions.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | src/markdown-templates -------------------------------------------------------------------------------- /Brewfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/Brewfile -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/__snapshots__/github-markdown_test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/__snapshots__/github-markdown_test.js.snap -------------------------------------------------------------------------------- /__tests__/example-images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/example-images/icon.png -------------------------------------------------------------------------------- /__tests__/example-images/optimised-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/example-images/optimised-image.png -------------------------------------------------------------------------------- /__tests__/example-images/roo.avif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/example-images/roo.avif -------------------------------------------------------------------------------- /__tests__/example-images/roo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/example-images/roo.jpg -------------------------------------------------------------------------------- /__tests__/example-images/roo.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/example-images/roo.webp -------------------------------------------------------------------------------- /__tests__/fixtures/pull-request-synchronize-event.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/fixtures/pull-request-synchronize-event.json -------------------------------------------------------------------------------- /__tests__/get-changed-images_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/get-changed-images_test.js -------------------------------------------------------------------------------- /__tests__/get-repository-images_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/get-repository-images_test.js -------------------------------------------------------------------------------- /__tests__/github-markdown_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/github-markdown_test.js -------------------------------------------------------------------------------- /__tests__/image-processing_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/__tests__/image-processing_test.js -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/action.yml -------------------------------------------------------------------------------- /docker-compose.test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/docker-compose.test.yml -------------------------------------------------------------------------------- /entrypoint.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/entrypoint.ts -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/eslint.config.js -------------------------------------------------------------------------------- /images/image-actions-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/images/image-actions-preview.png -------------------------------------------------------------------------------- /markdown-templates/inline-pr-comment-with-diff.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/markdown-templates/inline-pr-comment-with-diff.md -------------------------------------------------------------------------------- /markdown-templates/pr-comment.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/markdown-templates/pr-comment.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/package.json -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/get-changed-images.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/get-changed-images.ts -------------------------------------------------------------------------------- /src/get-repository-images.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/get-repository-images.ts -------------------------------------------------------------------------------- /src/github-commit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/github-commit.ts -------------------------------------------------------------------------------- /src/github-markdown.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/github-markdown.ts -------------------------------------------------------------------------------- /src/github-pr-comment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/github-pr-comment.ts -------------------------------------------------------------------------------- /src/image-processing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/image-processing.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/template.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/template.ts -------------------------------------------------------------------------------- /src/types/ActionReport.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/types/ActionReport.d.ts -------------------------------------------------------------------------------- /src/types/ProcessedImage.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/src/types/ProcessedImage.d.ts -------------------------------------------------------------------------------- /src/types/humanize.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'humanize' 2 | -------------------------------------------------------------------------------- /tests/entrypoint.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/tests/entrypoint.bats -------------------------------------------------------------------------------- /tests/example-images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/tests/example-images/icon.png -------------------------------------------------------------------------------- /tests/example-images/roo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/tests/example-images/roo.jpg -------------------------------------------------------------------------------- /tests/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/tests/icon.png -------------------------------------------------------------------------------- /tests/roo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/tests/roo.jpg -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/vitest.config.ts -------------------------------------------------------------------------------- /vitest.setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calibreapp/image-actions/HEAD/vitest.setup.ts --------------------------------------------------------------------------------