Skip to content

[Bug]: bk build watch fails if project contains underscore #930

Description

@zenspider

Contact Details

this is github, right??

What happened?

I have a script that I run to watch and get notified when CI is done. It works on all of our projects except the one with an underscore in its name. Apparently the project slugs don't allow underscores?

# ...
proj=$(basename $PWD)
bk build watch --interval=3 -b $branch -p $proj && say "done" || say "failed"

begets:

Error: GET https://api.buildkite.com/v2/organizations/Modern-Treasury/pipelines/shared_gem/builds?branch%5B%5D=zenspider__shared_gem_zeitwerk&exclude_jobs=true&exclude_pipeline=true&per_page=1: 404 No pipeline found

so... if buildkite doesn't allow underscores, why not map the underscores to dashes in the cmdline tool the way you do on the website?

Version

bk version 3.54.1

What environment are you seeing the problem on?

Local Development

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions