Allow setting custom build status from build steps/pipelines

Hi,

It would be very useful to be able to set custom commit statuses for different build steps. For example, in the default pipeline, we usually have lint/test/build/publish steps. It would be great if we were able to set the continuous-integration/drone/lint build status for the commit.

Github Release | Drone seems like it would be a good fit.

I don’t see how. What I’m proposing is to have custom commit statuses set by drone. An example would be something like:

steps:
- name: lint
  image: golang:1.16
  commands:
  - make lint
  statuses:
  - continuous-integration/drone/lint

This way, drone would set all applicable statues to pending when the pipeline starts and sets status failure/success according to the step status.

I am not sure i am following. Do you want

  1. to update the github commit message for every step, every single time.
    or
  2. update the commit message depending on whether the build failed or passed.

I really dont follow drone would set all applicable statues to pending when the pipeline starts what applicable statuses ?

For reference see Per-Step GitHub Commit Statuses - Buildkite Blog.

What I was proposing was for the feature to be more “free-form” in the sense that only some build steps to update the commit statuses.