Skip to content

How to define my personal chat bot using self-defined name and icon? #117

How to define my personal chat bot using self-defined name and icon?

How to define my personal chat bot using self-defined name and icon? #117

Workflow file for this run

name: AdaGPT
on:
# Trigger the workflow on new issues
issues:
types: [opened]
# Trigger the workflow on new pull requests
pull_request:
types: [opened]
# Trigger the workflow on new issue comments
issue_comment:
types: [created]
# Allows the workflow to create comments on issues and pull requests
permissions:
issues: write
pull-requests: write
jobs:
# This job only runs for issues
issue:
name: Issue opened
# Only run the job if the issue contains @AdaGPT
if: ${{ github.event_name == 'issues' && contains(github.event.issue.body, '@AdaGPT') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
name: AdaGPT
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
openai_key: ${{ secrets.OPENAI_KEY }}
# This job only runs for issue comments
issue_comment:
name: Issue comment
# Only run the job if the comment contains @AdaGPT
if: ${{ github.event_name == 'issue_comment' && !github.event.issue.pull_request && contains(github.event.comment.body, '@AdaGPT') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
name: AdaGPT
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
openai_key: ${{ secrets.OPENAI_KEY }}
# This job only runs for pull requests
pull_request:
name: PR opened
# Only run the job if the pull request contains @AdaGPT
if: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.body, '@AdaGPT') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
name: AdaGPT
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
openai_key: ${{ secrets.OPENAI_KEY }}
# This job only runs for pull request comments
pull_request_comment:
name: PR comment
# Only run the job if the comment contains @AdaGPT
if: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@AdaGPT') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
name: AdaGPT
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
openai_key: ${{ secrets.OPENAI_KEY }}