Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base input argument to only annotate diff'ed files #9

Merged
merged 3 commits into from
Feb 28, 2022

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