Verify's all tasks are complete on a pull request's description body.
Within the PR's description body, identifies tasks by:
^ *- +\\[(?<checked> +|[xX])\\](?<name>.+)$If a different pattern is desired, pass a pattern value. Make sure to include the named groups:
name: name of the taskchecked
| Parameter | Is Required | Default | Description |
|---|---|---|---|
pattern |
false | See above | Expression to identify tasks on within a multiline context |
body |
false | Current context | If not passed, will default to the current PR context's body |
| Output | Description |
|---|---|
result |
true if all tasks are completed or no tasks found. false for any incomplete tasks. |
completed-count |
Number of completed tasks |
incomplete-count |
Number of incomplete tasks |
tasks |
Serlized array of tasks [{ checked: boolean, name: string }] |
name: 🛠️ PR Tasks Completed Check
on:
pull_request:
types: [edited, opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
task-check:
runs-on: ubuntu-latest
steps:
- name: Get work items from PR or Release
uses: im-open/pr-tasks-completed-action@v2See workflow automated test for more examples
TBD. Reusable workflows that:
- References this action in transitioning a Jira ticket during a successful deployment.
- Verifies a Jira ticket exists and has the correct properties
When creating new PRs please ensure:
- The action has been recompiled. See the Recompiling section below for more details.
- For major or minor changes, at least one of the commit messages contains the appropriate
+semver:keywords listed under Incrementing the Version. - The
README.mdexample has been updated with the new version. See Incrementing the Version. - The action code does not contain sensitive information.
If changes are made to the action's code in this repository, or its dependencies, you will need to re-compile the action.
# Installs dependencies and bundles the code
npm start
# Bundle the code (if dependencies are already installed)
npm run buildThese commands utilize esbuild to bundle the action and
its dependencies into a single file located in the dist folder.
This action uses git-version-lite to examine commit messages to determine whether to perform a major, minor or patch increment on merge. The following table provides the fragment that should be included in a commit message to active different increment strategies.
| Increment Type | Commit Message Fragment |
|---|---|
| major | +semver:breaking |
| major | +semver:major |
| minor | +semver:feature |
| minor | +semver:minor |
| patch | default increment type, no comment needed |
This project has adopted the im-open's Code of Conduct.
Copyright © 2022, Extend Health, LLC. Code released under the MIT license.