Commit 2488a2b
committed
jenkins: parse PR number into a number while extracting from git ref
Primarily done because the GraphQL client validation done when fetching
existing bot comments, exploded because an invalid `Int!` value was
provided:
```
00:42:03.038Z ERROR bot: Error while creating comment on GitHub (req_id=baae5340-8be1-11e9-a4d0-856e0a231c31)
GraphqlError: Variable number of type Int! was provided invalid value
at request.then.response (/home/../node_modules/@octokit/graphql/lib/graphql.js:31:15)
```
Doing an explicit `string -> number` convertion when extracting the
PR number from the related git ref hopefully fixes this error, since it
*should* be a valid `Int!` now.1 parent 98f7322 commit 2488a2b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments