Skip to content

nidotls/git-log-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Log Action

Linter CI Check dist/ CodeQL Coverage

A GitHub Action that generates a commit-based changelog between two Git tags.

Usage

- uses: nidotls/git-log-action@v2
  id: changelog

By default, the action auto-detects the two most recent tags and generates a changelog of commits between them.

Inputs

Input Description Required Default
from-tag Starting tag (exclusive) No Second-to-last tag
to-tag Ending tag (inclusive) No Latest tag

Outputs

Output Description
previousTag The resolved starting tag (empty if only one tag exists)
latestTag The resolved ending tag
log Plain text changelog (one commit per line)
markdownLog Markdown formatted changelog with commit links

Examples

Auto-detect tags:

- uses: nidotls/git-log-action@v2
  id: changelog

- run: echo "${{ steps.changelog.outputs.log }}"

Specify tags manually:

- uses: nidotls/git-log-action@v2
  id: changelog
  with:
    from-tag: v1.0.0
    to-tag: v1.1.0

Use Markdown output in a release:

- uses: nidotls/git-log-action@v2
  id: changelog

- uses: softprops/action-gh-release@v1
  with:
    body: ${{ steps.changelog.outputs.markdownLog }}

Output Formats

Plain text (log):

abc1234 - @username - Fix bug in parser
def5678 - @username - Add new feature

Markdown (markdownLog):

[`abc1234`](https://github.com/owner/repo/commit/abc1234) @username - Fix bug in
parser
[`def5678`](https://github.com/owner/repo/commit/def5678) @username - Add new feature

Development

npm install       # Install dependencies
npm test          # Run tests
npm run bundle    # Build for distribution

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •