Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (22 loc) · 778 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 778 Bytes

Fellowship Process Bot

Example usage

  • Create a .github/workflows/process.yml GH action workflow
name: Process Bot
on:
  issue_comment:
    types: [created] # only trigger on new issue comments
env:
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # authorize bot
  GH_PAT: ${{ secrets.GH_PAT }} # authorize bot to write to PRs
jobs:
  process:
    name: Process Comment
    # only run if the comment is on a PR and starts with /bot
    if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/bot ') }}
    runs-on: ubuntu-latest
    steps:
      - uses: xlc/fellowship-process-bot@main
  • Create PAT token with read and write permission for pull requests and contents.
  • Provide the PAT token to the GH action with repo secrets GH_PAT