diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index ee176abee996..8ded9d727ffc 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -5,8 +5,8 @@ name: Ultralytics Actions on: - push: - branches: [main, master] + issues: + types: [opened, edited] pull_request_target: branches: [main, master] @@ -17,7 +17,8 @@ jobs: - name: Run Ultralytics Formatting uses: ultralytics/actions@main with: - token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify + 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 markdown: true # format Markdown prettier: true # format YAML