Skip to content

nubificus/git-trailers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-trailers

This action parses information for a pull request and adds git trailers to persist PR metadata history in the commit messages.

Example usage

Create a workflow to run the action on PR approval.

eg: .github/workflows/pr-approval.yml:

name: Add Git trailers for PRs

on:
  pull_request_review:
    types: [submitted]

jobs:
  git-trailers:
    if: github.event.review.state == 'approved'
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - name: Add git trailers
        uses: nubificus/git-trailers@feat_gh_checkout_rebase

Upon approval, the action will edit the PR commit messages adding trailers for the PR number, reviewers and approvers and update the PR (by force-pushing the final branch).

About

Action to parse a PR branch/info and add `git trailers` to persist PR metadata history in the commit messages.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors