You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
# Ultralytics 🚀 - AGPL-3.0 License https://ultralytics.com/license |
|
# Ultralytics Actions https://github.com/ultralytics/actions |
|
# This workflow automatically formats code and documentation in PRs to official Ultralytics standards |
|
|
|
name: Ultralytics Actions |
|
|
|
on: |
|
issues: |
|
types: [opened, edited] |
|
pull_request_target: |
|
branches: [main] |
|
types: [opened, closed, synchronize, review_requested] |
|
|
|
jobs: |
|
format: |
|
runs-on: macos-14 |
|
steps: |
|
- name: Run Ultralytics Formatting |
|
uses: ultralytics/actions@main |
|
with: |
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated |
|
labels: true # autolabel issues and PRs |
|
python: true # format Python code and docstrings |
|
prettier: true # format YAML, JSON, Markdown and CSS |
|
spelling: true # check spelling |
|
links: false # check broken links |
|
summary: true # print PR summary with GPT4o (requires 'openai_api_key') |
|
openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }} |
|
openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }}
|
|
|