fix: update GitHub CLI installation method and refine AI PR description prompt

This commit is contained in:
faris Aljohari
2025-07-15 19:00:23 -06:00
parent fffa27b6ee
commit 65d4a56135

View File

@ -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 Thanks for contributing!\n\n Provide a description of your changes below and a general summary in the title.\n-->\n\n## Jira Ticket\n\n[SP-0000](https://syncrow.atlassian.net/browse/SP-0000)\n\n## Description\n\n<!--- Describe your changes in detail -->\n\n## How to Test\n\n<!--- Describe the created APIs / Logic -->"
"content": "Given the following commit messages:\n\n'"${commits}"'\n\nFill only the \"## Description\" section in this pull request template:\n\n<!--\n Thanks for contributing!\n\n Provide a description of your changes below and a general summary in the title.\n-->\n\n## Jira Ticket\n\n[SP-0000](https://syncrow.atlassian.net/browse/SP-0000)\n\n## Description\n\n<!--- Describe your changes in detail -->\n\n## How to Test\n\n<!--- Describe the created APIs / Logic -->"
}]
}')