Skip to content

Commit

Permalink
feat: response 로그 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsu5582 committed Jul 22, 2024
1 parent 9d9fd72 commit 7c40302
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/auto-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ jobs:
- name: Check for Already Exist
id: check_pr
run: |
existing_pr=$(gh pr list --state "open" --search "${{ env.BRANCH_NAME }}" --json number -q '.[] | .number')
branch_name = ${{ env.BRANCH_NAME }}
response = gh pr list --state "open" --search "$branch_name"
echo "RESPONSE = $response"
existing_pr=$(gh pr list --state "open" --search "$branch_name" --json number -q '.[] | .number')
echo "EXISTED=$existing_pr"
if [ -n "$existing_pr" ]; then
exit 0
fi
env:
GH_TOKEN: ${{ github.token }}

Expand Down Expand Up @@ -92,7 +94,7 @@ jobs:
fi
done
pr_number=$(gh pr create --reviewer "$reviewers" --title "${{ env.PR_TITLE }}" --body "${{ env.PR_BODY }}" --base "develop" --label "${{ env.LABELS }}" | xargs gh pr view --json number -q .number)
echo "PR_NUMBER=$pr_number" >> $GITHUB_ENV
echo "REVIEWR=$reviewers"
gh pr create --reviewer "$reviewers" --title "${{ env.PR_TITLE }}" --body "${{ env.PR_BODY }}" --base "develop" --label "${{ env.LABELS }}"
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 7c40302

Please sign in to comment.