Skip to content

Fix bot trigger event#6896

Merged
nicoddemus merged 1 commit intopytest-dev:masterfrom
nicoddemus:release-trigger
Mar 11, 2020
Merged

Fix bot trigger event#6896
nicoddemus merged 1 commit intopytest-dev:masterfrom
nicoddemus:release-trigger

Conversation

@nicoddemus
Copy link
Member

Issue events don't contain a 'comment' entry:
https://developer.github.com/v3/issues/events/#response-2

Issue comments also contain the original issue body:
https://developer.github.com/v3/activity/events/types/#issuecommentevent

That's why it was triggering even for comments on the issue.

Also changed to startsWith because there's no need to support
the command anywhere in the body IMO.

Fix #6895

Issue events don't contain a 'comment' entry:
https://developer.github.com/v3/issues/events/#response-2

Issue comments also contain the original issue body:
https://developer.github.com/v3/activity/events/types/#issuecommentevent

That's why it was triggering even for comments on the issue.

Also changed to startsWith because there's no need to support
the command anywhere in the body IMO.

Fix pytest-dev#6895
@nicoddemus nicoddemus merged commit e1b3a68 into pytest-dev:master Mar 11, 2020
@nicoddemus nicoddemus deleted the release-trigger branch March 11, 2020 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review release bot trigger event

2 participants