devops-infra/GitHub Action for creating Pull Requests
GitHub Action that will create a pull request from the current branch
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub token | yes | — |
| repository | Repository in owner/name format used for API calls and git remote auth (defaults to current repository) | no | "" |
| repository_path | Relative path under GITHUB_WORKSPACE to the checked-out repository (use when actions/checkout path is set) | no | . |
| source_branch | Name of the source branch | no | "" |
| target_branch | Name of the target branch | no | master |
| title | Pull request title | no | "" |
| template | Template file location | no | "" |
| body | Pull request body | no | "" |
| reviewer | Reviewer's username | no | "" |
| assignee | Assignee's usernames | no | "" |
| label | Labels to apply, coma separated | no | "" |
| create_missing_labels | Whether to create labels that do not already exist before creating the PR | no | false |
| milestone | Milestone | no | "" |
| project | GitHub Project title to add the pull request to | no | "" |
| draft | Whether to mark it as a draft | no | false |
| old_string | Old string for the replacement in template | no | "" |
| new_string | New string for the replacement in the template | no | "" |
| get_diff | Whether to inject difference into template | no | false |
| ignore_users | List of users to ignore, coma separated | no | dependabot |
| allow_no_diff | Allows to continue on merge commits with no diffs | no | false |
| max_body_bytes | Maximum PR body size in bytes before overflow is moved into managed comments | no | 65000 |
| max_diff_lines | Maximum lines per generated diff section (0 means unlimited) | no | 0 |
Outputs
| name | description |
|---|---|
| url | Pull request URL |
| pr_number | Pull request number |