Skip to content

tegonal/workflow-helper

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.