Drone plugins > PR Sizer
PR Sizer
by parraletz
This plugin is used to label the pull request opened acording to the modified, deleted license of the code.
Example
kind: pipeline
type: docker
name: default
steps:
- name: label-pr-size
image: parraletz/pr-sizer
settings:
github_token: xxxxxxxx
pr_number: 11
owner: parraletz
repo: pr-sizer
when:
event: pull_request
action: opened
Properties
github_token
stringrequiredGitHub oauth token with public_repo or repo permission. If you create your token, ensure you select the correct scope. For private repositories you have to select repo while public repositories only requires public_repo.
Secret recommendedDefault: none
pr_number
stringrequiredthe pull request number to label
Default: none
owner
stringrequiredthe owner of the repository where the pull request is located
Default: none
repo
stringrequiredthe repository where the pull request is located
Default: none