1
- # Ultralytics 🚀 - AGPL-3.0 license
1
+ # Ultralytics 🚀 - AGPL-3.0 License https://ultralytics.com/ license
2
2
# Ultralytics Actions https://github.com/ultralytics/actions
3
3
# This workflow automatically formats code and documentation in PRs to official Ultralytics standards
4
4
5
5
name : Ultralytics Actions
6
6
7
7
on :
8
- push :
8
+ issues :
9
+ types : [opened]
10
+ pull_request :
9
11
branches : [main]
10
- pull_request_target :
11
- branches : [main]
12
- types : [opened, closed, synchronize]
12
+ types : [opened, closed, synchronize, review_requested]
13
13
14
14
jobs :
15
15
format :
@@ -18,12 +18,12 @@ jobs:
18
18
- name : Run Ultralytics Formatting
19
19
uses : ultralytics/actions@main
20
20
with :
21
- token : ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify
21
+ token : ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated
22
+ labels : true # autolabel issues and PRs
22
23
python : true # format Python code and docstrings
23
- markdown : true # format Markdown
24
- prettier : true # format YAML
24
+ prettier : true # format YAML, JSON, Markdown and CSS
25
25
spelling : true # check spelling
26
- links : true # check broken links
27
- summary : true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint ')
26
+ links : false # check broken links
27
+ summary : true # print PR summary with GPT4o (requires 'openai_api_key')
28
28
openai_azure_api_key : ${{ secrets.OPENAI_AZURE_API_KEY }}
29
29
openai_azure_endpoint : ${{ secrets.OPENAI_AZURE_ENDPOINT }}
0 commit comments