Skip to content

Commit 7591433

Browse files
committed
update
1 parent 2432383 commit 7591433

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/actions/list-pr/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ runs:
3535
result-encoding: string
3636
script: |
3737
const resp = await github.rest.pulls.list({
38-
owner: inputs.owner,
39-
repo: inputs.repository,
38+
owner: ${{ inputs.owner }},
39+
repo: ${{ inputs.repository }},
4040
state: 'open',
4141
sort: 'created',
4242
per_page: 100
4343
});
4444
45-
const timeRange = parseInt(inputs.hours) * 60 * 60 * 1000;
45+
const timeRange = parseInt(${{ inputs.hours }}) * 60 * 60 * 1000;
4646
const sinceTime = new Date(Date.now() - timeRange).toISOString();
47-
const input_labels = inputs.labels;
47+
const input_labels = ${{ inputs.labels }};
4848
const labels = input_labels
4949
? input_labels.split(/,|\n/).map(label => label.trim())
5050
: [];
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Per PR'
1+
name: 'Dispatch PR events'
22

33
on:
44
pull_request:
@@ -35,7 +35,7 @@ jobs:
3535
hours: 24
3636

3737
dispatch-pr:
38-
name: 'Dispatch PR events for #${{ matrix.pr.number }}'
38+
name: 'Dispatch PR event - #${{ matrix.pr.number }}'
3939
runs-on: ubuntu-latest
4040
needs:
4141
- list-pr

0 commit comments

Comments
 (0)