Skip to content

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

workflows

Bunch of re-useable workflows

Auto labeler

.github/workflows/auto_label.yml

This workflow will automatically label a PR with the appropriate labels based on the number of files changed within the PR.

You must define the labels to use and these labels must exist in your repo for adding to PRs

Three break points are defined:

  • Less than 10 files changed: Small
  • Between 10 and 50 files changed: Medium
  • More than 50 files changed: Large

TODO:

  • Make the breakpoints configurable
  • Determine label based off combination of files changed and number of lines changed
  • Better error handling
  • Handle more PR states than opened.

Example use:

name: Auto label PRs with size# Run only when PR openedon:
pull_request:
types: [ opened ]jobs:
call-label-workflow:
uses: saasaTom/workflows/.github/workflows/auto-label.yml@1c8c328091c41934f3907894481b40d2b65cffb2 #mainwith:
small_label: 🤩 small prmedium_label: 😅 medium prlarge_label: 🙃 large pr

About

Bunch of reuseable workflows

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors