mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-06 17:40:58 +00:00
fix: the number in the github event is of type number (#1252)
* fix: the number in the github event is of type number The go %s formattig option outputs the type if the given input value is not of type string. * test: update test data as well * fix: use floats
This commit is contained in:
parent
09125b9f80
commit
d1a86efe94
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ func TestSetRefAndSha(t *testing.T) {
|
|||
{
|
||||
eventName: "pull_request",
|
||||
event: map[string]interface{}{
|
||||
"number": "1234",
|
||||
"number": 1234.,
|
||||
},
|
||||
ref: "refs/pull/1234/merge",
|
||||
sha: "1234fakesha",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue