Skip to main content

Git-Asana CLI & Time Tracker

Project description

GitTask ⚡️

Seamlessly integrate your Git workflow with Asana. Track time, manage tasks, and link your development work directly to Asana without leaving your terminal.

🚀 A Day in the Life with GitTask

Imagine this: You grab your coffee ☕ and sit down to tackle a new feature.

  1. Start Working: gt checkout -b feature/login-page

    • You create a branch, and boom, GitTask asks if you want to create a corresponding Asana task. You say yes, add some tags, and you're off! Time tracking starts automatically. ⏱️
  2. Code & Chill: You code away. Need a lunch break? Just gt stop (or switch branches). When you're back, gt start resumes the timer. No more guessing how long you worked!

  3. Ship It: gt push

    • Your code goes up, and GitTask posts a neat summary of your commits directly to the Asana task. Your PM loves you. 💖
  4. Review Time: gt pr create

    • Opens a PR on GitHub and links it to your Asana task instantly.
  5. The Grand Finale: gt finish

    • The feature is approved. This command stops the timer, syncs your actual time to Asana, merges the PR, closes the Asana task, and even deletes your local branch. It's like magic. ✨

🛠️ Setup Guide

1. Installation

pip install gittask-cli

2. Authentication

🟣 Asana Setup

  1. Go to the Asana Developer Console -> "+ New access token".
  2. Name it "GitTask CLI" and copy the token.
  3. Run:
    gittask auth login
    

🐙 GitHub Setup (Optional)

Required for Pull Request features.

  1. Go to GitHub Tokens -> "Generate new token".
  2. Select "All repositories" (or specific ones).
  3. Permissions: Read/Write for Contents and Pull requests.
  4. Run:
    gittask auth login --github
    

3. Initialization

Select your default workspace and project:

gittask init

📖 Command Reference

🔄 Core Workflow

Command Description
gt checkout -b <branch> Start here. Creates a branch, links/creates an Asana task, and starts the timer.
gt track Track time on an Asana task without linking to a branch (e.g., meetings, code reviews).
gt status Shows current branch, task, and session duration.
gt finish The magic command. Stops timer, syncs time, merges PR, closes task, and deletes branch.

⏱️ Time Management

Command Description
gt stop Pause the timer (e.g., lunch break).
gt start Resume the timer.
gt sync Push local time logs to Asana.

🐙 Git & Collaboration

Command Description
gt commit -m "msg" Commits changes.
gt push Pushes to remote and posts a summary comment on the Asana task.
gt pr create Creates a GitHub PR linked to the Asana task.
gt pr list Lists open PRs.

🏷️ Task Extras

Command Description
gt tags add Add tags to the current task.
gt tags list View tags on the current task.

🖥️ GUI (Experimental)

Command Description
gt gui Launch the terminal-based graphical interface for visual task management.

Happy Coding! 🚀

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gittask_cli-0.2.0.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gittask_cli-0.2.0-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

Details for the file gittask_cli-0.2.0.tar.gz.

File metadata

  • Download URL: gittask_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gittask_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 47413eafc418a4bc122be13d744f2a64a751fd3ea09bed30ab07ad0a6cae3b2a
MD5 6888d6cb844319233a0351d0b52b8be0
BLAKE2b-256 1862734ec71a3da3ef84e6e394dc79084302257b09e898ec8f58d0f5dec798f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gittask_cli-0.2.0.tar.gz:

Publisher: publish.yml on AndreasLF/gittask-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gittask_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: gittask_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 42.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gittask_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b63dd26812af5a1ca0e13d10d37995fac60afa30b86de6aa4768194effb2e78
MD5 71c780e025d3ef4e8183a355ee5bc879
BLAKE2b-256 0846caa0fcd2892818b641303bfccdc658ead96c0d129cc398d5e6485ed14faa

See more details on using hashes here.

Provenance

The following attestation bundles were made for gittask_cli-0.2.0-py3-none-any.whl:

Publisher: publish.yml on AndreasLF/gittask-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page