suzuki-shunsuke/PR Branch Updater
Updates a pull request branch when it's too far behind the base branch, or when given files are outdated
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| files | Check if these files are updated in the base branch. To specify multiple files, separate them with a newline. Lines starting with '#' are ignored. Lines with only whitespace are ignored. Each line is a pattern of https://github.com/isaacs/minimatch Either `files` or `max_behind_by` must be specified. | yes | — |
| max_behind_by | Limit of behind_by. If the base branch is ahead of the head branch by at least `max_behind_by` commits, the branch is updated. For example, if max_behind_by is 0, the head branch must be up-to-date with the base branch. By default, there is no limit Either `files` or `max_behind_by` must be specified. | no | — |
| repository | A Pushed repository. By default, GITHUB_REPOSITORY is used. If the repository includes a slash (/), it is treated as a full repository name. Otherwise, it is treated as a repository name in the current owner. | no | — |
| pr_number | The pull request number. | no | — |
| github_token | GitHub Access Token. | no | — |
| default_github_token | A default GitHub Access Token. | no | ${{ github.token }} |
| app_id | GitHub App ID | no | — |
| app_private_key | GitHub App Private Key | no | — |
| csm_server | Server repository of csm-actions/update-branch-action. If the repository includes a slash (/), it is treated as a full repository name. Otherwise, it is treated as a repository name in the current owner. | no | — |
| csm_app_id | GitHub App ID for csm-actions/update-branch-action | no | — |
| csm_app_private_key | GitHub App Private Key for csm-actions/update-branch-action | no | — |
| update_if_300_files | Whether to update the branch if there are more than 300 files. This is necessary because GitHub API can't return more than 300 files. By default, this is true if the input files is set. Otherwise, this is false by default. | no | — |
Outputs
| name | description |
|---|---|
| updated | Whether the branch is updated. |