Skip to content

Conversation

@charlespwd
Copy link
Contributor

@charlespwd charlespwd commented Feb 28, 2022

In this PR, we add support for the base input argument. It can be a git branch, tag or commit sha.

When this is set as well as the token input argument, only the files containing diffs will receive GitHub check annotations.

This should help curb the 1000 annotation limit for folks dealing with legacy themes.

Example configuration:

  theme-check:
    name: Theme Check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Theme Check
        uses: shopify/theme-check-action@v1
        with:
          token: ${{ github.token }}
          base: main

Fixes #3

@charlespwd charlespwd force-pushed the fix/3-only-diff-files branch from 6da4334 to 7225f49 Compare February 28, 2022 18:54
@charlespwd charlespwd merged commit 53203ac into main Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Only lint modified files

1 participant