diff --git a/.github/actions/retext-style-guide/action.yml b/.github/actions/retext-style-guide/action.yml index 492e8d735..0abfc02e4 100644 --- a/.github/actions/retext-style-guide/action.yml +++ b/.github/actions/retext-style-guide/action.yml @@ -28,9 +28,15 @@ inputs: reviewdog_flags: description: 'Additional reviewdog flags' default: '' + before_commit: + description: 'Commit SHA before you triggered the event' + default: '${{ github.event.before }}' + after_commit: + description: 'Commit SHA after you triggered the event' + default: '${{ github.sha }}' runs: using: 'docker' image: 'Dockerfile' branding: icon: 'check' - color: 'blue' \ No newline at end of file + color: 'blue' diff --git a/.github/actions/retext-style-guide/entrypoint.sh b/.github/actions/retext-style-guide/entrypoint.sh index fba219ff7..cca4a7916 100755 --- a/.github/actions/retext-style-guide/entrypoint.sh +++ b/.github/actions/retext-style-guide/entrypoint.sh @@ -17,4 +17,5 @@ find ${GITHUB_WORKSPACE} -type f -name '*.mdx' -exec quality-docs {} + \ -fail-on-error="${INPUT_FAIL_ON_ERROR}" \ -level="${INPUT_LEVEL}" \ ${INPUT_REVIEWDOG_FLAGS} \ - -tee \ No newline at end of file + -tee \ + -diff="git diff --unified=0 ${INPUT_BEFORE_COMMIT} ${INPUT_AFTER_COMMIT}" diff --git a/.github/workflows/retext-style-guide.yml b/.github/workflows/retext-style-guide.yml index 6f79a2474..7428673a6 100644 --- a/.github/workflows/retext-style-guide.yml +++ b/.github/workflows/retext-style-guide.yml @@ -5,9 +5,15 @@ jobs: name: runner / retext-style-guide runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: ./.github/actions/retext-style-guide with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review filter_mode: added + before_commit: ${{ github.event.before }} + after_commit: ${{ github.sha }} diff --git a/docs/api-docs/provider-apis/tax/overview.mdx b/docs/api-docs/provider-apis/tax/overview.mdx index 6573be202..190a0d28c 100644 --- a/docs/api-docs/provider-apis/tax/overview.mdx +++ b/docs/api-docs/provider-apis/tax/overview.mdx @@ -193,4 +193,4 @@ For Tax Provider API related questions, or to request set up of a new tax provid - [Get a Tax Provider Connection](/docs/rest-contracts/tax-app-connection#get-connection-status) - [Delete a Tax Provider Connection](/docs/rest-contracts/tax-app-connection#delete-a-connection) - [Update a Tax Provider Connection](/docs/rest-contracts/tax-app-connection#update-a-connection) - - [Tax Classes](/docs/rest-management/tax-classes) + - [Tax Classes](/docs/rest-management/tax-classes) \ No newline at end of file diff --git a/docs/api-docs/store-logs/store-logs.mdx b/docs/api-docs/store-logs/store-logs.mdx index b2ffdc7f4..b384068d9 100644 --- a/docs/api-docs/store-logs/store-logs.mdx +++ b/docs/api-docs/store-logs/store-logs.mdx @@ -397,4 +397,4 @@ Accept: application/json - [Store Logs Support Article](https://support.bigcommerce.com/s/article/Using-Store-Logs) ### Endpoint reference -- [Get system logs](/docs/rest-management/store-logs#get-system-logs) +- [Get system logs](/docs/rest-management/store-logs#get-system-logs) \ No newline at end of file diff --git a/docs/api-docs/store-management/shipping/shipper-hq.mdx b/docs/api-docs/store-management/shipping/shipper-hq.mdx index cfbee10cb..0a8b8c94e 100644 --- a/docs/api-docs/store-management/shipping/shipper-hq.mdx +++ b/docs/api-docs/store-management/shipping/shipper-hq.mdx @@ -117,4 +117,4 @@ Accept: application/json * [Product Metafield](/docs/rest-catalog/products/metafields#create-a-product-metafield) * [Variant Metafield](/docs/rest-catalog/product-variants/metafields#create-a-product-variant-metafield) ### Related articles -* [ShipperHQ](https://support.bigcommerce.com/s/article/ShipperHQ) (Knowledge Base) +* [ShipperHQ](https://support.bigcommerce.com/s/article/ShipperHQ) (Knowledge Base) \ No newline at end of file diff --git a/docs/api-docs/storefront/graphql/graphql-faceted-textual-search.mdx b/docs/api-docs/storefront/graphql/graphql-faceted-textual-search.mdx index 8b40cbfb9..a74e9e922 100644 --- a/docs/api-docs/storefront/graphql/graphql-faceted-textual-search.mdx +++ b/docs/api-docs/storefront/graphql/graphql-faceted-textual-search.mdx @@ -596,4 +596,4 @@ If a merchant has not enabled product filtering, you will receive an empty array ## Resources - [GraphQL Storefront API Overview](/docs/storefront/graphql) -- [GraphQL Storefront Playground](https://developer.bigcommerce.com/graphql-playground) +- [GraphQL Storefront Playground](https://developer.bigcommerce.com/graphql-playground) \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 4e3f8f486..8b32bcf62 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3368,4 +3368,4 @@ } } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 1f183f373..bbfcc3ff9 100644 --- a/package.json +++ b/package.json @@ -27,4 +27,4 @@ "eslint-plugin-mdx": "^2.0.5" }, "author": "Matthew Volk" -} +} \ No newline at end of file