Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Allow multiple watch paths for single target #10

Merged
merged 1 commit into from
Feb 7, 2019

Conversation

elliott-davis
Copy link
Contributor

Sometimes you'll want to trigger a single pipeline based on multiple
paths not sharing a common root. This change allows you to specify
an array of paths to watch for a single target in addition to preserving
the old behavior of a single string.

I believe this change also unsurfaced a bug with the existing diff tests
where buildkite-agent pipeline upload was expected to be called in the
tests but shouldn't acutally be called based on the code in the command
hook.

Signed-off-by: Elliott Davis elliott@excellent.io

lib/shared.bash Outdated Show resolved Hide resolved
Sometimes you'll want to trigger a single pipeline based on multiple
paths not sharing a common root. This change allows you to specify
an array of paths to watch for a single target in addition to preserving
the old behavior of a single string.

I believe this change also unsurfaced a bug with the existing diff tests
where `buildkite-agent pipeline upload` was expected to be called in the
tests but shouldn't acutally be called based on the code in the command
hook.

Signed-off-by: Elliott Davis <elliott@excellent.io>
Copy link
Contributor

@jquick jquick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @elliott-davis !

@chronotc
Copy link
Collaborator

chronotc commented Feb 7, 2019

Thanks @elliott-davis! 👋

@chronotc chronotc merged commit a12af30 into adikari:master Feb 7, 2019
@adikari
Copy link
Owner

adikari commented Apr 16, 2021

@all-contributors please add @elliott-davis for code, test and idea

@allcontributors
Copy link
Contributor

@adikari

I've put up a pull request to add @elliott-davis! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants