Skip to content
heart

GitHub Action

Generate Co-authors

v0.1.3 Latest version

Generate Co-authors

heart

Generate Co-authors

Compile a list of coauthors involved in a pull request and post the "Coauthor-by" string as a comment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Generate Co-authors

uses: kevinzunigacuellar/[email protected]

Learn more about this action in kevinzunigacuellar/coauthor-action

Choose a version

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/[email protected]

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