Skip to content

Tag PRs by size #915

@Flamefire

Description

@Flamefire

For the easyconfigs repo there already is a bot automatically tagging PRs by type.

I propose adding a bot to all repos that adds size tags.

I've seen those in other repos which results in tags like size: s, size: xl etc. based on number of files changed and number of changes.

This allows to easily filter PRs such that e.g. easy updates (small PRs) can be addressed quickly when maintainers don't have much time

There are github apps and actions (and this)

Example sizes from one config (min. number of changes for each size):

  "0": "XS",
  "10": "S",
  "30": "M",
  "100": "L",
  "500": "XL",
  "1000": "XXL"

For security it can be trivially implemented and/or integrated into the existing bot. git diff --shortstat outputs something like:

20 files changed, 92 insertions(+), 105 deletions(-)

That is easy enough to parse, even in pure bash

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions