Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
M. Fatih Cırıt committed Mar 15, 2024
1 parent 4a34aaf commit 1d72903
Showing 1 changed file with 30 additions and 21 deletions.
51 changes: 30 additions & 21 deletions .github/workflows/pr-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,33 @@ on:

jobs:
prevent-no-label-execution-pr-agent:
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 1
labels: "tag:pr-agent"
# pr_agent_job:
# needs: prevent-no-label-execution-pr-agent
# if: ${{ needs.prevent-no-label-execution-pr-agent.outputs.status == 'success' }}
# runs-on: ubuntu-latest
# permissions:
# issues: write
# pull-requests: write
# contents: write
# name: Run pr agent on every pull request, respond to user comments
# steps:
# - name: PR Agent action step
# id: pragent
# uses: Codium-ai/pr-agent@main
# env:
# OPENAI_KEY: ${{ secrets.OPENAI_KEY_PR_AGENT }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
outputs:
status: ${{ steps.check-labels.outputs.status }}
steps:
- id: check-labels
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 1
labels: "tag:pr-agent"
exit_type: success
pr_agent_job:
needs: prevent-no-label-execution-pr-agent
if: ${{ needs.prevent-no-label-execution-pr-agent.outputs.status == 'success' }}
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: write
name: Run pr agent on every pull request, respond to user comments
steps:
- name: PR Agent action step
id: pragent
uses: Codium-ai/pr-agent@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY_PR_AGENT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1d72903

Please sign in to comment.