Use git hooks to automatically add JIRA ID at the start of each commit message.
Navigate to the root of the main project repository.
Create a copy of .git/hooks/commit-msg.sample
and name it commit-msg
.
require 'formula' | |
# Homebrew formula to install atlassian CLI tools | |
class I4nAppsAtlassianCli < Formula | |
version "3.9.0" | |
def release() "1" end # custom release field | |
def java_version() ENV["JAVA_VERSION"] || "1.6" end # java version to set JAVA_HOME | |
homepage 'https://marketplace.atlassian.com/plugins/org.swift.atlassian.cli' | |
url "https://marketplace.atlassian.com/download/plugins/org.swift.atlassian.cli/version/#{version.to_s.delete('.')}" |
%define __spec_install_post %{nil} | |
%define __os_install_post %{nil} | |
%define debug_package %{nil} | |
Summary: nsbogan-atlassian-cli | |
Name: nsbogan-atlassian-cli | |
Version: %{version} | |
Release: %{release} | |
License: Atlassian EULA Standard License | |
Vendor: Bob Swift Software, LLC | |
Packager: Maksym Grebenets <mgrebenets@gmail.com> |
import AppKit | |
typealias BaseObjCClass = NSObject | |
enum PureSwiftEnum { | |
case Value, AnotherValue | |
} | |
protocol PureSwiftProtocol { | |
var value: PureSwiftEnum { get } | |
var size: CGSize { get } |
// | |
// Copyright blah-blah | |
// | |
// --- | |
// Group of assignments | |
int x = 5; | |
int longVariableName = 444; | |
unsigned long long anotherVar = 3; |
#!/bin/bash | |
# Fix source file header by removing current header and inserting standard copyright notice | |
# Works for all C-based files, uses // comment style, current year and specified company name | |
# Doesn't work for empty files | |
# Temp directory | |
TMP_DIR=$(mktemp -dt "XXXXXXXX") | |
# Log |
import Foundation | |
/// Timeout Options | |
struct Options { | |
let timeout: Double = 1 // timeout in seconds | |
let message = "Timeout failed." // message to display on timeout | |
} | |
/// Wait for something with timeout options | |
func wait(options: Options) { |
def platform_call(platform_name, &block) | |
puts "SupportedPlatforms.verify!(platform_name)" | |
puts "self.current_platform = platform_name" | |
block.call | |
puts "self.current_platform = nil" | |
end | |
def platform_yield(platform_name, &block) |