Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync from upstream #1

Closed
wants to merge 107 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
d8a2cfd
build(deps-dev): bump eslint from 8.41.0 to 8.42.0 (#191)
dependabot[bot] Jun 4, 2023
424cc31
build(deps-dev): bump @typescript-eslint/parser from 5.59.7 to 5.59.8…
dependabot[bot] Jun 4, 2023
b4be6f9
build(deps-dev): bump @typescript-eslint/eslint-plugin (#194)
dependabot[bot] Jun 4, 2023
3f60f2e
build(deps-dev): bump eslint-plugin-github from 4.7.0 to 4.8.0 (#192)
dependabot[bot] Jun 4, 2023
2a00d30
build(deps-dev): bump @typescript-eslint/eslint-plugin (#195)
dependabot[bot] Jun 11, 2023
8cfbd20
build(deps-dev): bump @typescript-eslint/parser from 5.59.8 to 5.59.9…
dependabot[bot] Jun 11, 2023
85ebb99
build(deps-dev): bump @types/node from 18.16.16 to 18.16.17 (#196)
dependabot[bot] Jun 11, 2023
9a316e5
build(deps-dev): bump @typescript-eslint/parser from 5.59.9 to 5.59.1…
dependabot[bot] Jun 18, 2023
d0b5fa1
build(deps-dev): bump eslint from 8.42.0 to 8.43.0 (#199)
dependabot[bot] Jun 18, 2023
5707f66
build(deps-dev): bump @types/node from 18.16.17 to 18.16.18 (#200)
dependabot[bot] Jun 18, 2023
c38afb2
build(deps-dev): bump @typescript-eslint/eslint-plugin (#201)
dependabot[bot] Jun 18, 2023
2a7e4c8
build(deps-dev): bump eslint-plugin-jest from 27.2.1 to 27.2.2 (#202)
dependabot[bot] Jun 25, 2023
a23165a
build(deps-dev): bump @typescript-eslint/eslint-plugin (#203)
dependabot[bot] Jun 25, 2023
c819fd4
build(deps-dev): bump @typescript-eslint/parser from 5.59.11 to 5.60.…
dependabot[bot] Jun 25, 2023
2403b94
build(deps-dev): bump @types/node from 18.16.18 to 18.16.19 (#205)
dependabot[bot] Jul 2, 2023
1e1c3d7
build(deps-dev): bump @typescript-eslint/parser from 5.60.0 to 5.60.1…
dependabot[bot] Jul 2, 2023
2118242
build(deps-dev): bump eslint from 8.43.0 to 8.44.0 (#207)
dependabot[bot] Jul 2, 2023
c785c56
build(deps-dev): bump @typescript-eslint/eslint-plugin (#208)
dependabot[bot] Jul 2, 2023
5446ded
build(deps-dev): bump @typescript-eslint/eslint-plugin (#209)
dependabot[bot] Jul 9, 2023
aba4fd6
build(deps): bump tough-cookie from 4.1.2 to 4.1.3 (#211)
dependabot[bot] Jul 9, 2023
1b32fba
build(deps-dev): bump @typescript-eslint/parser from 5.60.1 to 5.61.0…
dependabot[bot] Jul 9, 2023
6f45e81
build(deps-dev): bump @typescript-eslint/eslint-plugin (#212)
dependabot[bot] Jul 16, 2023
8cb0b2f
build(deps-dev): bump eslint from 8.44.0 to 8.45.0 (#214)
dependabot[bot] Jul 16, 2023
9864a25
build(deps-dev): bump eslint-plugin-jest from 27.2.2 to 27.2.3 (#215)
dependabot[bot] Jul 16, 2023
9f99c49
build(deps-dev): bump @typescript-eslint/parser from 5.61.0 to 5.62.0…
dependabot[bot] Jul 16, 2023
b9c072f
build(deps-dev): bump eslint-plugin-github from 4.8.0 to 4.9.0 (#216)
dependabot[bot] Jul 16, 2023
435ae0b
build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 (#217)
dependabot[bot] Jul 18, 2023
9b8b1dd
build(deps-dev): bump @types/node from 18.16.19 to 18.17.0 (#218)
dependabot[bot] Jul 23, 2023
5b605dc
build(deps-dev): bump @types/node from 18.17.0 to 18.17.1 (#220)
dependabot[bot] Jul 30, 2023
5cea877
build(deps-dev): bump eslint from 8.45.0 to 8.46.0 (#221)
dependabot[bot] Jul 30, 2023
ea11398
build(deps-dev): bump @types/node from 18.17.1 to 18.17.3 (#222)
dependabot[bot] Aug 6, 2023
a0c44da
build(deps-dev): bump eslint from 8.46.0 to 8.47.0 (#224)
dependabot[bot] Aug 13, 2023
b7ae093
build(deps-dev): bump @types/node from 18.17.3 to 18.17.5 (#225)
dependabot[bot] Aug 13, 2023
d7a985b
build(deps-dev): bump @types/node from 18.17.5 to 18.17.6 (#226)
dependabot[bot] Aug 20, 2023
1eea97f
build(deps-dev): bump eslint from 8.47.0 to 8.48.0 (#227)
dependabot[bot] Aug 27, 2023
0895450
build(deps-dev): bump @types/node from 18.17.6 to 18.17.11 (#228)
dependabot[bot] Aug 27, 2023
c45a5b5
build(deps-dev): bump @types/node from 18.17.11 to 18.17.14 (#229)
dependabot[bot] Sep 3, 2023
8a12347
build(deps-dev): bump eslint-plugin-github from 4.9.0 to 4.10.0 (#230)
dependabot[bot] Sep 5, 2023
3b1a926
build(deps-dev): bump @types/node from 18.17.14 to 18.17.15 (#231)
dependabot[bot] Sep 10, 2023
01178ff
build(deps-dev): bump eslint from 8.48.0 to 8.49.0 (#232)
dependabot[bot] Sep 10, 2023
f9ef8de
build(deps-dev): bump @vercel/ncc from 0.36.1 to 0.38.0 (#233)
dependabot[bot] Sep 10, 2023
aa51b87
build(deps): bump actions/checkout from 3 to 4 (#234)
dependabot[bot] Sep 10, 2023
f15ece9
build(deps-dev): bump eslint-plugin-jest from 27.2.3 to 27.4.0 (#235)
dependabot[bot] Sep 17, 2023
00e79ec
build(deps): bump @actions/core from 1.10.0 to 1.10.1 (#236)
dependabot[bot] Sep 17, 2023
10e5fde
build(deps-dev): bump @types/node from 18.17.15 to 18.17.17 (#237)
dependabot[bot] Sep 17, 2023
f1dff65
build: update distribution (#238)
actions-bot Sep 17, 2023
cffcfe5
build(deps-dev): bump @types/node from 18.17.17 to 18.17.19 (#240)
dependabot[bot] Sep 24, 2023
08e585a
build(deps-dev): bump eslint from 8.49.0 to 8.50.0 (#239)
dependabot[bot] Sep 24, 2023
5e60cde
build(deps-dev): bump eslint-plugin-jest from 27.4.0 to 27.4.2 (#241)
dependabot[bot] Oct 1, 2023
c6a6847
build(deps-dev): bump @types/node from 18.17.19 to 18.18.1 (#243)
dependabot[bot] Oct 1, 2023
b301464
build(deps-dev): bump eslint-plugin-github from 4.10.0 to 4.10.1 (#242)
dependabot[bot] Oct 1, 2023
7cd92bf
build(deps-dev): bump eslint from 8.50.0 to 8.51.0 (#244)
dependabot[bot] Oct 8, 2023
5cf910b
build(deps-dev): bump @types/node from 18.18.1 to 18.18.4 (#245)
dependabot[bot] Oct 8, 2023
63a5b66
build(deps-dev): bump eslint-plugin-prettier from 5.0.0 to 5.0.1 (#247)
dependabot[bot] Oct 15, 2023
022bdd4
build(deps-dev): bump @types/node from 18.18.4 to 18.18.5 (#246)
dependabot[bot] Oct 15, 2023
6328129
build(deps-dev): bump @babel/traverse from 7.16.3 to 7.23.2 (#248)
dependabot[bot] Oct 17, 2023
8b41a50
build(deps-dev): bump eslint from 8.51.0 to 8.52.0 (#250)
dependabot[bot] Oct 22, 2023
e478959
build(deps-dev): bump eslint-plugin-jest from 27.4.2 to 27.4.3 (#251)
dependabot[bot] Oct 22, 2023
3f5eba4
build(deps-dev): bump @types/node from 18.18.5 to 18.18.6 (#249)
dependabot[bot] Oct 22, 2023
bc3fcb2
build(deps-dev): bump @vercel/ncc from 0.38.0 to 0.38.1 (#252)
dependabot[bot] Oct 22, 2023
cb01bae
build(deps): bump actions/setup-node from 3 to 4 (#253)
dependabot[bot] Oct 29, 2023
a5be738
build(deps-dev): bump @types/node from 18.18.6 to 18.18.7 (#254)
dependabot[bot] Oct 29, 2023
d743528
build(deps-dev): bump eslint-plugin-jest from 27.4.3 to 27.6.0 (#255)
dependabot[bot] Oct 29, 2023
8ac9186
build(deps-dev): bump eslint from 8.52.0 to 8.53.0 (#256)
dependabot[bot] Nov 5, 2023
d362b58
build(deps-dev): bump @types/node from 18.18.7 to 18.18.8 (#257)
dependabot[bot] Nov 5, 2023
7be7d6f
build(deps-dev): bump @types/node from 18.18.8 to 18.18.9 (#258)
dependabot[bot] Nov 12, 2023
9048b11
build(deps-dev): bump @types/node from 18.18.9 to 18.18.10 (#259)
dependabot[bot] Nov 19, 2023
fe91e25
build(deps-dev): bump prettier from 3.0.3 to 3.1.0 (#260)
dependabot[bot] Nov 19, 2023
69f6143
build(deps-dev): bump eslint from 8.53.0 to 8.54.0 (#261)
dependabot[bot] Nov 19, 2023
4eb324c
build(deps-dev): bump @types/node from 18.18.10 to 18.18.13 (#262)
dependabot[bot] Nov 26, 2023
ff67644
build(deps-dev): bump @types/node from 18.18.13 to 18.19.1 (#263)
dependabot[bot] Dec 3, 2023
36e987e
build(deps-dev): bump eslint from 8.54.0 to 8.55.0 (#264)
dependabot[bot] Dec 3, 2023
30f2c89
build(deps-dev): bump @types/node from 18.19.1 to 18.19.3 (#265)
dependabot[bot] Dec 10, 2023
62b8258
build(deps-dev): bump eslint from 8.55.0 to 8.56.0 (#269)
dependabot[bot] Dec 17, 2023
4df95d9
build(deps-dev): bump prettier from 3.1.0 to 3.1.1 (#268)
dependabot[bot] Dec 17, 2023
2d8734e
build(deps): bump actions/download-artifact from 3 to 4 (#266)
dependabot[bot] Dec 18, 2023
1f81991
build(deps-dev): bump eslint-plugin-prettier from 5.0.1 to 5.1.1 (#270)
dependabot[bot] Dec 24, 2023
3e2c601
build(deps-dev): bump @types/node from 18.19.3 to 18.19.4 (#271)
dependabot[bot] Dec 31, 2023
4541d1b
build(deps-dev): bump eslint-plugin-prettier from 5.1.1 to 5.1.2 (#272)
dependabot[bot] Dec 31, 2023
90d027d
build(deps-dev): bump eslint-plugin-jest from 27.6.0 to 27.6.1 (#273)
dependabot[bot] Jan 7, 2024
141f79c
build(deps-dev): bump @types/node from 18.19.4 to 18.19.6 (#274)
dependabot[bot] Jan 14, 2024
4c49b27
build(deps-dev): bump eslint-plugin-prettier from 5.1.2 to 5.1.3 (#275)
dependabot[bot] Jan 14, 2024
1950d48
build(deps-dev): bump prettier from 3.1.1 to 3.2.1 (#277)
dependabot[bot] Jan 14, 2024
663f5b8
build(deps-dev): bump eslint-plugin-jest from 27.6.1 to 27.6.3 (#276)
dependabot[bot] Jan 14, 2024
6f78139
build(deps-dev): bump prettier from 3.2.1 to 3.2.4 (#278)
dependabot[bot] Jan 21, 2024
e375408
build(deps-dev): bump @types/node from 18.19.6 to 18.19.8 (#279)
dependabot[bot] Jan 21, 2024
d5fe376
feat: update runtime to node 20 (#282)
peter-evans Jan 25, 2024
fc04cd1
fix: update update-major-version.yml to v3
peter-evans Jan 25, 2024
c8a5a62
docs: update readme
peter-evans Jan 25, 2024
a66f455
build(deps-dev): bump @types/node from 18.19.8 to 18.19.10 (#283)
dependabot[bot] Jan 28, 2024
b2a714e
build(deps-dev): bump @types/node from 18.19.10 to 18.19.14 (#284)
dependabot[bot] Feb 4, 2024
2af5839
build(deps): bump peter-evans/create-pull-request from 5 to 6 (#285)
dependabot[bot] Feb 4, 2024
3eb0fde
build(deps): bump peter-evans/slash-command-dispatch from 3 to 4 (#286)
dependabot[bot] Feb 4, 2024
5a23612
build(deps-dev): bump @types/node from 18.19.14 to 18.19.15 (#287)
dependabot[bot] Feb 11, 2024
f84ef0d
build(deps-dev): bump prettier from 3.2.4 to 3.2.5 (#288)
dependabot[bot] Feb 11, 2024
965ec67
build(deps-dev): bump eslint-plugin-jest from 27.6.3 to 27.9.0 (#289)
dependabot[bot] Feb 18, 2024
99388f0
build(deps-dev): bump @types/node from 18.19.15 to 18.19.17 (#290)
dependabot[bot] Feb 18, 2024
8186d8a
build(deps-dev): bump eslint from 8.56.0 to 8.57.0 (#291)
dependabot[bot] Feb 25, 2024
b5a4628
build(deps-dev): bump @types/node from 18.19.17 to 18.19.18 (#292)
dependabot[bot] Feb 25, 2024
0470bb8
build(deps-dev): bump @types/node from 18.19.18 to 18.19.21 (#293)
dependabot[bot] Mar 3, 2024
ab44313
build(deps-dev): bump eslint-plugin-github from 4.10.1 to 4.10.2 (#294)
dependabot[bot] Mar 3, 2024
caddf81
build(deps-dev): bump @types/node from 18.19.21 to 18.19.22 (#295)
dependabot[bot] Mar 10, 2024
7ec5a30
build(deps-dev): bump @types/node from 18.19.22 to 18.19.24 (#297)
dependabot[bot] Mar 17, 2024
12c311c
build(deps-dev): bump @types/node from 18.19.24 to 18.19.26 (#298)
dependabot[bot] Mar 24, 2024
82ff6db
build(deps-dev): bump @types/node from 18.19.26 to 18.19.28 (#300)
dependabot[bot] Mar 31, 2024
3eae4d3
feat: add the node_id to the available output (#299)
amonshiz Apr 2, 2024
bae218c
docs: update outputs with comment-node-id
peter-evans Apr 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 29 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: npm
- run: npm ci
- run: npm run build
- run: npm run format-check
- run: npm run lint
- run: npm run test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: action.yml
path: action.yml
Expand All @@ -40,14 +40,14 @@ jobs:
matrix:
target: [built, committed]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- if: matrix.target == 'built' || github.event_name == 'pull_request'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- if: matrix.target == 'built' || github.event_name == 'pull_request'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: action.yml
path: .
Expand All @@ -60,6 +60,8 @@ jobs:
body-includes: search string 1
- if: steps.fc1.outputs.comment-id != 620947762
run: exit 1
- if: steps.fc1.outputs.comment-node-id != 'MDEyOklzc3VlQ29tbWVudDYyMDk0Nzc2Mg=='
run: exit 1
- if: steps.fc1.outputs.comment-body != 'search string 1'
run: exit 1
- if: steps.fc1.outputs.comment-author != 'retepsnave'
Expand All @@ -73,6 +75,8 @@ jobs:
comment-author: retepsnave
- if: steps.fc2.outputs.comment-id != 620947762
run: exit 1
- if: steps.fc2.outputs.comment-node-id != 'MDEyOklzc3VlQ29tbWVudDYyMDk0Nzc2Mg=='
run: exit 1

- name: Find comment by body-includes and author
uses: ./
Expand All @@ -83,6 +87,8 @@ jobs:
body-includes: search string 1
- if: steps.fc3.outputs.comment-id != 620947858
run: exit 1
- if: steps.fc3.outputs.comment-node-id != 'MDEyOklzc3VlQ29tbWVudDYyMDk0Nzg1OA=='
run: exit 1

- name: No matching comment found
uses: ./
Expand All @@ -93,6 +99,8 @@ jobs:
body-includes: this string will not be found
- if: steps.fc4.outputs.comment-id != ''
run: exit 1
- if: steps.fc4.outputs.comment-node-id != ''
run: exit 1

- name: Find comment by body-includes (requiring pagination)
uses: ./
Expand All @@ -102,6 +110,8 @@ jobs:
body-includes: search string 2
- if: steps.fc5.outputs.comment-id != 703343658
run: exit 1
- if: steps.fc5.outputs.comment-node-id != 'MDEyOklzc3VlQ29tbWVudDcwMzM0MzY1OA=='
run: exit 1

- name: Find comment in merged PR
uses: ./
Expand All @@ -111,6 +121,8 @@ jobs:
body-includes: search string 3
- if: steps.fc6.outputs.comment-id != 703352283
run: exit 1
- if: steps.fc6.outputs.comment-node-id != 'MDEyOklzc3VlQ29tbWVudDcwMzM1MjI4Mw=='
run: exit 1

- name: Find the last comment by body-includes and author
uses: ./
Expand All @@ -122,6 +134,8 @@ jobs:
direction: last
- if: steps.fc7.outputs.comment-id != 771260630
run: exit 1
- if: steps.fc7.outputs.comment-node-id != 'MDEyOklzc3VlQ29tbWVudDc3MTI2MDYzMA=='
run: exit 1

- name: Find comment by body-regex
uses: ./
Expand All @@ -131,6 +145,8 @@ jobs:
body-regex: '^.*search string 1.*$'
- if: steps.fc8.outputs.comment-id != 620947762
run: exit 1
- if: steps.fc8.outputs.comment-node-id != 'MDEyOklzc3VlQ29tbWVudDYyMDk0Nzc2Mg=='
run: exit 1

- name: Find nth comment by body-includes
uses: ./
Expand All @@ -141,19 +157,21 @@ jobs:
nth: 2
- if: steps.fc9.outputs.comment-id != 703343294
run: exit 1
- if: steps.fc9.outputs.comment-node-id != 'MDEyOklzc3VlQ29tbWVudDcwMzM0MzI5NA=='
run: exit 1

package:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
commit-message: 'build: update distribution'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/slash-command-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Slash Command Dispatch
uses: peter-evans/slash-command-dispatch@v3
uses: peter-evans/slash-command-dispatch@v4
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
config: >
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-major-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:
type: choice
description: The major version tag to update
options:
- v2
- v3

jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
fetch-depth: 0
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The action will output the comment ID of the comment matching the search criteri

```yml
- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: 1
Expand All @@ -23,7 +23,7 @@ The action will output the comment ID of the comment matching the search criteri

```yml
- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: 1
Expand All @@ -34,7 +34,7 @@ The action will output the comment ID of the comment matching the search criteri

```yml
- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: 1
Expand All @@ -46,7 +46,7 @@ The action will output the comment ID of the comment matching the search criteri

```yml
- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: 1
Expand All @@ -57,7 +57,7 @@ The action will output the comment ID of the comment matching the search criteri

```yml
- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: 1
Expand All @@ -69,7 +69,7 @@ The action will output the comment ID of the comment matching the search criteri

```yml
- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: 1
Expand All @@ -92,7 +92,7 @@ The action will output the comment ID of the comment matching the search criteri

#### Outputs

The `comment-id`, `comment-body`, `comment-author` and `comment-created-at` of the matching comment found will be output for use in later steps.
The `comment-id`, `comment-node-id`, `comment-body`, `comment-author` and `comment-created-at` of the matching comment found will be output for use in later steps.
They will be empty strings if no matching comment was found.
Note that in order to read the step outputs the action step must have an id.

Expand All @@ -101,13 +101,14 @@ e.g. If `comment-id` is an empty string `steps.fc.outputs.comment-id == 0` evalu

```yml
- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: 1
body-includes: search string 1
- run: |
echo ${{ steps.fc.outputs.comment-id }}
echo ${{ steps.fc.outputs.comment-node-id }}
echo ${{ steps.fc.outputs.comment-body }}
echo ${{ steps.fc.outputs.comment-author }}
echo ${{ steps.fc.outputs.comment-created-at }}
Expand Down
19 changes: 19 additions & 0 deletions __test__/find.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -37,6 +38,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -60,6 +62,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -81,6 +84,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -104,6 +108,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -125,6 +130,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -148,6 +154,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -169,6 +176,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -190,6 +198,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -213,6 +222,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -234,6 +244,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -255,6 +266,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -276,6 +288,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -299,6 +312,7 @@ describe('findCommentPredicate tests', () => {
},
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
Expand All @@ -313,30 +327,35 @@ describe('findMatchingComment tests', () => {
const testComments = [
{
id: 1,
node_id: 'tornado',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
},
{
id: 2,
node_id: 'poppies',
body: `You've always had the power, my dear. You just had to learn it for yourself.`,
user: {login: 'glinda'},
created_at: '2020-01-01T00:00:00Z'
},
{
id: 3,
node_id: 'rubyslippers',
body: `I'll get you, my pretty, and your little dog too!`,
user: {login: 'wicked-witch'},
created_at: '2020-01-01T00:00:00Z'
},
{
id: 4,
node_id: 'auntieem',
body: `Toto, I've a feeling we're not in Kansas anymore.`,
user: {login: 'dorothy'},
created_at: '2020-01-01T00:00:00Z'
},
{
id: 5,
node_id: 'verybadwizard',
body: `I'll get you, my pretty, and your little dog too!`,
user: {login: 'wicked-witch'},
created_at: '2020-01-01T00:00:00Z'
Expand Down
Loading
Loading