diff --git a/README.md b/README.md index 79ad7a2..4067502 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ jobs: api_base: https://api.codeant.ai platform: github base_url: https://github.com + module: backend # Optional: for monorepo setups ``` ## Inputs @@ -67,6 +68,7 @@ jobs: | `api_base` | CodeAnt AI API base URL | No | `https://api.codeant.ai` | | `platform` | Git platform (github, gitlab, bitbucket) | No | `github` | | `base_url` | Base URL of the git platform | No | `https://github.com` | +| `module` | Module name for monorepo setups (optional) | No | `''` | ## Supported Coverage Formats diff --git a/action.yml b/action.yml index 1fd53ee..7d26955 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,10 @@ inputs: description: 'Base URL of the git platform' required: false default: 'https://github.com' + module: + description: 'Module name for monorepo setups (optional)' + required: false + default: '' runs: using: 'composite' @@ -60,6 +64,7 @@ runs: COVERAGE_FILE: ${{ inputs.coverage_file }} PLATFORM: ${{ inputs.platform }} BASE_URL: ${{ inputs.base_url }} + MODULE: ${{ inputs.module }} run: | bash upload_coverage.sh \ -t "$ACCESS_TOKEN" \ @@ -68,4 +73,5 @@ runs: -f "$COVERAGE_FILE" \ -p "$PLATFORM" \ -b "$BRANCH" \ - -u "$BASE_URL" + -u "$BASE_URL" \ + -m "$MODULE"