Skip to content

Commit

Permalink
feat: run on more events
Browse files Browse the repository at this point in the history
Signed-off-by: gardar <[email protected]>
  • Loading branch information
gardar committed Feb 17, 2023
1 parent 37c0844 commit cf2fcf1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ const {
findCommitsWithAssociatedPullRequests
} = require('release-drafter-github-app/lib/commits')
const { incrementVersion } = require('./lib/version')
const { runnerIsActions } = require('release-drafter-github-app/lib/utils')

module.exports = app => {
app.on('push', async context => {
const event = runnerIsActions() ? '*' : 'push'
app.on(event, async (context) => {
log({ app, context, message: 'init' })
let config = await getConfig({
app,
Expand Down

0 comments on commit cf2fcf1

Please sign in to comment.