Ultralytics Code Refactor https://ultralytics.com/actions (#13361)
Refactor code for speed and clarity
This commit is contained in:
1 parent
a355524157
commit
abdfbd68d1
3 files changed
+4
-5
No files matched your search
@@ -30,7 +30,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# Must be repository secret PAT
|
# Must be repository secret PAT
|
||||||
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
PERSONAL_ACCESS_TOKEN: ${{ secrets._GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
path-to-signatures: "signatures/version1/cla.json"
|
path-to-signatures: "signatures/version1/cla.json"
|
||||||
path-to-document: "https://docs.ultralytics.com/help/CLA" # CLA document
|
path-to-document: "https://docs.ultralytics.com/help/CLA" # CLA document
|
||||||
|
|||||||
@@ -18,15 +18,14 @@ jobs:
|
|||||||
- name: Run Ultralytics Formatting
|
- name: Run Ultralytics Formatting
|
||||||
uses: ultralytics/actions@main
|
uses: ultralytics/actions@main
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated
|
token: ${{ secrets._GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated
|
||||||
labels: true # autolabel issues and PRs
|
labels: true # autolabel issues and PRs
|
||||||
python: true # format Python code and docstrings
|
python: true # format Python code and docstrings
|
||||||
prettier: true # format YAML, JSON, Markdown and CSS
|
prettier: true # format YAML, JSON, Markdown and CSS
|
||||||
spelling: true # check spelling
|
spelling: true # check spelling
|
||||||
links: false # check broken links
|
links: false # check broken links
|
||||||
summary: true # print PR summary with GPT4o (requires 'openai_api_key')
|
summary: true # print PR summary with GPT4o (requires 'openai_api_key')
|
||||||
openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }}
|
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
|
||||||
openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }}
|
|
||||||
first_issue_response: |
|
first_issue_response: |
|
||||||
👋 Hello @${{ github.actor }}, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ [Tutorials](https://docs.ultralytics.com/yolov5/) to get started, where you can find quickstart guides for simple tasks like [Custom Data Training](https://docs.ultralytics.com/yolov5/tutorials/train_custom_data/) all the way to advanced concepts like [Hyperparameter Evolution](https://docs.ultralytics.com/yolov5/tutorials/hyperparameter_evolution/).
|
👋 Hello @${{ github.actor }}, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ [Tutorials](https://docs.ultralytics.com/yolov5/) to get started, where you can find quickstart guides for simple tasks like [Custom Data Training](https://docs.ultralytics.com/yolov5/tutorials/train_custom_data/) all the way to advanced concepts like [Hyperparameter Evolution](https://docs.ultralytics.com/yolov5/tutorials/hyperparameter_evolution/).
|
||||||
|
|
||||||
|
|||||||
@@ -67,5 +67,5 @@ jobs:
|
|||||||
print(f"❌ Could not process PR #{pr.number}: {e}")
|
print(f"❌ Could not process PR #{pr.number}: {e}")
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}
|
||||||
GITHUB_REPOSITORY: ${{ github.repository }}
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
||||||
Reference in new issue
Block a user