Comments (8)
No way! @jimthedev, this is yours? Sweet! π
from cz-cli.
π Hi @kentcdodds! Yes it is :) Glad you're enjoying it.
I think this should totally be possible. I use Bitbucket at work with Jira so it would actually be nice to have.
Here's how we'd do it.
- We'd fork the conventional changelog adapter and call the new repo something like cz-jira-smart-commit.
- We'd edit package.json and index.js in our newly forked adapter repo to ask for any fields that we want to prompt the user for. We'd also edit the formatting of the final message that gets used for the commit message. It is at the end of index.js.
- We'd publish it as an npm module.
- Any user wanting to use this adapter would just edit their .cz.json in the root of the project to point to that adapter and add the adapter to their package.json file.
I probably won't be able to get to it for a week or two but if you want to play with it then let me know and I can set you up in the organization so that you can add adapter repos.
Jim
from cz-cli.
Wow, this is remarkably pluggable/simple. I'll take a stab at it!
from cz-cli.
Could you at least create the initial repo and add me as a team member?
from cz-cli.
@kentcdodds You're an admin, now. ;) Name it whatever you like. I need to write some tests and figure out if there is a better way to deal with whitespace formatting in Inquirer prompts, but otherwise it works pretty well for now. Glad you're using it and hacking on it.
from cz-cli.
I'll give it a go!
from cz-cli.
Well, I'm pretty sure we're all set! https://github.com/commitizen/cz-jira-smart-commit
from cz-cli.
Great! Psyched to give this a go. Thanks for the repo @kentcdodds!
from cz-cli.
Related Issues (20)
- NPM warning breaks `cz` prompts when using `scripts` entry
- commitizen produces empty commit message after answering prompts HOT 3
- Showing timing (progress) during commit cli
- Text alignment issues in smaller terminal windows on Mac HOT 2
- bug: issue with LRU cache, cannot execute `git-cz`
- [Config loader] check if config key is in package.json before accepting it as a config file HOT 1
- Weird behaviour when using cz cli (global) outside a git repo
- pathspec 'git' did not match any file(s) known to git HOT 2
- Feature request: Submit on the command line: Is there a way to return to the previous field? HOT 1
- Feature request: Whether to support multiple types of commits in one submission HOT 1
- commit npm script actually works
- husky hook does not work HOT 3
- Nestor David SΓ‘nchez
- Behaves the same as git commit HOT 1
- Provide a way to prompt to amend commit message only
- cz commit error
- Question: Is it possible to write an adapter in ES6?
- Cannot create release version after creating a pre-release version
- PNPM support is broken
- PNPM support is broken HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cz-cli.