Add PR Summary step to Ultralytics Actions (#7675)
This commit is contained in:
parent
63e7db1dac
commit
7a39ecd0d3
1 changed files with 10 additions and 6 deletions
16
.github/workflows/format.yml
vendored
16
.github/workflows/format.yml
vendored
|
|
@ -9,6 +9,7 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
types: [opened, closed, synchronize]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
format:
|
format:
|
||||||
|
|
@ -17,9 +18,12 @@ jobs:
|
||||||
- name: Run Ultralytics Formatting
|
- name: Run Ultralytics Formatting
|
||||||
uses: ultralytics/actions@main
|
uses: ultralytics/actions@main
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }} # automatically generated
|
token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify
|
||||||
python: true
|
python: true # format Python code and docstrings
|
||||||
docstrings: true
|
markdown: true # format Markdown and YAML
|
||||||
markdown: true
|
spelling: true # check spelling
|
||||||
spelling: true
|
links: false # check broken links
|
||||||
links: false
|
summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint')
|
||||||
|
openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }}
|
||||||
|
openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }}
|
||||||
|
# openai_api_key: ${{ secrets.OPENAI_API_KEY }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue