broadshield/Pull Release Label Toggle
Creates or updates a PR label based on Success or Failure of GitHub Action Steps
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| status_true_message | This is a word like Passing, Success, Found, or 👍 | no | — |
| status_false_message | This is a word like Error, Failure, Success, Not Found, or 👎 | no | — |
| label_prefix | The prefix of the label to toggle like Unit Tests, DB Dump | no | — |
| status | This is a boolean status that can be passed in to override the detected status. | no | false |
| github_token | The GitHub token to use for authentication. | no | ${{github.token}} |
| pr_number | The PR number to change the labels on. This is used when the action is triggered by something other than a PR such as a PR comment, or a push, or anything else. | no | ${{github.number}} |
| repository | If not provided, this is the same as github.repository i.e: The owner and repository name. For example, Codertocat/Hello_World | no | — |
| generate_only | If true, do not update the label, just output the generated name | no | false |
| use_emoji | Switch the default `Success` to `✅` and `Failed` to `❌` | no | false |
| use_job_name_as_prefix | the label prefix will be generated from the current action's job name: underscores and hyphens are turned to spaces, first letter of each word is capitalized. Means the `label_prefix` can be empty. `unit_tests` -> `Unit Tests` `spellcheck` -> `Spellcheck` | no | false |
Outputs
| name | description |
|---|---|
| add_label_name | The label name to add |
| remove_label_name | The label name to remove |
| repository | The repository to update |
| pr_number | The pull request that is updated |