-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
#!/usr/bin/env ruby | ||
require 'colorize' # Colorized Line | ||
# #!/usr/bin/env ruby | ||
# require 'colorize' # Colorized Line | ||
|
||
$regex = /^\(#[0-9]+\)\s[\d\D]*/ | ||
# $regex = /^\(#[0-9]+\)\s[\d\D]*/ | ||
|
||
# enforced custom commit message format | ||
def check_message_format | ||
message_file = ARGV[0] | ||
message = File.read(message_file) | ||
# # enforced custom commit message format | ||
# def check_message_format | ||
# message_file = ARGV[0] | ||
# message = File.read(message_file) | ||
|
||
if !$regex.match(message) | ||
puts "!!주의!! 커밋메시지 규칙에 어긋납니다.".red # If you dont wanna be colorized console, delete .red | ||
puts "" | ||
puts "[규칙]" | ||
puts "변수명 : ##변수##".blue # If you dont wanna be colorized console, delete .blue | ||
puts "" | ||
puts "(###이슈번호##) ##커밋메시지##" | ||
puts "" | ||
puts "예시".blue # If you dont wanna be colorized console, delete .blue | ||
puts "(#152) Initial Commit" | ||
exit 1 | ||
end | ||
end | ||
# if !$regex.match(message) | ||
# puts "!!주의!! 커밋메시지 규칙에 어긋납니다.".red # If you dont wanna be colorized console, delete .red | ||
# puts "" | ||
# puts "[규칙]" | ||
# puts "변수명 : ##변수##".blue # If you dont wanna be colorized console, delete .blue | ||
# puts "" | ||
# puts "(###이슈번호##) ##커밋메시지##" | ||
# puts "" | ||
# puts "예시".blue # If you dont wanna be colorized console, delete .blue | ||
# puts "(#152) Initial Commit" | ||
# exit 1 | ||
# end | ||
# end | ||
|
||
check_message_format | ||
# check_message_format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { FormLabelProps } from "../../FormLabel/types"; | ||
|
||
export interface ToggleProps | ||
extends Pick< | ||
React.InputHTMLAttributes<HTMLInputElement>, | ||
"onChange" | "className" | "checked" | "disabled" | ||
> { | ||
>, Omit<FormLabelProps, "label" | "labelSubText"> { | ||
label: string; | ||
reverse?: boolean; | ||
} |