From f800c75d7a4a6cb12a3b808f94c5db505620419f Mon Sep 17 00:00:00 2001 From: Eric Windmill Date: Mon, 27 Oct 2025 10:21:29 -0700 Subject: [PATCH 1/2] add auto-reply --- .github/workflows/auto-reply.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/auto-reply.yml diff --git a/.github/workflows/auto-reply.yml b/.github/workflows/auto-reply.yml new file mode 100644 index 0000000..d367691 --- /dev/null +++ b/.github/workflows/auto-reply.yml @@ -0,0 +1,23 @@ +name: Auto Reply to New PRs + +on: + pull_request: + types: [opened] + +jobs: + welcome: + runs-on: ubuntu-latest + permissions: + pull-requests: write # Grant write permission for creating comments + steps: + - name: Post Welcome Message + uses: actions/github-script@v5 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Thank you for opening this Pull Request! This repository is for demo purposes only. It's not maintained and there is no CI or merge rules. If you have permissions, you're free to merge the PR without review. If you'd like a review, please explicitly request it.' + }) \ No newline at end of file From bae73ff0858840d32311ba85430705e45b3f7a14 Mon Sep 17 00:00:00 2001 From: Eric Windmill Date: Mon, 27 Oct 2025 10:26:57 -0700 Subject: [PATCH 2/2] fix string in yaml --- .github/workflows/auto-reply.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-reply.yml b/.github/workflows/auto-reply.yml index d367691..1dc440a 100644 --- a/.github/workflows/auto-reply.yml +++ b/.github/workflows/auto-reply.yml @@ -19,5 +19,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'Thank you for opening this Pull Request! This repository is for demo purposes only. It's not maintained and there is no CI or merge rules. If you have permissions, you're free to merge the PR without review. If you'd like a review, please explicitly request it.' + body: "Thank you for opening this Pull Request! This repository is for demo purposes only. It's not maintained and there is no CI or merge rules. If you have permissions, you're free to merge the PR without review. If you'd like a review, please explicitly request it." }) \ No newline at end of file