Skip to content

Add a comment on github when issue is added to gitpay #237

Add a comment on github when issue is added to gitpay

Add a comment on github when issue is added to gitpay #237

Workflow file for this run

on:
issues:
types: [labeled]
issue_comment:
types: [created]
permissions:
contents: write
issues: write
pull-requests: write
jobs:
autopr:
if: ${{ (github.event_name == 'issues' &&
contains( github.event.label.name, 'AutoPR')) ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains( github.event.comment.body, 'Hey AutoPR')) }}
runs-on: ubuntu-latest
steps:
- name: Install jq
run: sudo apt-get install jq
- name: Checkout
uses: actions/checkout@v2
with:
ref: master
fetch-depth: 1
- name: AutoPR
uses: docker://ghcr.io/irgolic/autopr:latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
model: gpt-3.5-turbo
base_branch: master