mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-08-26 06:49:39 +00:00
fix: update GitHub CLI installation method and refine AI PR description prompt
This commit is contained in:
6
.github/workflows/pr-description.yml
vendored
6
.github/workflows/pr-description.yml
vendored
@ -13,7 +13,9 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install GitHub CLI
|
- name: Install GitHub CLI
|
||||||
uses: cli/cli-action@v2
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install gh -y
|
||||||
|
|
||||||
- name: Fetch PR Commits
|
- name: Fetch PR Commits
|
||||||
id: fetch_commits
|
id: fetch_commits
|
||||||
@ -35,7 +37,7 @@ jobs:
|
|||||||
"model": "gpt-4o",
|
"model": "gpt-4o",
|
||||||
"messages": [{
|
"messages": [{
|
||||||
"role": "user",
|
"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 -->"
|
||||||
}]
|
}]
|
||||||
}')
|
}')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user