Skip to content

Commit

Permalink
chore: use a new action to better check the contribution content
Browse files Browse the repository at this point in the history
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 bonitasoft/bonita-documentation-site#591
  • Loading branch information
benjaminParisel committed Nov 24, 2023
1 parent 7160676 commit 3ed883b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/contribution-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3ed883b

Please sign in to comment.