refactor: picture view masonry (#588)

* store

* update

Signed-off-by: Innei <i@innei.in>

* resize

Signed-off-by: Innei <i@innei.in>

* cleanup

Signed-off-by: Innei <i@innei.in>

* fix(ci): auto fix

Signed-off-by: Innei <i@innei.in>

* chore: update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-09-23 20:59:44 +08:00
committed by GitHub
parent 2ae12c9d2b
commit d19d5c13d6
11 changed files with 613 additions and 290 deletions
@@ -36,7 +36,13 @@ jobs:
- name: Run formatter
run: pnpm run format
- name: Check for changes
id: check_changes
run: |
git diff --exit-code || echo "has_changes=true" >> $GITHUB_ENV
- name: Commit and push changes
if: steps.check_changes.outputs.has_changes == 'true' || env.has_changes == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: auto-fix linting and formatting issues"
@@ -44,23 +50,14 @@ jobs:
file_pattern: "."
- name: Add PR comment
if: steps.check_changes.outputs.has_changes == 'true' || env.has_changes == 'true'
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const hasChanges = await github.rest.pulls.listFiles({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number
}).then(response => response.data.length > 0);
const message = hasChanges
? 'Linting and formatting issues were automatically fixed. Please review the changes.'
: 'No linting or formatting issues were found.';
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: message
body: 'Linting and formatting issues were automatically fixed. Please review the changes.'
});