Skip to content

Commit

Permalink
chore: use a new action to better check the contribution content (#2480)
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 authored Oct 19, 2023
1 parent 9a68ccd commit eec8746
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/contribution-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:#'

0 comments on commit eec8746

Please sign in to comment.