Skip to content

Latest commit

 

History

59 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Approved by GitHub Action

This action will add Approved-by: <username> (<name>) to the bottom of PR description. In combination with "Default commit message -> Default to pull request title and description" all your commits will have list of people who approved them.

Usage

.github/workflows/approved-by.yml:

name: Approved by

on:
  pull_request_review:
    types: [submitted, dismissed]

jobs:
  approved-by:
    runs-on: ubuntu-slim

    steps:
      - uses: actions/cache/restore@v4
        id: cache
        with:
          path: cache.json
          key: usernames-${{ hashFiles('cache.json') }}
          restore-keys: usernames-

      - uses: advbet/approved-by-action@v2

      - uses: actions/cache/save@v4
        if: hashFiles('cache.json') != '' && endsWith(steps.cache.outputs.cache-matched-key, hashFiles('cache.json')) == false
        with:
          path: cache.json
          key: usernames-${{ hashFiles('cache.json') }}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages