Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,18 +325,6 @@ autolabeler:
The tool will detect the capitalization style from these files and apply
it consistently to normalized commit messages.

## Exit Codes

The CLI tool uses specific exit codes to signal different types of failures,
making it easier to handle errors in automation and CI/CD pipelines:

| Exit Code | Description | Common Causes |
|-----------|-------------|---------------|
| `0` | Success | Operation completed |
| `1` | General runtime failure | Submission pipeline errors, Git operations failed, network issues, unhandled exceptions |
| `2` | Configuration or validation error | Invalid configuration parameters, missing required settings, empty PR context |
| `3` | Duplicate detection blocked submission | Similar change already exists in Gerrit and `ALLOW_DUPLICATES` is `false` |

### Example Usage in CI/CD

```bash
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ runs:
- name: "Get ticket from JSON lookup table"
if: ${{ inputs.ISSUE_ID == '' && inputs.ISSUE_ID_LOOKUP == 'true' }}
id: json-lookup
uses: lfit/releng-reusable-workflows/.github/actions/json-key-value-lookup-action@main
uses: lfreleng-actions/json-key-value-lookup-action@ed95008d49173ba450865d6c8faad0aabf07a39c # v0.1.0
with:
json: ${{ inputs.ISSUE_ID_LOOKUP_JSON }}
key: ${{ env.key }}
Expand Down
Loading