Skip to content

Allow waiting for a command to be something #23

@withinboredom

Description

@withinboredom

So instead of writing:

{
  "command": ["while","[","$(hub","ci-status","HEAD)","!=","'success'","];","do","echo","'waiting for status checks'",";","sleep","1",";","if","[","$(hub","ci-status","HEAD)","==","'failure'","];","then","echo","'oh snap, we cannot release this';","exit","1;","fi;","done;"]
}

I can write:

{
  "command": ["hub","ci-status","HEAD"],
  "waitfor": {
    "output": "success",
    "exit_code": 0,
    "timeout": 100000,
    "fail": {
      "exit_code": 1
    }
  }
}

or something to that effect...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions