Skip to content

[TEST] Open a draft PR #5

[TEST] Open a draft PR

[TEST] Open a draft PR #5

name: 'NEW: Post Draft PR Notice'
on:
pull_request:
types: [opened]
jobs:
post-draft-notice:
name: 'post on new non-draft PR'
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Post notification to new non-draft PR
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \
-d '{"body": "Hello, and thank you for contributing!\n\nThis project is configured to run fewer workflows on draft PRs, so if you would like to receive pass/fail feedback from the test suite more quickly, please switch this PR to '"'"'draft'"'"' status.\n\nYou can mark the PR as '"'"'ready'"'"' whenever you like, to enable the more extensive set of checks."}'