Coyote
Coyote

Reputation: 2524

How should I link redmine roadmap versions with git tags?

I am trying to establish a logical link between redmine project versions and git tags.

Currently my solution involves creating a wiki page for each version and linking it to the tag in the repo... But this seems like a great idea if I want my wiki riddled with hardcoded links.

Is there any other way to directly link a redmine version with a tag? Or a particular commit at least?

Upvotes: 1

Views: 982

Answers (1)

eykanal
eykanal

Reputation: 27067

Redmine will create a page for each version, with a URL in the form of

http://<baseURL>/versions/##

where ## is some internal pointer to the version. I would link to this, as (1) it contains all the important information about the version, and (2) it's unlikely to change in the future, barring a full server move (i.e., different base URI).

To address the comment regarding using git tags to create versions, I would approach this using Git hooks. I can imagine a post-commit hook that examines a given commit to see whether it contains any new tags, and if so, it uses the Redmine API to create a new version.

Upvotes: 1

Related Questions