Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
cory-miller committed Jun 20, 2022
2 parents 69c1cc9 + b9ccbf0 commit 736a97e
Show file tree
Hide file tree
Showing 18 changed files with 4,039 additions and 1,627 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ updates:
- package-ecosystem: 'npm'
# Look for `package.json` and `lock` files in the `root` directory
directory: '/'
# Check the npm registry for updates every day (weekdays)
# Check the npm registry for updates once a week (Monday)
schedule:
interval: 'daily'
interval: 'weekly'

- package-ecosystem: 'github-actions'
directory: '/'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set Node.js 12.x
- name: Set Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Install dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion __tests__/any-of-labels.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ class IssuesProcessorBuilder {
issue.updated_at ?? new Date().toDateString(),
issue.created_at ?? new Date().toDateString(),
!!issue.pull_request,
issue.labels ? issue.labels.map(label => label.name) : []
issue.labels ? issue.labels.map(label => label.name || '') : []
)
);

Expand Down
2 changes: 1 addition & 1 deletion __tests__/classes/issues-processor-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class IssuesProcessorMock extends IssuesProcessor {
options: IIssuesProcessorOptions,
getIssues?: (page: number) => Promise<Issue[]>,
listIssueComments?: (
issueNumber: number,
issue: Issue,
sinceDate: string
) => Promise<IComment[]>,
getLabelCreationDate?: (
Expand Down
2 changes: 1 addition & 1 deletion __tests__/exempt-draft-pr.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class IssuesProcessorBuilder {
issue.updated_at ?? new Date().toDateString(),
issue.created_at ?? new Date().toDateString(),
!!issue.pull_request,
issue.labels ? issue.labels.map(label => label.name) : []
issue.labels ? issue.labels.map(label => label.name || '') : []
)
);

Expand Down
2 changes: 1 addition & 1 deletion __tests__/only-labels.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ class IssuesProcessorBuilder {
issue.updated_at ?? new Date().toDateString(),
issue.created_at ?? new Date().toDateString(),
!!issue.pull_request,
issue.labels ? issue.labels.map(label => label.name) : []
issue.labels ? issue.labels.map(label => label.name || '') : []
)
);

Expand Down
2 changes: 1 addition & 1 deletion __tests__/remove-stale-when-updated.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ class IssuesProcessorBuilder {
issue.updated_at ?? new Date().toDateString(),
issue.created_at ?? new Date().toDateString(),
!!issue.pull_request,
issue.labels ? issue.labels.map(label => label.name) : []
issue.labels ? issue.labels.map(label => label.name || '') : []
)
);

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,5 @@ outputs:
staled-issues-prs:
description: 'List of all staled issues and pull requests.'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
4,283 changes: 3,271 additions & 1,012 deletions dist/index.js

Large diffs are not rendered by default.

0 comments on commit 736a97e

Please sign in to comment.