Skip to content

Commit

Permalink
Fix filtering only participating notifications.
Browse files Browse the repository at this point in the history
The actual query parameter was missing.
  • Loading branch information
daniel-k authored Nov 18, 2024
1 parent e0cf74b commit 3873690
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/typescript/client/GitHubClientImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class GitHubClientImpl implements GitHubClient {
public async listThreads(showParticipatingOnly: boolean = false): Promise<GitHub.Thread[]> {
const response = await this.doRequest(
HttpMethod.GET,
`https://${this.baseUrl}/notifications?${showParticipatingOnly.toString()}`,
`https://${this.baseUrl}/notifications?participating=${showParticipatingOnly.toString()}`,
[HttpStatus.Ok]
);

Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/client/github-client-scenarios.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fetch-all-threads": {
"request": {
"url": "https://api.github.com/notifications?false",
"url": "https://api.github.com/notifications?participating=false",
"method": "GET",
"headers": {
"Authorization": "Bearer fake-token",
Expand Down Expand Up @@ -183,7 +183,7 @@
},
"fetch-threads-fails": {
"request": {
"url": "https://api.github.com/notifications?false",
"url": "https://api.github.com/notifications?participating=false",
"method": "GET",
"headers": {
"Authorization": "Bearer fake-token",
Expand Down

0 comments on commit 3873690

Please sign in to comment.