From 8d8c66bfc98f022ec7c6a8fd57c042e72c3889fc Mon Sep 17 00:00:00 2001 From: Reuven Harrison Date: Mon, 20 Apr 2026 15:43:01 +0300 Subject: [PATCH 1/2] Update oasdiff PR comment workflow configuration --- .github/workflows/pr-comment.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml index 29c2bac..ff0cca6 100644 --- a/.github/workflows/pr-comment.yml +++ b/.github/workflows/pr-comment.yml @@ -1,26 +1,18 @@ -name: oasdiff PR comment +name: oasdiff on: pull_request: -permissions: - contents: read - pull-requests: write - statuses: write - jobs: - pr-comment: + oasdiff: runs-on: ubuntu-latest steps: - - name: Check out code - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - - name: Fetch base branch - run: git fetch --depth=1 origin ${{ github.base_ref }} + - run: git fetch --depth=1 origin ${{ github.base_ref }} - - name: Post oasdiff PR comment - uses: oasdiff/oasdiff-action/pr-comment@v0.0.37 - with: - base: 'origin/${{ github.base_ref }}:multi-file/openapi.yaml' - revision: 'HEAD:multi-file/openapi.yaml' - oasdiff-token: ${{ secrets.OASDIFF_TOKEN }} + - uses: oasdiff/oasdiff-action/pr-comment@v0.0.40-beta.3 + with: + base: 'origin/${{ github.base_ref }}:openapi.yaml' + revision: 'HEAD:openapi.yaml' + oasdiff-token: ${{ secrets.OASDIFF_TOKEN }} From 9a45f5e11276c16cae4c002f559e0b94d4e12a56 Mon Sep 17 00:00:00 2001 From: Reuven Harrison Date: Mon, 20 Apr 2026 15:53:07 +0300 Subject: [PATCH 2/2] Update OASDiff action to use simple.yaml --- .github/workflows/pr-comment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml index ff0cca6..a856b80 100644 --- a/.github/workflows/pr-comment.yml +++ b/.github/workflows/pr-comment.yml @@ -13,6 +13,6 @@ jobs: - uses: oasdiff/oasdiff-action/pr-comment@v0.0.40-beta.3 with: - base: 'origin/${{ github.base_ref }}:openapi.yaml' - revision: 'HEAD:openapi.yaml' + base: 'origin/${{ github.base_ref }}:simple.yaml' + revision: 'HEAD:simple.yaml' oasdiff-token: ${{ secrets.OASDIFF_TOKEN }}