Skip to content

Verify PR Template is filled out

Actions
Verifies that the PR description is not identical to the PR template, impliying that it wasnt filled out
v1.0.2
Latest
Star (0)

Tags

 (1)

PR Template Fillout Verifier

A simple Github action which allows several different actions be taken when a PR body is determined to be identical to the PR template.

Permissions

contents: read is required to read the PR template

contents: write is required for converting a PR to a Draft

pull-requests: write is required to comment on the PR

Parameters

See https://github.com/foursquare/pr-template-fillout-verifier/blob/main/action.yaml#L3.

Example Usage

name: Check that PR was filled out

on:
  pull_request_target:
    types: [ opened, reopened, ready_for_review, edited ]

jobs:
  check_pr_description:
    runs-on: ubuntu-20.04
    permissions:
      contents: write
      pull-requests: write
    steps:
      - id: check-pr
        uses: foursquare/[email protected]
        if: github.event.pull_request.draft == false
        with:
          comment: 'Please fill out the PR template'
          fail: "true"
          convert-to-draft: "true"
          template-path: ".github/pull_request_template.md"

Verify PR Template is filled out is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Verifies that the PR description is not identical to the PR template, impliying that it wasnt filled out
v1.0.2
Latest

Tags

 (1)

Verify PR Template is filled out is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.