Script get tack number from branch name prefix/111-fix-some-stuff => #111 or prefix/fix-some-stuff-111 => #111
You may add this scripts to $repo/.git/hooks/ or setup hooks template https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook
| declare module 'filepond' { | |
| type Func = (...args: any[]) => any | |
| type Source = string | File | Blob | |
| type Headers = {[header: string]: string} | |
| type Process = ( | |
| isFinite: boolean, | |
| loaded: number, |
Script get tack number from branch name prefix/111-fix-some-stuff => #111 or prefix/fix-some-stuff-111 => #111
You may add this scripts to $repo/.git/hooks/ or setup hooks template https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook
| { | |
| "env": { | |
| "node": true, | |
| "mocha": true, | |
| "es6": true | |
| }, | |
| extends: "google", | |
| "rules": { | |
| "camelcase": "off", | |
| "indent": ["error", 4, {"SwitchCase": 1}], |
| import React from 'react'; | |
| import {connect} from 'react-redux'; | |
| import {Link} from 'react-router'; | |
| import {fetchCurrentUser} from '../../common/ducks/index'; | |
| function stateToProps(state) { | |
| return { | |
| user: state.$user | |
| }; |
| import math | |
| import json | |
| from glob import glob | |
| from lxml import etree | |
| import geopy | |
| from geopy.distance import VincentyDistance | |
| def calculate_initial_compass_bearing(pointA, pointB): |
| from tornado.web import RequestHandler | |
| class HelloHandler(RequestHandler): | |
| def get(self): | |
| self.write('Hello world!') |
| OPERATORS = { | |
| '*': lambda a, b: a * b, | |
| '/': lambda a, b: a / b, | |
| '+': lambda a, b: a + b, | |
| '-': lambda a, b: a - b | |
| } | |
| def polish_eval(exp): | |
| exp_list = exp.split(' ') |
| # -*- python -*- | |
| # encoding: utf-8 | |
| # ex: set syntax=python: | |
| from libs import project | |
| from os.path import expanduser | |
| from buildbot.buildslave import BuildSlave | |
| from buildbot.changes.filter import ChangeFilter | |
| from buildbot.config import BuilderConfig | |
| from buildbot.process.factory import BuildFactory | |
| from buildbot.schedulers.basic import SingleBranchScheduler |