diff --git a/cmd/drone-github-comment/drone-github-comment b/cmd/drone-github-comment/drone-github-comment new file mode 100755 index 0000000..5c0817f Binary files /dev/null and b/cmd/drone-github-comment/drone-github-comment differ diff --git a/plugin/impl.go b/plugin/impl.go index 4373e4f..56d6753 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -27,7 +27,7 @@ type Settings struct { func (p *Plugin) Validate() error { var err error - if p.pipeline.Build.Event != "pull" { + if p.pipeline.Build.Event != "pull_request" { return fmt.Errorf("github comment plugin is only available for pull requests") }