-
Notifications
You must be signed in to change notification settings - Fork 451
Add experimental functionality for labelling PRs by their size #3218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
8c324fe
519594f
08e53be
f2f52d0
c13672e
e9daf5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| labeling: | ||
| applyCategoryLabels: true | ||
| categoryLabelPrefix: "size/" | ||
|
|
||
| commenting: | ||
| addCommentWhenScoreThresholdHasBeenExceeded: false | ||
|
|
||
| sizeup: | ||
| categories: | ||
| - name: extra small | ||
| lte: 10 | ||
| label: | ||
| name: XS | ||
| description: Should be very easy to review | ||
| color: 3cbf00 | ||
| - name: small | ||
| lte: 30 | ||
| label: | ||
| name: S | ||
| description: Should be easy to review | ||
| color: 5d9801 | ||
| - name: medium | ||
| lte: 100 | ||
| label: | ||
| name: M | ||
| description: Should be of average difficulty to review | ||
| color: 7f7203 | ||
| - name: large | ||
| lte: 500 | ||
| label: | ||
| name: L | ||
| description: May be hard to review | ||
| color: a14c05 | ||
| - name: extra large | ||
| label: | ||
| name: XL | ||
| description: May be very hard to review | ||
| color: c32607 | ||
| - name: extra extra large | ||
| label: | ||
| name: XXL | ||
| description: May be extremely hard to review | ||
| color: e50009 | ||
| ignoredFilePatterns: | ||
| - ".github/workflow/__*" | ||
| - "lib/**/*" | ||
| - "package-lock.json" | ||
| testFilePatterns: | ||
| - "**/*.test.ts" | ||
| scoring: | ||
| # This formula and the aliases below it are written in prefix notation. | ||
| # For an explanation of how this works, please see: | ||
| # https://github.com/lerebear/sizeup-core/blob/main/README.md#prefix-notation | ||
| formula: "- - + additions deletions comments whitespace" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| name: Label PRs by their size | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| - edited | ||
| - ready_for_review | ||
|
Comment on lines
+3
to
+10
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have other workflows with these (or mostly these) triggers. Could we add this as a job to e.g.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The PR checks also trigger on |
||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| sizeup: | ||
| name: Estimate reviewability | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Run sizeup | ||
| uses: lerebear/sizeup-action@b7beb3dd273e36039e16e48e7bc690c189e61951 | ||
|
henrymercer marked this conversation as resolved.
Outdated
|
||
| with: | ||
| token: "${{ secrets.GITHUB_TOKEN }}" | ||
| configuration-file-path: ".github/sizeup.yml" | ||
Uh oh!
There was an error while loading. Please reload this page.