Skip to content

A GitHub Action that generates a list of coauthors from a pull request and writes them to a comment

Notifications You must be signed in to change notification settings

kevinzunigacuellar/coauthor-action

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

Repository files navigation

Generate Co-authors

A GitHub Action that compiles a list of coauthors involved in a pull request and posts the "Coauthor-by" string as a comment.

Usage

name: Write coauthors to a pull request
permissions:
  pull-requests: write
  
on:
  issue_comment:
    types:
      - created
      
jobs:
  generate-coauthors:
    name: Generate Coauthor
    if: ${{ github.event.issue.pull_request }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: kevinzunigacuellar/coauthor-action@v0.1.3

Inputs

Name Description Default
token GITHUB_TOKEN (pull-requests: write) or a repo scoped PAT. GITHUB_TOKEN
trigger-phrase A comment that triggers the action. !coauthor

About

A GitHub Action that generates a list of coauthors from a pull request and writes them to a comment

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •