We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2cd3a commit 85d09e0Copy full SHA for 85d09e0
.github/actions/list-pr/action.yml
@@ -34,7 +34,7 @@ runs:
34
token: ${{ inputs.token }}
35
result-encoding: string
36
script: |
37
- const resp = await github.rest.pulls.list({
+ const resp = await github.paginate(github.rest.pulls.list, {
38
owner: "pytorch",
39
repo: "pytorch",
40
state: "open",
@@ -49,11 +49,6 @@ runs:
49
? input_labels.split(/[,\n]/).map(label => label.trim())
50
: [];
51
52
- core.info(`timeRange: ${timeRange}`);
53
- core.info(`sinceTime: ${sinceTime}`);
54
- core.info(`labels: ${labels}`);
55
- core.info(`resp: ${resp.data}`);
56
-
57
const prs = resp.data.filter(pr => {
58
const hasLabel = labels.length === 0
59
|| labels.every(label => pr.labels.some(prLabel => prLabel.name === label));
0 commit comments