Skip to content
activity

GitHub Action

Code Limit

v1 Latest version

Code Limit

activity

Code Limit

Your Refactoring Alarm ⏰

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Code Limit

uses: getcodelimit/codelimit-action@v1

Learn more about this action in getcodelimit/codelimit-action

Choose a version

CodeLimit GitHub Action

Logo

Your Refactoring Alarm 🔔 As a GitHub Action

main codelimit

To run CodeLimit on every push and before every merge to main, append it to your GH Action workflow:

name: 'main'

on:
  push:
    branches: 
      - main
  pull_request:
    branches: 
      - main

jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
      - name: 'Checkout sources'
        uses: actions/checkout@v4

      - name: 'Run CodeLimit'
        uses: getcodelimit/codelimit-action@v1

Inputs

  • token:
    • Description: GitHub token for storing results
    • Required: false
    • Default: ${{ github.token }}
  • check:
    • Description: Check changed files
    • Required: false
    • Default: true
  • codelimit_version:
    • Desciption: CodeLimit version
    • Required: false
    • Default: 'latest'