justindfuller/github-action-lock-branch
Github Action to Lock or Unlock a Branch
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| owner | The owner of repository to Lock or Unlock. Inferred from current repository if not provided. | no | — |
| repository | The repository to Lock or Unlock. Inferred from current repository if not provided. | no | — |
| branch | The Branch to Lock or Unlock. Inferred from current branch if not provided. | yes | — |
| lock | To Lock or Unlock (true or false) | yes | — |
| token | The Personal Access Token (PAT) that gives access to Lock/Unlock the branch. | yes | — |
Outputs
| name | description |
|---|---|
| repository | The repository locked or unlocked |
| branch | The branch locked or unlocked. |
| locked | True if the branch is locked. False if the branch is unlocked. |
| unlocked | True if the branch is unlocked. False if the branch is locked. |
| changed | True if the branch was changed. False if it remained the same. |
| success | True if the change succeeded or no change happened. False if a failure occured. |
| failure | True if the change did not succeed. False if no failure occured. |