From 7a39ecd0d39481557aad571f860474c39c525913 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 19 Jan 2024 00:48:56 +0100 Subject: [PATCH] Add PR Summary step to Ultralytics Actions (#7675) --- .github/workflows/format.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index e573b6b9d0..68c195cad8 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -9,6 +9,7 @@ on: branches: [main] pull_request_target: branches: [main] + types: [opened, closed, synchronize] jobs: format: @@ -17,9 +18,12 @@ jobs: - name: Run Ultralytics Formatting uses: ultralytics/actions@main with: - token: ${{ secrets.GITHUB_TOKEN }} # automatically generated - python: true - docstrings: true - markdown: true - spelling: true - links: false + token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify + python: true # format Python code and docstrings + markdown: true # format Markdown and YAML + spelling: true # check spelling + links: false # check broken links + summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint') + openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }} + openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }} + # openai_api_key: ${{ secrets.OPENAI_API_KEY }}