Skip to content

Commit 8bb8873

Browse files
Ultralytics Actions JSON, CSS and autolabel support (ultralytics#35)
1 parent a1176d7 commit 8bb8873

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/format.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Ultralytics 🚀 - AGPL-3.0 license
1+
# Ultralytics 🚀 - AGPL-3.0 License https://ultralytics.com/license
22
# Ultralytics Actions https://github.com/ultralytics/actions
33
# This workflow automatically formats code and documentation in PRs to official Ultralytics standards
44

55
name: Ultralytics Actions
66

77
on:
8-
push:
8+
issues:
9+
types: [opened]
10+
pull_request:
911
branches: [main]
10-
pull_request_target:
11-
branches: [main]
12-
types: [opened, closed, synchronize]
12+
types: [opened, closed, synchronize, review_requested]
1313

1414
jobs:
1515
format:
@@ -18,12 +18,12 @@ jobs:
1818
- name: Run Ultralytics Formatting
1919
uses: ultralytics/actions@main
2020
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
2223
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
2525
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')
2828
openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }}
2929
openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }}

0 commit comments

Comments
 (0)