# Allow setting custom build status from build steps/pipelines

**URL:** <https://drone.discourse.group/t/allow-setting-custom-build-status-from-build-steps-pipelines/10569>\
**Category:** Drone Support\
**Created:** [October 12, 2021, 11:41am UTC](https://drone.discourse.group/t/allow-setting-custom-build-status-from-build-steps-pipelines/10569 "2021-10-12T11:41:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![calind](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/calind/32/6633_2.png) [@calind](https://drone.discourse.group/u/calind)\
**Post date:** [October 12, 2021, 11:41am UTC](https://drone.discourse.group/t/allow-setting-custom-build-status-from-build-steps-pipelines/10569/1 "2021-10-12T11:41:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TP\_Honey](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/tp_honey/32/3018_2.png) [@TP\_Honey](https://drone.discourse.group/u/TP_Honey)\
**Post date:** [October 13, 2021, 9:34am UTC](https://drone.discourse.group/t/allow-setting-custom-build-status-from-build-steps-pipelines/10569/2 "2021-10-13T09:34:22Z")

</div>

> [@Ctrl+c received, terminating process](https://drone.discourse.group/t/ctrl-c-received-terminating-process/9899/1):
>
> uld 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 co

[http://plugins.drone.io/drone-plugins/drone-github-release/](http://plugins.drone.io/drone-plugins/drone-github-release/) seems like it would be a good fit.

---

<div class="post-metadata">

**Author:** ![calind](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/calind/32/6633_2.png) [@calind](https://drone.discourse.group/u/calind)\
**Post date:** [October 18, 2021, 9:47am UTC](https://drone.discourse.group/t/allow-setting-custom-build-status-from-build-steps-pipelines/10569/3 "2021-10-18T09:47:57Z")

</div>

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

```auto
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.

---

<div class="post-metadata">

**Author:** ![TP\_Honey](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/tp_honey/32/3018_2.png) [@TP\_Honey](https://drone.discourse.group/u/TP_Honey)\
**Post date:** [October 18, 2021, 10:10am UTC](https://drone.discourse.group/t/allow-setting-custom-build-status-from-build-steps-pipelines/10569/4 "2021-10-18T10:10:09Z")

</div>

> [@Ctrl+c received, terminating process](https://drone.discourse.group/t/ctrl-c-received-terminating-process/9899/3):
>
> m proposing is to have custom commit statuses set by drone. An example would be something like:
> 
> ```auto
> 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 st

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 ?

---

<div class="post-metadata">

**Author:** ![calind](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/calind/32/6633_2.png) [@calind](https://drone.discourse.group/u/calind)\
**Post date:** [October 18, 2021, 2:26pm UTC](https://drone.discourse.group/t/allow-setting-custom-build-status-from-build-steps-pipelines/10569/5 "2021-10-18T14:26:38Z")

</div>

For reference see [Per-Step GitHub Commit Statuses - Buildkite Blog](https://buildkite.com/blog/step-commit-status).

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.
