From 65d4a56135ace50ada73ca74433df38b4f17e433 Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Tue, 15 Jul 2025 19:00:23 -0600 Subject: [PATCH] fix: update GitHub CLI installation method and refine AI PR description prompt --- .github/workflows/pr-description.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-description.yml b/.github/workflows/pr-description.yml index 0106065..ec52e85 100644 --- a/.github/workflows/pr-description.yml +++ b/.github/workflows/pr-description.yml @@ -13,7 +13,9 @@ jobs: uses: actions/checkout@v4 - name: Install GitHub CLI - uses: cli/cli-action@v2 + run: | + sudo apt-get update + sudo apt-get install gh -y - name: Fetch PR Commits id: fetch_commits @@ -35,7 +37,7 @@ jobs: "model": "gpt-4o", "messages": [{ "role": "user", - "content": "Given the following commit messages:\n\n'"${commits}"'\n\nFill the following pull request template. Only fill the \"## Description\" section:\n\n\n\n## Jira Ticket\n\n[SP-0000](https://syncrow.atlassian.net/browse/SP-0000)\n\n## Description\n\n\n\n## How to Test\n\n" + "content": "Given the following commit messages:\n\n'"${commits}"'\n\nFill only the \"## Description\" section in this pull request template:\n\n\n\n## Jira Ticket\n\n[SP-0000](https://syncrow.atlassian.net/browse/SP-0000)\n\n## Description\n\n\n\n## How to Test\n\n" }] }')