TaskFlow is a CLI tool for managing JIRA issues and Git branches, designed to streamline your development workflow.
- Authenticate with JIRA
- Create JIRA tickets and corresponding Git branches
- List assigned or recently viewed issues
- Describe specific issues
- Assign issues to yourself or others
- Update issue statuses
- Add comments to issues
- Create consistently named commits
Local vs global configuration
- Node.js (v14 or later)
- npm (v6 or later)
- Git
-
Close the repository
git clone https://github.com/jpbriggs408/taskflow.git cd taskflow -
Install dependencies:
npm install
or
pnpm install
-
Create a
.envfile in the root directory with your JIRA credentials:JIRA_URL=your_domain.atlassian.net JIRA_EMAIL=your_email@example.com JIRA_API_TOKEN=your_api_token JIRA_PROJECT_KEY=your_project_key (e.g.: FRI) JIRA_ACCOUNT_ID=your-account-id
Here is an example:
JIRA_URL=etsy.atlassian.net JIRA_EMAIL=jbriggs@etsy.com JIRA_API_TOKEN=not-telling-sorry JIRA_PROJECT_KEY=FRI JIRA_ACCOUNT_ID=0123456789
-
Link the package to use it globally:
npm link
Now you can use taskflow command in your terminal.
-
Make changes to the TypeScript files in the
srcdirectory. -
Compile the TypeScript code:
pnpm run build
-
Test your changes:
taskflow <command>
-
If you add new files, update
src/index.tsto include them.
To build the code for production:
pnpm run buildThis command will:
- Compile TypeScript to JavaScript
- Apply any path aliases
- Add necessary
.jsextensions to imports in the compiled files
The compiled code will be in the dist directory.
Here are some example commands:
taskflow create
taskflow auth
taskflow listFor more detailed usage instructions, run:
taskflow helpContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.