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.
- Host: GitHub
- URL: https://github.com/xide/github-action-pull-request-size
- Owner: Xide
- License: mit
- Created: 2019-08-26T19:36:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-26T21:13:36.000Z (almost 7 years ago)
- Last Synced: 2025-02-02T03:27:42.351Z (over 1 year ago)
- Topics: actions, github, label, pull-request, size
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).