Added the include pattern matching feature to the gh action

This commit is contained in:
Jimmy Royer 2024-09-05 17:57:16 -04:00
parent 89a44f2d65
commit 49d90aa697
9 changed files with 73 additions and 22 deletions

View file

@ -17,7 +17,11 @@ inputs:
description: "Base URL to the OpenAI API model (OpenAI or Azure)."
required: true
exclude:
description: "Glob patterns to exclude files from the diff analysis"
description: "Glob patterns to exclude files from the diff analysis. This has precedence over the `include` matches."
required: false
default: ""
include:
description: "Glob patterns to only include certain files from the diff analysis."
required: false
default: ""
runs:

View file

@ -22,4 +22,5 @@ jobs:
OPENAI_API_MODEL: ${{ vars.OPENAI_API_MODEL }}
OPENAI_API_VERSION: ${{ vars.OPENAI_API_VERSION }}
OPENAI_BASE_URL: ${{ vars.OPENAI_BASE_URL }}
exclude: "yarn.lock,dist/**"
exclude: "*lock*,dist/**,**/*.js,**/*.js.map"
include: "**/*.ts,**/*.yml"