Skip to content

GitHub Action for merging RFCs after on-chain referendums

License

Notifications You must be signed in to change notification settings

polkadot-fellows/fellowship-rfcs-process-bot

 
 

Repository files navigation

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: polkadot-fellows/fellowship-rfcs-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

About

GitHub Action for merging RFCs after on-chain referendums

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.2%
  • JavaScript 1.8%