From 58addf80dc30640fa2afd465dbd37f89652d4be0 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Mon, 1 Apr 2024 13:11:09 -0500 Subject: [PATCH] Formatting as suggestion in the same branch (#711) * Update formatting.yml * Update agent.cpp * Update agent.cpp [ROCm/rocprofiler-sdk commit: e6237637ebb5e19a4c58b555e7c27db312722a63] --- .../.github/workflows/formatting.yml | 24 +++++-------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/projects/rocprofiler-sdk/.github/workflows/formatting.yml b/projects/rocprofiler-sdk/.github/workflows/formatting.yml index 76695d386b..9d6bf956d4 100644 --- a/projects/rocprofiler-sdk/.github/workflows/formatting.yml +++ b/projects/rocprofiler-sdk/.github/workflows/formatting.yml @@ -48,13 +48,9 @@ jobs: - name: Create pull request if: failure() - uses: peter-evans/create-pull-request@v6 + uses: parkerbxyz/suggest-changes@v1 with: - commit-message: "cmake formatting (cmake-format)" - branch: ${{ steps.extract_branch.outputs.branch }}-cmake-format - delete-branch: true - title: "Format cmake code (via cmake-format) on ${{ steps.extract_branch.outputs.branch }}" - base: ${{ steps.extract_branch.outputs.branch }} + comment: 'Please commit the suggested changes from cmake formatting (cmake-format).' source: runs-on: ubuntu-22.04 @@ -90,13 +86,9 @@ jobs: - name: Create pull request if: failure() - uses: peter-evans/create-pull-request@v6 + uses: parkerbxyz/suggest-changes@v1 with: - commit-message: "source formatting (clang-format v11)" - branch: ${{ steps.extract_branch.outputs.branch }}-clang-format - delete-branch: true - title: "Format source code (via clang-format v11) on ${{ steps.extract_branch.outputs.branch }}" - base: ${{ steps.extract_branch.outputs.branch }} + comment: 'Please commit the suggested changes from source formatting (clang-format v11).' python: runs-on: ubuntu-22.04 @@ -137,10 +129,6 @@ jobs: - name: Create pull request if: failure() - uses: peter-evans/create-pull-request@v6 + uses: parkerbxyz/suggest-changes@v1 with: - commit-message: "python formatting (black)" - branch: ${{ steps.extract_branch.outputs.branch }}-python-format - delete-branch: true - title: "Format python code (via black) on ${{ steps.extract_branch.outputs.branch }}" - base: ${{ steps.extract_branch.outputs.branch }} + comment: 'Please commit the suggested changes from python formatting (black).'