From eec874641ae44f486dae13366b34746b3634c613 Mon Sep 17 00:00:00 2001 From: Benjamin Parisel Date: Thu, 19 Oct 2023 11:38:49 +0200 Subject: [PATCH] chore: use a new action to better check the contribution content (#2480) Use new action to validate if contribution (PR) follows the guidelines on documentation content For now only check if: * files contain:description: attributes * files not contain any forbidden attribute Covers https://github.com/bonitasoft/bonita-documentation-site/issues/591 --- .github/workflows/contribution-checks.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/contribution-checks.yml b/.github/workflows/contribution-checks.yml index d2bd0c7ad5..c6b42b75dd 100644 --- a/.github/workflows/contribution-checks.yml +++ b/.github/workflows/contribution-checks.yml @@ -9,8 +9,8 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Check PR content - uses: bonitasoft/actions/packages/pr-diff-checker@v2 + uses: bonitasoft/actions/packages/pr-antora-content-guidelines-checker@v2 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - diffDoesNotContain: '["https://documentation.bonitasoft.com/", "Bonita BPM", "link:https", "link:http", "xref:https", "xref:http", "xref:#"]' - extensionsToCheck: '[".adoc"]' + attributes-to-check: ':description:' + files-to-check: 'adoc' + forbidden-pattern-to-check: 'https://documentation.bonitasoft.com, link:https, link:http, link:, xref:https, xref:http, xref:_, xref:#'