GitXplorerGitXplorer
n

verify-todo

public
4 stars
0 forks
5 issues

Commits

List of commits on branch main.
Verified
ffa352ac028b4cdc8bc626471d33aa341b3ab7c9

Use checkout@v4

nnirinchev committed 8 months ago
Verified
952fb3ecf5029330fb4aa97711de4bd93e7fe5b2

Update action.yml

nnirinchev committed 8 months ago
Verified
9be6f76daddad71433e5deb1b58c517490e5c66e

Update some dependencies (#120)

nnirinchev committed 2 years ago
Verified
7582e8779efe4bc5c43e23f3b84e46901edbc050

Extract the todo entry into the gha message (#117)

nnirinchev committed 2 years ago
Verified
dba334a16f590c3ae2ecc0be7faa8096efc9e297

Bump json5 and tsconfig-paths (#111)

ddependabot[bot] committed 2 years ago
Verified
ccef781a48f2a66c52a4d64de9ed18d5fe944d38

Update action.yml

nnirinchev committed 2 years ago

README

The README file for this repository.

Verify TODOs have links

Verifies that // TODO comments in code contain a link to a Github issue or match a pattern specified by you. It doesn't create tickets on your behalf - it rather validates that the ticket link is added to the TODO.

Basic Usage

A simple workflow script can look like this:

name: "Workflow"
on: ["pull_request"]
jobs:
  build:
    runs-on: "ubuntu-latest"
    steps:
      - uses: "actions/checkout@v2"
      - name: "Verify TODOs"
        uses: "nirinchev/verify-todo@v1"
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          include: "**/*.+(cs|cpp|hpp)
          exclude: "external/**"

Inputs

Input Required Description
token true The Github token used by this action. This should be set to ${{ secrets.GITHUB_TOKEN }}.
include false A glob specifying a pattern for including files to process. Any file not matched by this glob will be ignored.
exclude false A glob specifying a pattern for excluding files from processing. Any file matched by this glob will be ignored.
pattern false A Regex pattern that will be used to match the text of the TODO item. By default, we'll look for a github link in the TODO text, but if you use a different issue tracker, you can provide the pattern here. For example, MYPROJECT-[0-9]+.

Supported triggers

Currently, only pull_request triggers are supported. It would be trivial to add support for push triggers, but I typically rely on PRs being green before merging and rarely check the build status of the main branch.

Existing TODOs

This action will only evaluate files that were changed between the base and the head commit. This means that it will not generate warnings for existing TODOs without a link unless those were modified by the current PR.

Contributing & Issues

This action is developed as a getting started project and is not extensively tested. If you encounter problems, feel free to open an issue or submit a pull request.