Skip to content

Fix robotpy PR commenting for real this time #2

Fix robotpy PR commenting for real this time

Fix robotpy PR commenting for real this time #2

name: Comment on PR for robotpy

Check failure on line 1 in .github/workflows/command-robotpy-pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/command-robotpy-pr.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: permissions
on:
pull_request_target:
types:
- opened
paths:
- 'wpilibNewCommands/**'
jobs:
permissions:
pull-requests: write
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.'
})