somaz94/Extract Commit Action
Extracts information from commit messages. Defaults output variable name to "ENVIRONMENT" if not specified.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| commit_limit | Number of commits to retrieve. | yes | — |
| pretty | Whether to use pretty format for git log. | no | false |
| key_variable | The name of the key variable to set, defaults to "ENVIRONMENT". | no | ENVIRONMENT |
| extract_command | The command to use for extracting information from commit messages. | no | — |
| extract_pattern | Regex pattern to extract information from commit messages (safer alternative to extract_command). Cannot be used together with extract_command. | no | — |
| commit_range | Git commit range (e.g., "HEAD~5..HEAD", "v1.0.0..v1.1.0"). Takes priority over commit_limit when specified. | no | — |
| fail_on_empty | Whether to fail the action if no environment information is extracted. | no | false |
| output_format | Format of the output (json, csv, text). Defaults to text. | no | text |
| debug | Enable debug mode for verbose output. | no | false |
| timeout | Timeout in seconds for git and extract commands. | no | 30 |
Outputs
| name | description |
|---|---|
| key_variable | Extracted output key variable information. |
| value_variable | Extracted output value variable information. |
| match_count | Number of extracted matches. |