elastic / jarvis

Logstash's ChatOps bot, J.A.R.V.I.S.
41 stars 28 forks source link

Add target version labels to a PR when it is merged #85

Open jordansissel opened 6 years ago

jordansissel commented 6 years ago

(Originally #20, but I am opening a new one with a more-updated scope and proposal)

Concern: When merging into a branch, a target version label should be added to the PR. This is important for generating release notes, and, in general, knowing which PRs are impacting a given version of a product.

Proposal: Ask the target branch what product version it is and use that version to add a label to the PR.

Dependency: Requires we have a programmatic way to determine the product version given a branch. Today, I think most of our projects have different mechanisms for defining the version in the source tree.

Example proposed behavior: merge https://.../some/pull master 6.x 6.0 5.6

The above should inspect each branch for the version of that branch and the result should be the following labels (at time of writing):

So the result is that on the given pull, the following labels would be added: v6.1.0, 6.0.0-rc1, 7.0.0-alpha1