From 4f6892ae7a486b16a94f8fe4efb569fccf782d55 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 19 Dec 2025 10:42:44 +0000 Subject: [PATCH 1/3] Add code of conduct checker The purpose of this is to give our trainees experience of handling bot comments. --- .github/workflows/validate-pr-metadata.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/validate-pr-metadata.yml diff --git a/.github/workflows/validate-pr-metadata.yml b/.github/workflows/validate-pr-metadata.yml new file mode 100644 index 0000000..76c5515 --- /dev/null +++ b/.github/workflows/validate-pr-metadata.yml @@ -0,0 +1,17 @@ +name: Check Code of Conduct +on: + pull_request_target: + types: + - opened + - edited + - reopened + +jobs: + check_code_of_conduct: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: CodeYourFuture/actions/validate-pr-metadata@set-up-dummy + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + use_dummy_code_of_conduct_validator: true From 206961d5dc0fd9d0976d59dc5fcfe16b1faeb07d Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 19 Dec 2025 11:15:22 +0000 Subject: [PATCH 2/3] Try adding branch --- .github/workflows/validate-pr-metadata.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/validate-pr-metadata.yml b/.github/workflows/validate-pr-metadata.yml index 76c5515..dcfe581 100644 --- a/.github/workflows/validate-pr-metadata.yml +++ b/.github/workflows/validate-pr-metadata.yml @@ -1,6 +1,7 @@ name: Check Code of Conduct on: pull_request_target: + branches: "code-of-conduct-checker" types: - opened - edited From 0d1be8cf66661231d9612b0773c8c03ccbf391e3 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 19 Dec 2025 10:52:09 +0000 Subject: [PATCH 3/3] Sample PR --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3a15496..2c00ba6 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,5 @@ You can see the deployed site [here](https://codeyourfuture.github.io/github_iss - `index.html` - The HTML file used to generate the site. - `styles.css` - CSS used to style the site. - `.gitignore` - A list of files which should not be tracked by Git. + +This is an example change to a README file.