ron96g/Go Monorepo Util
A GitHub Action to find Go modules in a monorepo affected by file changes between two commits. It identifies directly changed modules and their dependents.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| base-commit | Base commit SHA for diff | yes | — |
| head-commit | Head commit SHA for diff | yes | — |
| depth | Depth for the diff operation used to find changed files. | no | 1 |
| output-format | Output format for the list of affected modules (json or text). | no | json |
| file-pattern | Regex pattern for files to consider when detecting changes. Changes in matching files trigger module analysis. | no | ^.*(\.go|go\.mod|go\.sum)$ |
| verbose | Enable verbose output from the monutil tool. | no | false |
| debug | Enable debug output from the monutil tool. | no | false |
| version | The version (tag) of monutil to download (e.g., v1.0.0). Defaults to 'latest'. | no | latest |
| path-only | Output only the paths of the affected modules. | no | true |
Outputs
| name | description |
|---|---|
| changed-modules | The output from the monutil command. If format is json, this will be a JSON string of affected modules. If text, it will be multi-line text. |