From 1d729032b6ae916a71f4d4d47e8fd7333ff7c8ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Fri, 15 Mar 2024 16:04:55 +0300 Subject: [PATCH] debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .github/workflows/pr-agent.yaml | 51 +++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pr-agent.yaml b/.github/workflows/pr-agent.yaml index 7380212491600..813338ce40721 100644 --- a/.github/workflows/pr-agent.yaml +++ b/.github/workflows/pr-agent.yaml @@ -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 }}