Skip to content

gptme-bot

gptme-bot #175

Workflow file for this run

name: gptme-bot
on:
issue_comment:
types: [created]
# Set permissions on GITHUB_TOKEN
# It seems we cannot set `workflows: write`, yet it's needed to allow modifying workflow files
#permissions:
# contents: write # push
# issues: write # comment
# pull-requests: write # create & comment
# actions: write # ?
# workflows: write # allow modifying workflow files
permissions: write-all
jobs:
run-bot:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run gptme-bot action
uses: ./.github/actions/bot
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
issue_number: ${{ github.event.issue.number }}
comment_body: ${{ github.event.comment.body }}
comment_id: ${{ github.event.comment.id }}
repo_name: ${{ github.event.repository.name }}
user_name: ${{ github.event.repository.owner.login }}
branch_base: ${{ github.event.repository.default_branch }}
is_pr: ${{ github.event.issue.pull_request != null }}
branch_name: ${{ github.event.pull_request.head.ref || format('gptme/bot-changes-{0}', github.run_id) }}
allowlist: "ErikBjare"