Skip to content

A GitHub action that checks if all tasks are completed in the pull requests.

License

Notifications You must be signed in to change notification settings

breakawaydata/pr-tasks-completed-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PR TaskList Completed Checker Action

A GitHub action that checks if all tasks are completed in the pull requests.

Usage

Create a workflow

Put this file in the .github/workflows/pr_tasklist_checker.yaml

name: 'PR TaskList Completed Checker'
on: 
  pull_request:
    types: [edited, opened, synchronize, reopened]
  merge_group:
    types: [checks_requested] 

jobs:
  task-check:
    runs-on: ubuntu-latest
    steps:
      - uses: venkatsarvesh/[email protected]
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"

Ensure that Github Actions are enabled in your repo:

Enabling Github Actions

After you commit and merge, ensure the workflow is setup to block merging going forward. Under branch protections:

Example Branch Protection Setup to block merging

Check whether tasks are completed

Add a pull request template to your repository (.github/PULL_REQUEST_TEMPLATE.md). See the example in this repo for a good template to use.

For example:

## Checklist
- [ ] Completed code review
- [ ] Ran unit tests
- [ ] Completed e2e tests

Create a pull request that contained tasks list to your repository. This will start a workflow automatically to check whether tasks are completed.

Every update on a pull request will start a new workflow automatically to check pending tasks.

All tasks completed: All tasks completed

Some tasks are still pending:

Some tasks are still pending

You can check a list of uncompleted tasks at the Actions page on clicking Details. List of pending tasks

📝 Licence

MIT

About

A GitHub action that checks if all tasks are completed in the pull requests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 59.6%
  • TypeScript 40.4%