mirror of
https://github.com/ultralytics/yolov3.git
synced 2026-03-26 05:51:20 +00:00
* Update Ultralytics Actions permissions * Update format.yml Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Auto-format by https://ultralytics.com/actions * Update callbacks.py Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> --------- Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
|
|
|
# Ultralytics Actions https://github.com/ultralytics/actions
|
|
# This workflow formats code and documentation in PRs to Ultralytics standards
|
|
|
|
name: Ultralytics Actions
|
|
|
|
on:
|
|
issues:
|
|
types: [opened]
|
|
pull_request:
|
|
branches: [main, master]
|
|
types: [opened, closed, synchronize, review_requested]
|
|
|
|
permissions:
|
|
contents: write # Modify code in PRs
|
|
pull-requests: write # Add comments and labels to PRs
|
|
issues: write # Add comments and labels to issues
|
|
|
|
jobs:
|
|
actions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Run Ultralytics Actions
|
|
uses: ultralytics/actions@main
|
|
with:
|
|
token: ${{ secrets._GITHUB_TOKEN || secrets.GITHUB_TOKEN }} # Auto-generated token
|
|
labels: true # Auto-label issues/PRs using AI
|
|
python: true # Format Python with Ruff and docformatter
|
|
prettier: true # Format YAML, JSON, Markdown, CSS
|
|
spelling: true # Check spelling with codespell
|
|
links: false # Check broken links with Lychee
|
|
summary: true # Generate AI-powered PR summaries
|
|
openai_api_key: ${{ secrets.OPENAI_API_KEY }} # Powers PR summaries, labels and comments
|
|
brave_api_key: ${{ secrets.BRAVE_API_KEY }} # Used for broken link resolution
|