From 27babe5584e7f09b8d7b9b6d11d623ff0ef5b57b Mon Sep 17 00:00:00 2001 From: Vasista Vovveti Date: Sat, 4 May 2024 08:37:45 -0700 Subject: [PATCH] [ci] Comment on command PRs to open a RobotPy PR (#6574) --- .github/workflows/command-robotpy-pr.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/command-robotpy-pr.yml diff --git a/.github/workflows/command-robotpy-pr.yml b/.github/workflows/command-robotpy-pr.yml new file mode 100644 index 0000000000..5115109835 --- /dev/null +++ b/.github/workflows/command-robotpy-pr.yml @@ -0,0 +1,23 @@ +name: Comment on PR for robotpy + +on: + pull_request: + types: + - opened + paths: + - 'wpilibNewCommands/**' + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - name: Comment on PR + uses: actions/github-script@v7 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'This PR modifies commands. Please open a corresponding PR in [Python Commands](https://github.com/robotpy/robotpy-commands-v2/) and include a link to this PR.' + })