Skip to content

Commit

Permalink
Merge branch 'master' into feat/9215/commit-activity-author-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jNullj committed Jun 14, 2023
2 parents 7b46dd9 + 35dfd75 commit 713374a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion services/github/github-commit-activity.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const schema = Joi.object({
history: Joi.object({
totalCount: nonNegativeInteger,
}).required(),
}),
}).allow(null),
}).required(),
}).required(),
}).required()
Expand Down
7 changes: 7 additions & 0 deletions services/github/github-commit-activity.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ t.create('commit activity (repo not found)')
message: 'repo not found',
})

t.create('commit activity (invalid branch)')
.get('/w/badges/shields/invalidBranchName.json')
.expectBadge({
label: 'commit activity',
message: 'invalid branch',
})

// test for error handling of author filter as it uses REST and not GraphQL
t.create('commit activity (repo not found)')
.get('/w/badges/helmets.json?authorFilter=zaphod')
Expand Down

0 comments on commit 713374a

Please sign in to comment.