An open API service indexing awesome lists of open source software.

https://github.com/xide/github-action-pull-request-size

:octocat: GitHub Action for adding size labels on a pull request based on number of additions and deletions.
https://github.com/xide/github-action-pull-request-size

actions github label pull-request size

Last synced: about 2 months ago
JSON representation

:octocat: GitHub Action for adding size labels on a pull request based on number of additions and deletions.

Awesome Lists containing this project

README

          

# GitHub Action for Pull Request Size

This Action adds size labels on a pull request based on number of additions and deletions.

- `size/XS` - Sum of additions and deletions is less than or equal to 10.
- `size/S` - Sum of additions and deletions is less than or equal to 30.
- `size/M` - Sum of additions and deletions is less than or equal to 100.
- `size/L` - Sum of additions and deletions is less than or equal to 500.
- `size/XL` - Sum of additions and deletions is less than or equal to 1000.
- `size/XXL` - Sum of additions and deletions is greater than 1000.

## Usage

Example workflow:

```yaml
name: LabelPRSize

on: [pull_request]

jobs:
label-pr:
runs-on: ubuntu-latest
steps:
- uses: docker://sigbilly/github-action-pull-request-size:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```

## Acknowledgments

Forked from [@innovationnorway](https://github.com/innovationnorway) [`github-action-pull-request-size` repository](https://github.com/innovationnorway/github-action-pull-request-size), which is now archived.

## License

The Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE).