App::TimeTracker::Command::GitHub - App::TimeTracker GitHub plugin
version 1.002
Connect tracker with GitHub.
Using the GitHub plugin, tracker can fetch the name of an issue and use it as the task's description; generate a nicely named git branch (if you're also using the Git plugin).
git
Git
Add GitHub to the list of plugins.
GitHub
add a hash named github, containing the following keys:
github
Your github user name. Best stored in your global TimeTracker config file.
Your personal access token. Get it from your github settings (Developer Settings, Personal access token): https://github.com/settings/tokens
Best stored in your global TimeTracker config file.
The name of the repository you are working on. Currently a required entry to the config file, but we might upgrade it to a command line param and/or try to guess it from the current working dir or your git config.
Optional.
Set this to the URL of your local GitHub Enterprise installation.
If the project you are working on has an upstream project where issues are handled, then you can set upstream to a hash of user and repo (like on a normal project) to fetch issues from there.
No new commands
~/perl/Your-Project$ tracker start --issue 42
If --issue is set and we can find an issue with this id in your current repo
--issue
set or append the issue name in the task description ("Rev up FluxCompensator!!")
add the issue id to the tasks tags ("issue#42")
if Git is also used, determine a save branch name from the issue name, and change into this branch ("42-rev-up-fluxcompensator")
TODO: assign to your user, if set_assignee is set and issue is not assigned
set_assignee
TODO: reopen a closed issue if reopen is set
reopen
TODO: modifiy the labels by adding all labels listed in labels_on_start.add and removing all lables listed in labels_on_start.add
labels_on_start.add
Thomas MANTL
Thomas Klausner <domm@plix.at>
This software is copyright (c) 2020 by Thomas Klausner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::TimeTracker::Command::GitHub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::TimeTracker::Command::GitHub
CPAN shell
perl -MCPAN -e shell install App::TimeTracker::Command::GitHub
For more information on module installation, please visit the detailed CPAN module installation guide.