git-jira-log 1.0 released

A while ago I finished version 1.0 of my library to extract a changelog in form of a Jira filter based on ticket names in the git log of the project. This library can be used as command line utility as well as library. The git part is based on JGit. I wrote about it here already. A first version of a plugin for Jenkins is ready, too, documentation and examples are expected soon.…

Keep reading

Changelog with GIT and JIRA: Creating JIRA filter URL based on git commits between two revisions with bash

I am working on a library and a jenkins plugin doing this right, but until then, here is a shell script which creates the URL to a JIRA filter containing the tickets mentioned in all commit messages between the two given revisions. Besides git and the standard command line tools (grep, sed, tr, egrep, sort, uniq) it needs gawk installed on your system. Unfortunately I didn't manage to get the variables replaces within gawk's gensub function. If you know how, drop me a line. As a workaround I am sure…

Keep reading

Getting commits between annotated tags with JGit

JGit does not support getting commits between annotated tags (or any revision and an annotated tag) as you might expect. Following code will work perfectly with commit hashs and branch identifiers: public Iterable<RevCommit> getJGitLogBetween(final String rev1, final String rev2) throws IOException, GitAPIException { Ref refFrom = repo.getRef(rev1); Ref refTo = repo.getRef(rev2); return new Git(repo).log().addRange(refFrom.getObjectId(), refTo.getObjectId()).call(); } Calling this with an annotated tag (as the maven release plugin is creating, for example): @Test public void testGetGitLogBetweenAnnotatedTagAndHead() throws Exception { Repository repository…

Keep reading

Aligning form elements in one line using bootstrap's grid

Bootstrap's standard CSS for forms and inputs does support more than one input elements and labels in one line using bootstrap's CSS class form-inline. You can use Bootstrap's grid system to align your input elements and labels, if you want a more complex, but still consistent form layout by adding a few lines of CSS. This is an example aligning two datepicker input elements with inline labels in one line, using the grid system: To keep the elements vertically aligned in one row, I created the flex-v-center CSS class. .flex-v-center…

Keep reading

Brackets on HiDPI screens on Linux

Chrome beta for Linux is supporting HiDPI scaling now, but Brackets, which is based on Chromium, does not yet. If you don't want to wait, you can use Brandon Bertelsen's extension ui-too-small, available in Bracket's extension registry. This extension does not affect the editor font, as this can be changed by the user going to View -> Themes. Feel free to extend the CSS for more elements or plugin windows I missed. You can find the source on github.…

Keep reading