# For commiting how do you set the changelog tag

**URL:** <https://hub.mender.io/t/for-commiting-how-do-you-set-the-changelog-tag/317>\
**Category:** General Discussions\
**Created:** [March 7, 2019, 6:28pm UTC](https://hub.mender.io/t/for-commiting-how-do-you-set-the-changelog-tag/317 "2019-03-07T18:28:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbbh](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bbbh](https://hub.mender.io/u/bbbh)\
**Post date:** [March 7, 2019, 6:28pm UTC](https://hub.mender.io/t/for-commiting-how-do-you-set-the-changelog-tag/317/1 "2019-03-07T18:28:14Z")

</div>

following the instructions here it says to tag with a changelog.

> <https://github.com/mendersoftware/mender/blob/master/CONTRIBUTING.md#changelog-tags>

how do you tell git to add that tag. so its Changelog: None

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [March 7, 2019, 7:23pm UTC](https://hub.mender.io/t/for-commiting-how-do-you-set-the-changelog-tag/317/2 "2019-03-07T19:23:36Z")

</div>

You can specify changelog type after first line of commit message. I did it like it [here](https://github.com/mendersoftware/mender-convert/pull/76/commits/45a2d39e1894fe1baa6ea315b73fca0886d62b87)

So basically in commit message you tell which changelog type you use and based on that you use one of four types (+ fill necessary info for some of them). Hope this helps.

---

<div class="post-metadata">

**Author:** ![bbbh](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bbbh](https://hub.mender.io/u/bbbh)\
**Post date:** [March 7, 2019, 7:31pm UTC](https://hub.mender.io/t/for-commiting-how-do-you-set-the-changelog-tag/317/3 "2019-03-07T19:31:28Z")

</div>

So it has to be  
\<Title\>  
Changelog: \<type\>  
Signed-Off

in that order or the licenses.go will error? if i do any other order it fails the travis build?

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [March 7, 2019, 7:49pm UTC](https://hub.mender.io/t/for-commiting-how-do-you-set-the-changelog-tag/317/4 "2019-03-07T19:49:45Z")

</div>

I would use:

```auto
<Short description of patch>

Changelog: <type>

More descriptive patch description

Signed-off:

```

---

<div class="post-metadata">

**Author:** ![bbbh](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bbbh](https://hub.mender.io/u/bbbh)\
**Post date:** [March 7, 2019, 8:40pm UTC](https://hub.mender.io/t/for-commiting-how-do-you-set-the-changelog-tag/317/5 "2019-03-07T20:40:19Z")

</div>

it is still failing on the pull request and i don’t know why

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [March 7, 2019, 9:05pm UTC](https://hub.mender.io/t/for-commiting-how-do-you-set-the-changelog-tag/317/6 "2019-03-07T21:05:58Z")

</div>

Can you pls share link?

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [March 8, 2019, 8:53am UTC](https://hub.mender.io/t/for-commiting-how-do-you-set-the-changelog-tag/317/7 "2019-03-08T08:53:49Z")

</div>

Hi @bbbh,

We are talking about this PR, right?

> <https://github.com/mendersoftware/deviceauth/pull/284>

I think you have edited the PR text but not the commit itself. When I look at the commit, it has no Changelog tag.

You need to edit the commit (i.e. `git commit --amend` ) to add the tag and then force-push the change (i.e. `git push -f`).

Thanks!

Lluís

---

<div class="post-metadata">

**Author:** ![bbbh](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bbbh](https://hub.mender.io/u/bbbh)\
**Post date:** [March 8, 2019, 2:40pm UTC](https://hub.mender.io/t/for-commiting-how-do-you-set-the-changelog-tag/317/8 "2019-03-08T14:40:16Z")

</div>

thank you it went through successfully.
