hdgarrood / redmine_release_notes

A plugin to add release notes to Redmine
GNU General Public License v3.0
73 stars 46 forks source link

New values for Variables #39

Closed afu1979 closed 11 years ago

afu1979 commented 11 years ago

I am asking nicely because I hate to break things and I am no coder. I would really like a few more variables in the reports.

I have two that I am looking at.:

  1. version.description as description in the header.
  2. issue.project.name as project in the issues

I think that release_notes_helper.rb changes would look like this:

CHANGE 1 if issue.release_note values = {"subject" => issue.subject, "release_notes" => issue.release_note.text, "tracker" => issue.tracker.name, "project" => issue.project.name, "id" => issue.id }

CHANGE 2

def generate_release_notes_header(version_id, format) version = Version.find(version_id) values = { "name" => version.name, "date" => format_date(version.effective_date), "description" => version.description, "id" => version.id }

hdgarrood commented 11 years ago

You can't be that bad -- that's exactly what I would (will) do :)

hdgarrood commented 11 years ago

by the way, if you want to get this in faster, you could fork it, make the changes, test it a bit, and then submit a pull request.

hdgarrood commented 11 years ago

@afu1979 Would you mind submitting a pull request from your fork, so that I can merge the changes in?

hdgarrood commented 11 years ago

Merged afu's pull request.