Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adiciona fila #2

Merged
merged 5 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ permissions: write-all
jobs:
hello_world_job:
runs-on: ubuntu-latest

name: AI Action Code Reviewer
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v4

Expand All @@ -22,7 +19,10 @@ jobs:
id: aireviewer
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
exclude: '**/*.json, **/*.md, **/*.map'
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_ASSISTANT_ID: ${{ secrets.OPENAI_ASSISTANT_ID }}
exclude: '**/*.json, **/*.md, **/*.map, **/*.lock.json'

# Use the output from the `hello` step
- name: Get the output time
run: echo "The time was ${{ steps.aireviewer.outputs.time }}"
- name: Get the output
run: echo "OUTPUT FILES=${{ steps.aireviewer.outputs.countFiles }}"
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,20 @@ inputs:
description: "Glob patterns to exclude files from the diff analysis"
required: false
default: ""
OPENAI_API_KEY:
description: "OpenAI API key for GPT."
required: true
OPENAI_ASSISTANT_ID:
description: "OpenAI Assistant ID"
required: true
default: ""

# Define your outputs here.
outputs:
countFiles:
description: 'Quantidade de arquivos analisados'
countComments:
description: 'Quantidade de comentários feitos'


runs:
Expand Down
Loading
Loading