Skip to content

Feat: add bot flagging for /bug comment #4

Feat: add bot flagging for /bug comment

Feat: add bot flagging for /bug comment #4

Workflow file for this run

name: ghapi
on: pull_request
permissions:
contents: read
issues: write
pull-requests: write
jobs:
ghapi:
runs-on: ubuntu-latest
steps:
- name: install dependencies
run: pip install ghapi
- name: see payload
run: echo "PAYLOAD:\n${PAYLOAD}\n"
env:
PAYLOAD: ${{ toJson(github.event) }}
- name: Make a comment
shell: python
run: |
import os
from ghapi.core import GhApi
owner, repo = os.environ['REPO'].split('/')
api = GhApi(owner=owner, repo=repo)
api.issues.create_comment(os.environ['NUMBER'], "Hi! I'm making a comment with `ghapi` in Actions")
env:
NUMBER: ${{ github.event.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}