From 42e4fe1031462e4d544a6148a9ef4187c4ae714f Mon Sep 17 00:00:00 2001 From: Benjamin Parisel Date: Fri, 24 Nov 2023 16:15:46 +0100 Subject: [PATCH] chore: use a new action to better check the contribution content (#218) 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 --- .github/workflows/contribution-checks.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/contribution-checks.yml b/.github/workflows/contribution-checks.yml index 26fd4f21..2a0d3f9e 100644 --- a/.github/workflows/contribution-checks.yml +++ b/.github/workflows/contribution-checks.yml @@ -2,15 +2,9 @@ name: Contribution checks on: pull_request: - types: [opened, reopened, synchronize] jobs: - pr-content-check: - runs-on: ubuntu-22.04 - steps: - - name: Check PR content - uses: bonitasoft/actions/packages/pr-diff-checker@v2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - diffDoesNotContain: '["https://documentation.bonitasoft.com/", "Bonita BPM", "link:https", "link:http", "xref:https", "xref:http", "xref:_", "xref:#"]' - extensionsToCheck: '[".adoc"]' + check_antora_content_guidelines: + permissions: + pull-requests: write # "pr-antora-content-guidelines-checker" write PR comments when the PR doesn't match the "Guidelines" + uses: bonitasoft/bonita-documentation-site/.github/workflows/_reusable_pr-antora-content-guidelines-checker.yml@master \ No newline at end of file