Skip to content

Commit 0da5df6

Browse files
authored
Merge pull request #5232 from Eijebong/parseint-appid
Parse application id as an int before comparing while fetching checks
2 parents 9b142f5 + 9ccef22 commit 0da5df6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
audience: users
2+
level: patch
3+
---
4+
Fix the badge generation when using the badge API. It now works when deployed through helm too

services/github/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ test:
6767

6868
github:
6969
credentials:
70-
appId: 66666
70+
appId: '66666'
7171

7272
webhook:
7373
secret: ['abc123', 'def456']

services/github/src/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async function findTCChecks(github, owner, repo, branch, configuration) {
172172
}
173173
throw e;
174174
}
175-
return checks.filter(checkObject => checkObject.app.id === configuration.github.credentials.appId);
175+
return checks.filter(checkObject => checkObject.app.id === parseInt(configuration.github.credentials.appId, 10));
176176
}
177177

178178
/** API end-point for version v1/

0 commit comments

Comments
 (0)