travis-ci/travis-core — pull request #387 by drogus (2014-09-23 12:36:34+00:00)
Title: Fixing tags saving

This PR changes a way we handle branches and tags.

* tag is now saved in a `tag` column on both `Commit` and `Build`
* for commits with both tag and branch specified (this is specified in GitHub payload as `ref: 'refs/tags/tag-name` and `base_ref: 'refs/heads/branch-name`), we save both values
* a `tags` entry can be used in `.travis.yml` in order to filter builds by tag, for example: `tags: { only: '/deploy-/' }`

It's all put behind `:proper_tags` feature flag, which can be enabled for individual repositories.