mirror of
https://github.com/ingress-it-solutions/gitea-code-review-action.git
synced 2025-04-20 11:06:47 +00:00
First Release
This commit is contained in:
commit
39196cfe3c
15 changed files with 41721 additions and 0 deletions
27
.github/workflows/main.yaml
vendored
Normal file
27
.github/workflows/main.yaml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Code Review
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened]
|
||||
issue_comment:
|
||||
types: [created, edited]
|
||||
|
||||
jobs:
|
||||
code-review:
|
||||
if: |
|
||||
github.event_name == 'pull_request' ||
|
||||
(github.event.comment.user.login == 'adshao' &&
|
||||
startsWith(github.event.comment.body, 'chatgpt'))
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- uses: hmarr/debug-action@v2
|
||||
- name: Gitea Code Review
|
||||
uses: ./
|
||||
with:
|
||||
PROGRAMMING_LANGUAGE: 'JavaScript'
|
||||
REVIEW_COMMENT_PREFIX: 'chatgpt:'
|
||||
FULL_REVIEW_COMMENT: 'chatgpt'
|
||||
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
19
.github/workflows/publish.yaml
vendored
Normal file
19
.github/workflows/publish.yaml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
name: Publish to Marketplace
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: https://github.com/actions/checkout@v3
|
||||
- name: Setup Node.js
|
||||
uses: https://github.com/actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue