From db90c71f891f3999543f89a1b23046d88066b692 Mon Sep 17 00:00:00 2001 From: yuxuanj Date: Tue, 2 Jun 2026 13:19:24 -0700 Subject: [PATCH 1/4] v3 workflow update for default content repos --- .github/workflows/post-lint-comment.yml | 23 ++++------------------- .github/workflows/pr-validation.yml | 12 ++++++++++++ 2 files changed, 16 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/pr-validation.yml diff --git a/.github/workflows/post-lint-comment.yml b/.github/workflows/post-lint-comment.yml index d2c75fd..e1d0d68 100644 --- a/.github/workflows/post-lint-comment.yml +++ b/.github/workflows/post-lint-comment.yml @@ -11,22 +11,7 @@ permissions: jobs: comment: - runs-on: ubuntu-latest - if: github.event.workflow_run.event == 'pull_request' - steps: - - name: Download linter report artifact - uses: actions/download-artifact@v8 - with: - name: linter-report - run-id: ${{ github.event.workflow_run.id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Post Linter Report to PR - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_REPOSITORY: ${{ github.repository }} - LINTER_REPORT_PATH: ./linter-report.txt - PR_NUMBER_PATH: ./pr-number.txt - run: | - npm install --no-save github:AdobeDocs/adp-devsite-scripts - node node_modules/adp-devsite-scripts/linter-bot/postLinterReport.js + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/pr-comment-v3.yml@main + with: + run_id: ${{ github.event.workflow_run.id }} + event: ${{ github.event.workflow_run.event }} diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml new file mode 100644 index 0000000..a304319 --- /dev/null +++ b/.github/workflows/pr-validation.yml @@ -0,0 +1,12 @@ +--- +name: PR validation +on: + pull_request: + branches: [main] + +jobs: + validate: + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/validate-pr-v3.yml@main + with: + pr_number: ${{ github.event.pull_request.number }} + base_ref: ${{ github.event.pull_request.base.ref }} \ No newline at end of file From 9d5d0ba0d94eb67acef55d1c1f46a694447819dc Mon Sep 17 00:00:00 2001 From: yuxuanj Date: Tue, 2 Jun 2026 13:20:29 -0700 Subject: [PATCH 2/4] remove lint and post report yml --- .github/workflows/lint.yml | 49 ------------------------- .github/workflows/post-lint-comment.yml | 17 --------- 2 files changed, 66 deletions(-) delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/post-lint-comment.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index bec32fe..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -name: Lint -on: - pull_request: - branches: [main] - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - - name: Check for src/pages changes - id: changes - env: - BASE_REF: ${{ github.base_ref }} - run: | - git diff --name-only "origin/${BASE_REF}...HEAD" | grep -q '^src/pages/' \ - && echo "changed=true" >> $GITHUB_OUTPUT \ - || echo "changed=false" >> $GITHUB_OUTPUT - - - name: Lint - id: lint - if: steps.changes.outputs.changed == 'true' - continue-on-error: true - run: npx --yes github:AdobeDocs/adp-devsite-utils runLint -v - - - name: Save PR number - if: always() - env: - PR_NUMBER: ${{ github.event.pull_request.number }} - run: echo "$PR_NUMBER" > pr-number.txt - - - name: Upload linter report - if: always() - uses: actions/upload-artifact@v7 - with: - name: linter-report - path: | - linter-report.txt - pr-number.txt - if-no-files-found: ignore - - - name: Fail if linter found errors - if: steps.changes.outputs.changed == 'true' && steps.lint.outcome == 'failure' - run: exit 1 diff --git a/.github/workflows/post-lint-comment.yml b/.github/workflows/post-lint-comment.yml deleted file mode 100644 index e1d0d68..0000000 --- a/.github/workflows/post-lint-comment.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Post Linter Report -on: - workflow_run: - workflows: ["Lint"] - types: - - completed - -permissions: - pull-requests: write - -jobs: - comment: - uses: AdobeDocs/adp-devsite-workflow/.github/workflows/pr-comment-v3.yml@main - with: - run_id: ${{ github.event.workflow_run.id }} - event: ${{ github.event.workflow_run.event }} From e53e53afdda67b64803f524355dd22a959aa6cc1 Mon Sep 17 00:00:00 2001 From: yuxuanj Date: Tue, 2 Jun 2026 13:27:17 -0700 Subject: [PATCH 3/4] update pr comments --- .github/workflows/pr-comment.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/pr-comment.yml diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml new file mode 100644 index 0000000..807bbfe --- /dev/null +++ b/.github/workflows/pr-comment.yml @@ -0,0 +1,17 @@ +--- +name: PR Comment +on: + workflow_run: + workflows: ["PR validation"] + types: + - completed + +permissions: + pull-requests: write + +jobs: + comment: + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/pr-comment-v3.yml@main + with: + run_id: ${{ github.event.workflow_run.id }} + event: ${{ github.event.workflow_run.event }} From 2b5bb8c65df725ae8570855aa97119e0f2621cd9 Mon Sep 17 00:00:00 2001 From: yuxuanj Date: Thu, 11 Jun 2026 16:35:05 -0700 Subject: [PATCH 4/4] updated pr-validation for commerce --- .github/workflows/pr-validation.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index a304319..68f2f9b 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -2,11 +2,10 @@ name: PR validation on: pull_request: - branches: [main] jobs: validate: - uses: AdobeDocs/adp-devsite-workflow/.github/workflows/validate-pr-v3.yml@main + uses: AdobeDocs/commerce-contributor/.github/workflows/validate-pr.yml@main with: + base_ref: ${{ github.event.pull_request.base.ref }} pr_number: ${{ github.event.pull_request.number }} - base_ref: ${{ github.event.pull_request.base.ref }} \ No newline at end of file