hobbs / jirret Goto Github PK
View Code? Open in Web Editor NEWGerrit hooks to update JIRA
Gerrit hooks to update JIRA
Consider having two jira projects with ids like "ABC" and "BC". Then you create a commit with a subject line saying "ABC-1 bugfix for blah blah".
As a result two jira issues will be commented by jirret: ABC-1 and BC-1.
re.findall is too greedy.
issue_needle = '(%s-[0-9]+)'
matches = re.findall(issue_needle % p, issue_haystack)
I've been told that when the hooks are called the working path is the git repo. So the script should just run normal git commands instead of using 'gerrit query' via the gerrit sshd.
This would make the setup of this hook simpler.
What license are you placing this code under?
So for example, in this commit message:
SAT-666 fix bug that prevents hailing
The ticket ID, as displayed in Gerrit, would be replaced with a link to that ticket on JIRA. I don't know if Gerrit can be configured to do this (just for display… of course we wouldn't want the actual commit message to be changed), or if it's out of the scope of this project.
It's a pain to have to ssh in and run "./jirret-process-hook update-projects", the script should probably auto update the projects periodically, or maybe it should just not store a list of projects on the FS, and just store them in memory.
Currently jirret seems to be running fine only when python 2.7 is installed.
Unfortunately standard installation for most production servers is python 2.4 :(
Jira has deprecated the xmlrpc interface in favour of their REST API, starting with Jira-7 release. Since jirret only uses the xmlrpc interface, this would presumably mean that jirret needs to be altered to use the newer API.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.