Skip to content

Commit c69d2a7

Browse files
committed
notes
1 parent 19bc900 commit c69d2a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/hooks/app/api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def parse_payload(raw_body, headers)
108108
# Load handler class
109109
def load_handler(handler_class_name, handler_dir)
110110
# Convert class name to file name (e.g., Team1Handler -> team1_handler.rb)
111+
# E.g.2: GithubHandler -> github_handler.rb
112+
# E.g.3: GitHubHandler -> git_hub_handler.rb
111113
file_name = handler_class_name.gsub(/([A-Z])/, '_\1').downcase.sub(/^_/, "") + ".rb"
112114
file_path = File.join(handler_dir, file_name)
113115

0 commit comments

Comments
 (0)