From ddbcf34da50b0ab05f01d1bfda54f320df1b749b Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Tue, 2 Apr 2024 02:14:59 -0500 Subject: [PATCH] Formating Issue fix (#726) * Update formatting.yml * Update formatting.yml * Update client.cpp * Update formatting.yml * Update samples/api_buffered_tracing/client.cpp * Update client.cpp --- .github/workflows/formatting.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index 9d6bf956d4..a2e84bee04 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -17,6 +17,8 @@ concurrency: jobs: cmake: runs-on: ubuntu-22.04 + env: + ACCESS_TOKEN: ${{ secrets.TOKEN }} steps: - uses: actions/checkout@v4 @@ -48,12 +50,16 @@ jobs: - name: Create pull request if: failure() - uses: parkerbxyz/suggest-changes@v1 + uses: googleapis/code-suggester@v2 with: - comment: 'Please commit the suggested changes from cmake formatting (cmake-format).' + command: review + pull_number: ${{ github.event.pull_request.number }} + git_dir: '.' source: runs-on: ubuntu-22.04 + env: + ACCESS_TOKEN: ${{ secrets.TOKEN }} steps: - uses: actions/checkout@v4 @@ -86,15 +92,19 @@ jobs: - name: Create pull request if: failure() - uses: parkerbxyz/suggest-changes@v1 + uses: googleapis/code-suggester@v2 with: - comment: 'Please commit the suggested changes from source formatting (clang-format v11).' + command: review + pull_number: ${{ github.event.pull_request.number }} + git_dir: '.' python: runs-on: ubuntu-22.04 strategy: matrix: python-version: ['3.10'] + env: + ACCESS_TOKEN: ${{ secrets.TOKEN }} steps: - uses: actions/checkout@v4 @@ -129,6 +139,8 @@ jobs: - name: Create pull request if: failure() - uses: parkerbxyz/suggest-changes@v1 + uses: googleapis/code-suggester@v2 with: - comment: 'Please commit the suggested changes from python formatting (black).' + command: review + pull_number: ${{ github.event.pull_request.number }} + git_dir: '.'