-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: 'PRs Size Labeler' | ||
description: 'Sample GitHub Action to label a PR based on the amount of changes written in Go' | ||
inputs: | ||
github_token: | ||
description: 'GitHub token' | ||
required: true | ||
xs_max_size: | ||
description: 'Max size for a PR to be considered XS' | ||
required: false | ||
default: '10' | ||
s_max_size: | ||
description: 'Max size for a PR to be considered S' | ||
required: false | ||
default: '100' | ||
m_max_size: | ||
description: 'Max size for a PR to be considered M' | ||
required: false | ||
default: '500' | ||
l_max_size: | ||
description: 'Max size for a PR to be considered L' | ||
required: false | ||
default: '1000' | ||
fail_if_xl: | ||
description: 'Fail if the PR size is XL' | ||
required: false | ||
default: 'false' | ||
message_if_xl: | ||
description: 'Comment added if the PR size is XL' | ||
required: false | ||
default: '' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.GITHUB_TOKEN }} | ||
- ${{ inputs.xs_max_size }} | ||
- ${{ inputs.s_max_size }} | ||
- ${{ inputs.m_max_size }} | ||
- ${{ inputs.l_max_size }} | ||
- ${{ inputs.fail_if_xl }} | ||
- ${{ inputs.message_if_xl }} | ||
branding: | ||
icon: 'tag' | ||
color: 'green' |