Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ updates:
schedule:
# Check for updates to GitHub Actions every month
interval: "monthly"
cooldown:
default-days: 7
13 changes: 8 additions & 5 deletions .github/workflows/polish-the-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ jobs:
# Limit the running time
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
fetch-depth: 0 # required for merge-base check
# checkout PR HEAD commit
ref: ${{ github.event.pull_request.head.sha }}
# required for merge-base check
fetch-depth: 0
persist-credentials: false
- uses: commit-check/commit-check-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because use of pr-comments
# use GITHUB_TOKEN because use of pr-comments
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
message: true
# to accept dependabot/github_actions/*
Expand All @@ -48,6 +51,6 @@ jobs:

super-linter:
needs: commit-check
uses: WorkOfStan/seablast-actions/.github/workflows/linter.yml@v0.2.7
uses: WorkOfStan/seablast-actions/.github/workflows/linter.yml@v0.2.9
with:
runs-on: "ubuntu-latest"
2 changes: 1 addition & 1 deletion .github/workflows/prettier-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
with:
commit-changes: true
#debug: true
#node-version: "20"
#node-version: "24"
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### `Security` in case of vulnerabilities

## [1.1.7] - 2026-03-15

ci(Node.js): change the default from version 20 to 24

### Changed

- refactor(deps): bump Node.js, actions/checkout, seablast/actions:linter

## [1.1.6.2] - 2025-10-23

chore: make the commit message compliant with Conventional Commits
Expand Down Expand Up @@ -134,7 +142,8 @@ fix: pull request issues

- This GitHub Action automates Prettier formatting across your project, ensuring consistent code styling by creating a new branch for review when necessary. It simplifies integrating Prettier into your workflow, although updates to workflow YAML files in `.github/workflows/` must be done manually.

[Unreleased]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.6.2...HEAD
[Unreleased]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.7...HEAD
[1.1.7]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.6.2...v1.1.7?w=1
[1.1.6.2]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.6.1...v1.1.6.2?w=1
[1.1.6.1]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.6...v1.1.6.1?w=1
[1.1.6]: https://github.com/WorkOfStan/prettier-fix/compare/v1.1.5...v1.1.6?w=1
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024-2025 WorkOfStan
Copyright (c) 2024-2026 WorkOfStan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ permissions:
| `commit-changes` | If `true`, commits changes to the current branch instead of creating a new one | Boolean | `false` |
| `commit-message` | Commit message for the changes | String | `"chore(prettier): apply Prettier fixes automatically"` |
| `debug` | Enable extra debug output (list of branches). | Boolean | `false` |
| `node-version` | Node.js version to use | String | `"20"` |
| `node-version` | Node.js version to use | String | `"24"` |
| `prettier-config-path` | Optional path to a custom Prettier config file | String | `""` |
| `skip-package-setup` | If `true`, skips `npm init` and dependency installation steps | Boolean | `false` |

Expand Down
14 changes: 8 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ inputs:
node-version:
description: "Node.js version to use"
type: string
default: "20"
default: "24"
prettier-config-path:
description: "Optional path to a custom Prettier config file"
type: string
Expand All @@ -40,22 +40,24 @@ inputs:

outputs:
branch-name:
description: "The branch where changes were committed"
description: "The branch, where changes were committed"
changed-files:
description: "Comma-separated list of files changed by Prettier"

runs:
using: "composite"
steps:
- name: Display version
run: echo "prettier-fix::v1.1.6.2 running"
run: echo "prettier-fix::v1.1.7 running"
shell: bash

- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: ${{ github.ref }} # Fetch latest changes (even by previous job)
fetch-depth: 0 # Fetch all history for all branches and tags. Otherwise github.event.pull_request.base.ref SHA isn't found.
# Fetch latest changes (even by previous job)
ref: ${{ github.ref }}
# Fetch all history for all branches and tags. Otherwise github.event.pull_request.base.ref SHA isn't found.
fetch-depth: 0

# Fetch latest changes (even by previous job)
- name: Fetch latest changes
Expand Down