Releases: cloudposse/github-action-pre-commit
v4.1.0
Add canonical README.yaml for CI-generated README.md @[copilot-swe-agent[bot]](https://github.com/apps/copilot-swe-agent) (#34)
This PR introduces a canonical `README.yaml` so `README.md` can be generated in CI using the repository-standard Cloud Posse docs workflow. The content mirrors the current action behavior and usage while aligning format with sibling Cloud Posse action repos.-
Canonical README source
- Adds
README.yamlat repo root as the single source of truth for generated documentation. - Defines standard metadata fields (
name,tags,license,github_repo,badges,related,include,contributors).
- Adds
-
Action-focused documentation content
- Captures concise project description and introduction for
github-action-pre-commit. - Adds usage examples for:
- default action invocation
- custom
extra_args - private-repo push-back configuration (
token, git author, commit message).
- Captures concise project description and introduction for
-
Cloud Posse README.yaml convention alignment
- Uses the same structure and section model as referenced Cloud Posse action repositories.
- Includes reusable workflow reference links and badge format consistent with the org pattern.
# README.yaml (excerpt)
name: github-action-pre-commit
github_repo: cloudposse/github-action-pre-commit
usage: |-
```yaml
- uses: cloudposse/github-action-pre-commit@v4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
git_user_name: pre-commit
git_user_email: pre-commit@users.noreply.github.com
git_commit_message: pre-commit fixes</details>
<details>
<summary>Bump the npm_and_yarn group across 1 directory with 4 updates @[dependabot[bot]](https://github.com/apps/dependabot) (#31)</summary>
Bumps the npm_and_yarn group with 3 updates in the / directory: [webpack](https://github.com/webpack/webpack), [@octokit/plugin-paginate-rest](https://github.com/octokit/plugin-paginate-rest.js) and [@octokit/request](https://github.com/octokit/request.js).
Updates `webpack` from 5.94.0 to 5.105.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/webpack/webpack/releases">webpack's releases</a>.</em></p>
<blockquote>
<h2>v5.105.4</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p>Add <code>Module.getSourceBasicTypes</code> to distinguish basic source types and clarify how modules with non-basic source types like <code>remote</code> still produce JavaScript output. (by <a href="https://github.com/xiaoxiaojx"><code>@xiaoxiaojx</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20546">#20546</a>)</p>
</li>
<li>
<p>Handle <code>createRequire</code> in expressions. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20549">#20549</a>)</p>
</li>
<li>
<p>Fixed types for multi stats. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20556">#20556</a>)</p>
</li>
<li>
<p>Remove empty needless js output for normal css module. (by <a href="https://github.com/JSerFeng"><code>@JSerFeng</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20162">#20162</a>)</p>
</li>
<li>
<p>Update <code>enhanced-resolve</code> to support new features for <code>tsconfig.json</code>. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20555">#20555</a>)</p>
</li>
<li>
<p>Narrows export presence guard detection to explicit existence checks on namespace imports only, i.e. patterns like "x" in ns. (by <a href="https://github.com/hai-x"><code>@hai-x</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20561">#20561</a>)</p>
</li>
</ul>
<h2>v5.105.3</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p>Context modules now handle rejections correctly. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20455">#20455</a>)</p>
</li>
<li>
<p>Only mark asset modules as side-effect-free when <code>experimental.futureDefaults</code> is set to true, so asset-copying use cases (e.g. <code>import "./x.png"</code>) won’t break unless the option is enabled. (by <a href="https://github.com/hai-x"><code>@hai-x</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20535">#20535</a>)</p>
</li>
<li>
<p>Add the missing <strong>webpack_exports</strong> declaration in certain cases when bundling a JS entry together with non-JS entries (e.g., CSS entry or asset module entry). (by <a href="https://github.com/hai-x"><code>@hai-x</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20463">#20463</a>)</p>
</li>
<li>
<p>Fixed HMR failure for CSS modules with <a href="https://github.com/import"><code>@import</code></a> when exportType !== "link". When exportType is not "link", CSS modules now behave like JavaScript modules and don't require special HMR handling, allowing <a href="https://github.com/import"><code>@import</code></a> CSS to work correctly during hot module replacement. (by <a href="https://github.com/xiaoxiaojx"><code>@xiaoxiaojx</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20514">#20514</a>)</p>
</li>
<li>
<p>Fixed an issue where empty JavaScript files were generated for CSS-only entry points. The code now correctly checks if entry modules have JavaScript source types before determining whether to generate a JS file. (by <a href="https://github.com/xiaoxiaojx"><code>@xiaoxiaojx</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20454">#20454</a>)</p>
</li>
<li>
<p>Do not crash when a referenced chunk is not a runtime chunk. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20461">#20461</a>)</p>
</li>
<li>
<p>Fix some types. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20412">#20412</a>)</p>
</li>
<li>
<p>Ensure that missing module error are thrown after the interception handler (if present), allowing module interception to customize the module factory. (by <a href="https://github.com/hai-x"><code>@hai-x</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20510">#20510</a>)</p>
</li>
<li>
<p>Added <code>createRequire</code> support for ECMA modules. (by <a href="https://github.com/stefanbinoj"><code>@stefanbinoj</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20497">#20497</a>)</p>
</li>
<li>
<p>Added category for CJS reexport dependency to fix issues with ECMA modules. (by <a href="https://github.com/hai-x"><code>@hai-x</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20444">#20444</a>)</p>
</li>
<li>
<p>Implement immutable bytes for <code>bytes</code> import attribute to match tc39 spec. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20481">#20481</a>)</p>
</li>
<li>
<p>Fixed deterministic search for graph roots regardless of edge order. (by <a href="https://github.com/veeceey"><code>@veeceey</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20452">#20452</a>)</p>
</li>
</ul>
<h2>v5.105.2</h2>
<h3>Patch Changes</h3>
<ul>
<li>Fixed <code>WebpackPluginInstance</code> type regression. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20440">#20440</a>)</li>
</ul>
<h2>v5.105.1</h2>
<h3>Patch Changes</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/webpack/webpack/blob/main/CHANGELOG.md">webpack's changelog</a>.</em></p>
<blockquote>
<h2>5.105.4</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p>Add <code>Module.getSourceBasicTypes</code> to distinguish basic source types and clarify how modules with non-basic source types like <code>remote</code> still produce JavaScript output. (by <a href="https://github.com/xiaoxiaojx"><code>@xiaoxiaojx</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20546">#20546</a>)</p>
</li>
<li>
<p>Handle <code>createRequire</code> in expressions. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20549">#20549</a>)</p>
</li>
<li>
<p>Fixed types for multi stats. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20556">#20556</a>)</p>
</li>
<li>
<p>Remove empty needless js output for normal css module. (by <a href="https://github.com/JSerFeng"><code>@JSerFeng</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20162">#20162</a>)</p>
</li>
<li>
<p>Update <code>enhanced-resolve</code> to support new features for <code>tsconfig.json</code>. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20555">#20555</a>)</p>
</li>
<li>
<p>Narrows export presence guard detection to explicit existence checks on namespace imports only, i.e. patterns like "x" in ns. (by <a href="https://github.com/hai-x"><code>@hai-x</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/20561">#20561</a>)</p>
</li>
</ul>
<h2>5.105.3</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p>Context modules now handle rejections correctly. (by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.gith...
v4.0.0. Update to NodeJS v20
What's Changed
- Update to NodeJS 20 by Nuru (@Nuru) in #14
- Update dependencies and workflow actions by Nuru (@Nuru) in #16
Full Changelog: v3.0.0...v4.0.0
v3.0.0 Upgrade to Node 16, actions/core 1.10.0, actions/exec 1.1.1, actions/github 5.1.1
Upgrade to Node 16, actions/core 1.10.0, actions/exec 1.1.1, actions/github 5.1.1 to meet new GitHub Action Runner requirements.
This version drops the use of actions/cache to attempt to cache pre-commit dependencies. It did not appear to be working anyway, and the code was outdated. You can still use the actions/cache action to cache what you can cache.
Note that is action itself does not use set-output, so warnings about set-output being deprecated are not due to this action, but rather due to output from pre-commit hooks. At the moment (2022-10-26) it appears there is a bug causing the set-output deprecation warnings to be printed even when the action is not attempting to set an output.
What's Changed
- Upgrade to Node 16, Webpack 5, Webpack-CLI 4 by Nuru (@Nuru) in #10
New Contributors
- Nuru (@Nuru) made their first contribution in #10
Full Changelog: v2.1.2...v3.0.0
v2.1.2
Add dist/index.js
v2.1.1
Override the git user name and email
- uses: cloudposse/pre-commit-action@v2.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
git_user_name: pre-commit
git_user_email: pre-commit@example.comFirst published https://github.com/marketplace/actions/cloudposse-pre-commit
v2.1.0
Override the git user name and email
- uses: cloudposse/pre-commit-action@v2.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
git_user_name: pre-commit
git_user_email: pre-commit@example.com