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
.env
file in the root directory with your JIRA credentials:JIRA_URL=your_domain.atlassian.net [email protected] 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 [email protected] 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
src
directory. -
Compile the TypeScript code:
pnpm run build
-
Test your changes:
taskflow <command>
-
If you add new files, update
src/index.ts
to include them.
To build the code for production:
pnpm run build
This command will:
- Compile TypeScript to JavaScript
- Apply any path aliases
- Add necessary
.js
extensions 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 list
For more detailed usage instructions, run:
taskflow help
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.