Sha256: b210b8ae270b118ab2a200e456565e0b7a63df0412b4181b7a456fe4b5db3cae
Contents?: true
Size: 597 Bytes
Versions: 6
Compression:
Stored size: 597 Bytes
Contents
# define yourself tasks here # or put them in a new .rake file # namespace :pre_commit do # desc "Check branch name style" # task :check_branch_name do # expected_branch_reg = /^(feature|bug|hotfix|misc|refactor)\/(\d*)?(\w*)/ # branch_name = Githook::Util.branch_name # if branch_name.include?("/") # valid = expected_branch_reg.match(branch_name) # else # valid = %w(develop staging master).include?(branch_name) # end # unless valid # puts "Branch name \"#{branch_name}\" doesn't match the expected foramt." # exit 1 # end # end # end
Version data entries
6 entries across 6 versions & 1 rubygems