|
| 1 | +# Workflow template imported and updated from: |
| 2 | +# https://github.com/dotnet/issue-labeler/wiki/Onboarding |
| 3 | +# |
| 4 | +# See labeler.md for more information |
| 5 | +# |
1 | 6 | # Train the Issues and Pull Requests models for label prediction
|
2 | 7 | name: "Labeler: Training"
|
3 | 8 |
|
|
29 | 34 | description: "Max number of items to download for training/testing the model (newest items are used). Defaults to the max number of pages times the page size."
|
30 | 35 | type: number
|
31 | 36 | page_size:
|
32 |
| - description: "Number of items per page in GitHub API requests. Defaults to 100 for issues, 25 for pull requests." |
| 37 | + description: "Number of items per page in GitHub API requests. Defaults to 100 for issues. Always uses 1 for pull requests." |
33 | 38 | type: number
|
34 | 39 | page_limit:
|
35 | 40 | description: "Maximum number of pages to download for training/testing the model. Defaults to 1000 for issues, 4000 for pull requests."
|
|
84 | 89 | repository: ${{ env.REPOSITORY }}
|
85 | 90 | label_prefix: ${{ env.LABEL_PREFIX }}
|
86 | 91 | limit: ${{ env.LIMIT }}
|
87 |
| - page_size: ${{ env.PAGE_SIZE }} |
88 |
| - page_limit: ${{ env.PAGE_LIMIT }} |
| 92 | + page_size: 1 # This repository can only successfully download pulls one at a time due to GitHub's API performance |
| 93 | + page_limit: 10000 # Download the newest 10,000 pull requests |
89 | 94 | excluded_authors: ${{ env.EXCLUDED_AUTHORS }}
|
90 | 95 | env:
|
91 | 96 | GITHUB_TOKEN: ${{ github.token }}
|
@@ -154,8 +159,8 @@ jobs:
|
154 | 159 | label_prefix: ${{ env.LABEL_PREFIX }}
|
155 | 160 | threshold: ${{ env.THRESHOLD }}
|
156 | 161 | limit: ${{ env.LIMIT }}
|
157 |
| - page_size: ${{ env.PAGE_SIZE }} |
158 |
| - page_limit: ${{ env.PAGE_LIMIT }} |
| 162 | + page_size: 1 # This repository can only successfully download pulls one at a time due to GitHub's API performance |
| 163 | + page_limit: 10000 # Download the newest 10,000 pull requests |
159 | 164 | excluded_authors: ${{ env.EXCLUDED_AUTHORS }}
|
160 | 165 | env:
|
161 | 166 | GITHUB_TOKEN: ${{ github.token }}
|
0 commit comments