Skip to content
thermometer

GitHub Action

Workflow Helper

v0.3.0 Latest version

Workflow Helper

thermometer

Workflow Helper

Utility to manage your actual workflow (not as in github workflow)

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Workflow Helper

uses: tegonal/[email protected]

Learn more about this action in tegonal/workflow-helper

Choose a version

Download EUPL Build Status Ubuntu Newcomers Welcome

Workflow Helper

Utility which helps in managing your workflows, i.e. development process, work process etc.


❗ You are taking a sneak peek at the next version. Please have a look at the README of the git tag in case you are looking for the documentation of the corresponding version. For instance, the README of v0.3.0.


Table of Content

Scripts

Workflow helper is currently featuring the following scripts:

TODO Checker

Provides ways to detect unwanted TODOs in files.

Following the output of running todo-checker --help:

Parameters:
-i|--issue-regex     (optional) regex used to match an issue number -- default: #d+
-d|--directory       (optional) specifies which directory (including sub directories) shall be analysed -- default: .
-t|--todo-regex      (optional) regex used to match todos -- default: TODO|FIXME

Examples:
# searches for todos in current directory
# uses default TodoIndicator TODO|FIXME
# uses default IssueIndicator #d+
todo-checker

# searches for todos in directory ./foo with default indicators
todo-checker -d ./foo
todo-checker --directory ./foo

# uses a custom TodoIndicator
todo-checker -t "TODOs?"
todo-checker --todo-regex "TODOs?"

# searches todos for a specific issue by using a custom IssueIndicator
todo-checker -i "#123"
todo-checker --issue-regex "#123"

# searches todos for specific issues by using a custom IssueIndicator
todo-checker -i "#123|op#478"
todo-checker --issue-regex "#123|op#478"

Usage GitHub Workflow

Following an example for the TODO checker script, executing the script twice with different arguments.

.github/workflows/workflow-helper.yml

name: Workflow-helper
on: [push, pull_request]
jobs:
  check:
    runs-on: ubuntu-latest
    steps:           
      - name: Check no todos
        uses: tegonal/workflow-helper@v1
        with:
          commands: 'todo-checker; todo-checker -i "proj#\d+"'

Usage Gitlab

Following an example for the TODO checker script, executing the script twice with different arguments.

.gitlab.yml

check-for-todos:
  image: tegonal/workflow-helper
  stage: check
  script: 
    - todo-checker
    - todo-checker -i "proj#\d+"  

Contributors and contribute

Our thanks go to code contributors as well as all other contributors (e.g. bug reporters, feature request creators etc.)

You are more than welcome to contribute as well:

License

Workflow helper is licensed under EUPL 1.2.