From 0bd95382fa89669161e8792a897b35c952cb3f4e Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Thu, 15 Dec 2022 13:55:17 -0800 Subject: [PATCH 1/2] CHANGELOG.md - cleanup non-inclusive words. --- CHANGELOG.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f646b0f..a2211ffb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -146,14 +146,9 @@ Adds startmsg_regex and endmsg_regex options: - Fix a bash bug in changelog_to_tag.yml, which unexpectedly expanded "*" -- changelog_to_tag action - support other than "master" for the main branch name, as well +- changelog_to_tag action - github action ansible test improvements -- Use GITHUB_REF_NAME as name of push branch; fix error in branch detection [citest skip] - -We need to get the name of the branch to which CHANGELOG.md was pushed. -For now, it looks as though `GITHUB_REF_NAME` is that name. But don't -trust it - first, check that it is `main` or `master`. If not, then use -a couple of other methods to determine what is the push branch. +- Use GITHUB_REF_NAME as name of push branch; fix error in branch detection Signed-off-by: Rich Megginson @@ -445,7 +440,7 @@ must be a `string` value like `"2.9"`, not a `float` value like `2.9`. ### Other Changes - Remove python-26 environment from tox testing -- update to tox-lsr 2.4.0 - add support for ansible-test sanity with docker +- update to tox-lsr 2.4.0 - add support for ansible-test with docker - use tox-lsr 2.3.0 and enable ansible-test - CI: Add support for RHEL-9 From d13cc3359f65ac1091acb5dc577256c331dc746f Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Thu, 15 Dec 2022 13:56:46 -0800 Subject: [PATCH 2/2] Add check for non-inclusive language Add a check for usage of terms and language that is considered non-inclusive. We are using the woke tool for this with a wordlist that can be found at https://github.com/linux-system-roles/tox-lsr/blob/main/src/tox_lsr/config_files/woke.yml Signed-off-by: Noriko Hosoi --- .github/workflows/woke.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/woke.yml diff --git a/.github/workflows/woke.yml b/.github/workflows/woke.yml new file mode 100644 index 00000000..6752ff54 --- /dev/null +++ b/.github/workflows/woke.yml @@ -0,0 +1,18 @@ +# yamllint disable rule:line-length +name: Check for non-inclusive language +on: # yamllint disable-line rule:truthy + - pull_request +jobs: + woke: + name: woke + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: woke + uses: get-woke/woke-action@v0 + with: + woke-args: "-c https://raw.githubusercontent.com/linux-system-roles/tox-lsr/main/src/tox_lsr/config_files/woke.yml" + # Cause the check to fail on any broke rules + fail-on-error: true