Giter VIP home page Giter VIP logo

pre-commit-action's Introduction

pre-commit-action

GitHub Action: Try Me Test Workflow Status Copy/Paste: 0%

Automated Updates: Renovate Package Management: Poetry Git Hooks: pre-commit Commit Style: Conventional Commits Releases: Semantic Versioning Code Style: Prettier Code Style: EditorConfig Editor: Visual Studio Code

GitHub Action Optimized for Running ScribeMD/pre-commit-hooks

Install asdf, Node.js, Python, and Poetry; use Poetry to install pre-commit; run pre-commit hooks; and optionally use commitizen-action to bump the project version. Assume the presence of .tool-versions specifying versions for Node.js, Python, and Poetry as well as poetry.lock. Cache Poetry dependencies. Cache Node.js packages specified in .mega-linter.yaml, .pre-commit-config.yaml, and/or .pre-commit-hooks.yaml. Since pre-commit supports Docker, cache Docker images. Cache pre-commit hook environments. Set origin/HEAD to the default branch to support the commitizen-branch hook. Skip the commitizen-branch hook and no-commit-to-branch hook on main to avoid false positives. Finally, uninstall pre-commit hooks to avoid breaking subsequent Git commands. This relies on specifying default_install_hook_types in .pre-commit-config.yaml.

Usage

  • Commitizen relies on tags in order to perform an incremental release, and the commitizen-branch hook relies on origin/HEAD being set to the default branch, so you must pass fetch-depth: 0 to checkout.

  • Add the following step before your first use of Docker since rootless-docker is used to avoid permission issues:

    - name: Install and run pre-commit hooks.
      uses: ScribeMD/[email protected]

Inputs

Optional

bump

default: true

If true, run commitizen-action on push to main to commit a version bump and tag a release if there are any release-worthy changes. Uses your GITHUB_TOKEN, which must have write access to your repository.

Supported Runners

Please refer to README.md of ScribeMD/rootless-docker.

Permissions

The contents:write permission is required to bump the project version via Commitizen unless bump is false.

Changelog

Please refer to CHANGELOG.md.

pre-commit-action's People

Contributors

dependabot[bot] avatar kurt-von-laven avatar mwarres avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

renovate-bot

pre-commit-action's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • chore(deps): bump poetry from v1.8.2 to v1.8.3
  • chore(deps): bump pre-commit hook princetonuniversity/blocklint to v0.2.5
  • chore(engines): bump python from v3.12.2 to v3.12.3
  • fix(deps): bump actions/checkout action to v4.1.5
  • fix(deps): bump actions/setup-node action to v4.0.2
  • fix(deps): bump scribemd/slack-templates action to v0.6.38
  • chore(deps): bump node from v20.11.1 to v20.13.1
  • chore(deps): bump pre-commit from v3.6.2 to v3.7.0
  • chore(deps): bump pre-commit hook pre-commit/pre-commit-hooks to v4.6.0
  • chore(deps-dev): bump megalinter docker tag to v7.11.1
  • fix(deps): bump actions/setup-python action to v5.1.0
  • fix(deps): bump commitizen to v3.25.0 (commitizen, commitizen-tools/commitizen)
  • fix(deps): bump commitizen-tools/commitizen-action action to v0.21.0
  • fix(deps): bump ruby/setup-ruby action to v1.176.0
  • fix(deps): bump scribemd/docker-cache action to v0.5.0
  • fix(pkg-manager): bump asdf from v0.13.1 to v0.14.0
  • chore(deps): bump pre-commit hook frnmst/md-toc to v9.0.0
  • ๐Ÿ” Create all pending approval PRs at once ๐Ÿ”

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): lock file maintenance

Detected dependencies

asdf
.tool-versions
  • node 20.11.1
  • python 3.12.2
  • poetry 1.8.2
github-actions
.github/workflows/notify-assignee.yaml
  • ScribeMD/slack-templates 0.6.37@bea126c3915616204196f29d27d6ab9526d61a25
.github/workflows/notify-reviewers.yaml
  • ScribeMD/slack-templates 0.6.37@bea126c3915616204196f29d27d6ab9526d61a25
.github/workflows/test.yaml
  • actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
  • ScribeMD/pre-commit-action main
  • ScribeMD/slack-templates 0.6.37@bea126c3915616204196f29d27d6ab9526d61a25
  • ubuntu 22.04
action.yaml
  • actions/setup-dotnet v4.0.0@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
  • actions/setup-node v4.0.1@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8
  • actions/setup-python v5.0.0@0a5c61591373683505ea898e09a3ea4f39ef2b9c
  • ruby/setup-ruby v1.162.0@af848b40be8bb463a751551a1180d74782ba8a72
  • asdf-vm/actions v3.0.2@05e0d2ed97b598bfce82fd30daf324ae0c4570e6
  • actions/cache v4.0.2@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
  • asdf-vm/actions v3.0.2@05e0d2ed97b598bfce82fd30daf324ae0c4570e6
  • actions/cache v4.0.2@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
  • actions/cache v4.0.2@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
  • ScribeMD/rootless-docker 0.2.2@6bd157a512c2fafa4e0243a8aa87d964eb890886
  • ScribeMD/docker-cache 0.3.6@e53d303afe42d4c1ebeeb8ab0b4c47eba1bbf3e0
  • actions/cache v4.0.2@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
  • commitizen-tools/commitizen-action 0.20.0@bc2616fec6b3effc9ad20380f19550a8b18cdbdf
pep621
pyproject.toml
  • poetry-core ==1.9.0
poetry
pyproject.toml
  • python ==3.12.2
  • commitizen ==3.18.4
  • pre-commit ==3.6.2
pre-commit
.pre-commit-config.yaml
  • ScribeMD/pre-commit-hooks 0.16.3
  • frnmst/md-toc 8.2.3
  • pre-commit/pre-commit-hooks v4.5.0
  • PrincetonUniversity/blocklint v0.2.4
  • commitizen-tools/commitizen v3.18.4
  • jumanjihouse/pre-commit-hooks 3.0.0
regex
.github/renovate.json
  • ScribeMD/.github 0.14.16
action.yaml
  • asdf 0.13.1
  • asdf 0.13.1
.pre-commit-config.yaml
  • python 3.12.2
.pre-commit-config.yaml
  • MegaLinter v7.7.0
.mega-linter.yaml
  • ScribeMD/.github 0.14.16
action.yaml
  • commitizen 3.18.4

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.