From c11207b56d6721da0cc3882e72b99a67d9f72fdb Mon Sep 17 00:00:00 2001 From: Tommerty <86270372+tommerty@users.noreply.github.com> Date: Wed, 6 Dec 2023 15:07:34 +0000 Subject: [PATCH] fixing pr commenter --- .github/pr-commenter.yml | 17 ----------------- .github/workflows/pr-commenter.yml | 24 +++++++++++++++--------- 2 files changed, 15 insertions(+), 26 deletions(-) delete mode 100644 .github/pr-commenter.yml diff --git a/.github/pr-commenter.yml b/.github/pr-commenter.yml deleted file mode 100644 index a692b18..0000000 --- a/.github/pr-commenter.yml +++ /dev/null @@ -1,17 +0,0 @@ -comment: - on-update: recreate - header: | - Thank you for contributing to this repository :tada:. - - footer: | - --- - Automated comment created by [PR Commenter](https://github.com/exercism/pr-commenter-action) :robot:. - - snippets: - - id: any-markdown-file-changed - files: - - '*.mdx' - - '**/*.mdx' - body: | - # Thanks for your contribution! :tada: - We'll review and get back to you as soon as possible. If you have any questions, feel free to ask them in the comments below. \ No newline at end of file diff --git a/.github/workflows/pr-commenter.yml b/.github/workflows/pr-commenter.yml index d8cc693..6d2487b 100644 --- a/.github/workflows/pr-commenter.yml +++ b/.github/workflows/pr-commenter.yml @@ -1,12 +1,18 @@ -name: "PR Commenter" on: - - pull_request_target + pull_request: + branches: + - master + types: + - opened jobs: - pr-comment: - runs-on: ubuntu-latest - steps: - - uses: exercism/pr-commenter-action@v1.5.1 - with: - github-token: "${{ github.token }}" - config-file: ".github/pr-commenter.yml" \ No newline at end of file + test: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: mshick/add-pr-comment@v2.8.1 + with: + message: | + ## Thanks for the PR! + We'll review the changes and preview the site before merging. :tada: If you have any additional questions or comments, please feel free to add them here. :heart: