Skip to content

Commit

Permalink
fix: fix repolinter issue search only finding open issues
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Dec 10, 2020
1 parent 0c8803b commit 8753b7d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions __tests__/createOrUpdateIssue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ describe('createOrUpdateIssue', () => {
atLeastObject({
labels: config.labelName,
creator: config.selfUsername,
state: 'all',
sort: 'created'
})
)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/createorUpdateIssue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export async function findRepolinterIssue(
repo: options.repo,
creator: options.selfUsername,
labels: options.labelName,
state: 'all',
sort: 'created',
direction: 'desc'
})
Expand Down
4 changes: 2 additions & 2 deletions src/entry.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import run from './main'

/**
* @file This file serves as the "entry" you can check out main.ts for the
* actual "main" function.
* This file serves as the "entry" you can check out main.ts for the actual
* "main" function.
*/

run()
6 changes: 3 additions & 3 deletions src/getOctokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {Octokit as ActionKit} from '@octokit/action'
import {retry} from '@octokit/plugin-retry'

/**
* @file This file serves as a centralized location to setup Octokit with the
* appropriate plugins and authentication. All Octokit instances in this
* action should come from this file to prevent type conflicts.
* This file serves as a centralized location to setup Octokit with the
* appropriate plugins and authentication. All Octokit instances in this action
* should come from this file to prevent type conflicts.
*/

// strip plugin types to make testing easier
Expand Down

0 comments on commit 8753b7d

Please sign in to comment.