コミットメッセージのバリデーションには commitlint
( https://github.com/conventional-changelog/commitlint ) を使用します。
またコミットメッセージは次の規約に準拠します。
https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional
コミットメッセージのフォーマットは次の通りです。
コミットメッセージのバリデーションには commitlint
( https://github.com/conventional-changelog/commitlint ) を使用します。
またコミットメッセージは次の規約に準拠します。
https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional
コミットメッセージのフォーマットは次の通りです。
if (~window.navigator.userAgent.indexOf('Trident')) { | |
location.href = 'https://getfirefox.com'; | |
} |
function upload () { | |
local src="$1" | |
# ... | |
mv "$temp" "$src" | |
clean_src () { | |
rm "$src" | |
} | |
trap clean_src EXIT |
import { createConnection, getConnection, Entity, getRepository } from "typeorm"; | |
import { PrimaryGeneratedColumn, Column } from "typeorm"; | |
@Entity() | |
export class MyEntity { | |
@PrimaryGeneratedColumn() | |
id?: number; | |
@Column() | |
name?: string; |
'use strict'; | |
module.exports = { | |
types: [ | |
{ | |
value: 'feat', | |
name: 'feat: 新機能', | |
title: 'Features' | |
}, | |
{ | |
value: 'fix', |
" 自動で YAML に変換して書きだす (*.x.yaml とすること) {{{ | |
function! s:yaml_to_json() | |
let l:from = expand('%') | |
let l:to = expand('%:r:r') . '.json' | |
let l:result = system('ruby -rjson -ryaml -e "puts(JSON.pretty_generate(YAML.load(ARGF.read)))" ' . shellescape(l:from) . ' > ' . shellescape(l:to)) | |
if v:shell_error | |
echoerr printf("Failed to yaml_to_json: %d\n%s", v:shell_error, l:result) | |
endif | |
endfunction |