# TODO[Enhancement]: Make config file
# Sometimes you might wanna have TODOs in your tests.
# Right now krypto will completely ignore any file with the
# substring "test" in the path. I would want to be able to
# configure this behaviour. Perhaps read from pyproject.toml?`
to GitHub issues on the repository you're working on!
For this to work you need to have a github token in your environment variables. To acquire a token navigate to Developer Settings and generate one.
With the token in hand, simply,
export KRYPTO_TOKEN = <token_here>
or
$env:KRYPTO_TOKEN = token_here
If you want the token to persist across sessions you need to add it to your .bashrc
or $PROFILE
.
First, create a TODO in the form of a block comment. The TODO must contain a title. Body and labels are optional.
Examples:
-
Title only, no body or labels
# TODO: This is a title
-
Title, body, no labels
# TODO: This is a title # This is in the TODO body
-
Title, body and labels
# TODO[Enhancement]: This is a title # This is in the TODO body
-
Multiple labels
# TODO[Enhancement, Bug, Documentation]: This is a title
Valid separators include ,
/
#
~
\
Pass the directory to look in for TODOs.
krypto run <path-to-dir>
To perform the collection and parsing of TODOs but not the HTTP request to github, pass the --dry
flag to the run command.
krypto run <path-to-dir> --dry
Krypto does not look in tests/ at the moment.
This action runs Krypto on your code and creates issues on the repo on your behalf.
Required The path to the directory to scan for TODOs.
Required A personal access token for github to use to authenticate the creation of issues on your repository.
uses: antoniouaa/krypto@v2
with:
dir: "."
env:
KRYPTO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Run krypto on the root of the project
Inspired by tsoding/snitch