From 4df646efe6c68f96401c6473800b64520aed6f71 Mon Sep 17 00:00:00 2001 From: Ngan Pham Date: Sat, 27 Feb 2021 11:49:29 -0800 Subject: [PATCH 1/2] Add support for step notify attribute --- .buildkite/pipelines/buildkite-builder/pipeline.rb | 2 ++ lib/buildkite/pipelines/steps/trigger.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/.buildkite/pipelines/buildkite-builder/pipeline.rb b/.buildkite/pipelines/buildkite-builder/pipeline.rb index d4ed3043..d9849e51 100644 --- a/.buildkite/pipelines/buildkite-builder/pipeline.rb +++ b/.buildkite/pipelines/buildkite-builder/pipeline.rb @@ -18,5 +18,7 @@ message: "${BUILDKITE_MESSAGE}", commit: "${BUILDKITE_COMMIT}", branch: "${BUILDKITE_BRANCH}" + notify \ + github_commit_status: "Showcase Pipeline!" end end diff --git a/lib/buildkite/pipelines/steps/trigger.rb b/lib/buildkite/pipelines/steps/trigger.rb index 995a672f..d6dcaa09 100644 --- a/lib/buildkite/pipelines/steps/trigger.rb +++ b/lib/buildkite/pipelines/steps/trigger.rb @@ -16,6 +16,7 @@ class Trigger < Abstract attribute :branches attribute :async attribute :build + attribute :notify, append: true end end end From dc54d0d0fb26a365b2077fccefe3b097fb35aecf Mon Sep 17 00:00:00 2001 From: Ngan Pham Date: Sat, 27 Feb 2021 12:01:09 -0800 Subject: [PATCH 2/2] Fix --- .buildkite/pipelines/buildkite-builder/pipeline.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildkite/pipelines/buildkite-builder/pipeline.rb b/.buildkite/pipelines/buildkite-builder/pipeline.rb index d9849e51..1933d835 100644 --- a/.buildkite/pipelines/buildkite-builder/pipeline.rb +++ b/.buildkite/pipelines/buildkite-builder/pipeline.rb @@ -19,6 +19,8 @@ commit: "${BUILDKITE_COMMIT}", branch: "${BUILDKITE_BRANCH}" notify \ - github_commit_status: "Showcase Pipeline!" + github_commit_status: { + context: "Showcase Pipeline!" + } end end