maxisam/Path Labeler
Add labels based on the paths of modified files
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| authToken | The GitHub token | yes | — |
| prNumber | The pull request number | no | ${{ github.event.pull_request.number || github.event.number }} |
| basePaths | The base path to match like path1|path2 | yes | — |
| prefixes | Prefix to repo name to be used in label, like prefix1|prefix2 for 2 layers | no | — |
| delimiter | Delimiter between prefix and label(e.g., space) | no | — |
| layers | The number of layers to use for the label | no | 1 |
| debugShowPaths | Show all PR paths in debug mode | no | false |
| isDryRun | Don't push labels to github | no | false |
Outputs
| name | description |
|---|---|
| paths | The unique paths of modified files |
| labels | The labels to add to the pull request |