Skip to content

Expanded options for commit template variables #72

Closed

Description

@durera

Unless I'm mistaken it seems message is the only variable available for templating commit entries. I was hoping to put together a changelog with a format something like:

[{{sha}}]({{url}}) {{message}} - {{author.name}}

I was wondering if there's a specific reason why commitMessages() just pulls out the commit message rather retaining the commit object (or a subset of it), which can then pass through the system eventually allowing generateCommitsBody() to template on more than just the commit message? If not, is this something that could be added?

Activity

  1. alexcanessa commented on Apr 16, 2017

    @alexcanessa
    Member

    @durera The commit messages as release bodies belong to a very old version of the module, therefore it wasn't expanded yet.

    Would you think the whole Object should be exposed or just:

    • SHA
    • url
    • message
    • author (the whole Object)

    PR?

  2. durera commented on Apr 16, 2017

    @durera
    ContributorAuthor

    I was thinking the whole object personally. The size of the full commit object shouldn't cause any issues so I can't think of any reason to limit it to a subset of the properties..

    I haven't written any code for it yet. I've only just started poking around the code today so not sure what the scope/complexity of the change would be at the moment.

  3. added this to the milestone on Apr 17, 2017
  4. modified the milestones: , on May 17, 2017
  5. removed this from the milestone on Sep 19, 2017
  6. self-assigned this
    on Sep 29, 2017
  7. added this to the milestone on Sep 29, 2017
  8. alexcanessa commented on Oct 8, 2017

    @alexcanessa
    Member

    Closed by #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions