Drone plugins > PR Sizer
github.svg

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

    stringrequired

    GitHub 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 recommended

    Default: none

  • pr_number

    stringrequired

    the pull request number to label

    Default: none

  • owner

    stringrequired

    the owner of the repository where the pull request is located

    Default: none

  • repo

    stringrequired

    the repository where the pull request is located

    Default: none