We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13d6670 commit a6730ebCopy full SHA for a6730eb
src/pull/merged.js
@@ -29,7 +29,9 @@ module.exports.createTag = () => async context => {
29
// Only create tags on "master"
30
if (thread.base.ref !== context.payload.repository.default_branch) return
31
32
- const { data } = await context.github.repos.listTags(context.repo({ per_page: 5 }))
+ const { data } = await context.github.repos.listTags(context.repo({ per_page: 1 }))
33
+
34
+ if (!(data && data[0] && data[0].name)) return
35
36
const lastTag = data[0].name
37
0 commit comments