Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amll-dev/amll-ttml-db
/ functions
Functions
62 in github.com/amll-dev/amll-ttml-db
⨍
Functions
62
◇
Types & classes
16
↓ 10 callers
Function
run_git_command
(args: &[&str])
scripts/lyric_checker_bot/src/git_utils.rs:6
↓ 7 callers
Method
post_comment
(&self, issue_or_pr_number: u64, body: &str)
scripts/lyric_checker_bot/src/github_api.rs:675
↓ 5 callers
Function
checkout_main_branch
()
scripts/lyric_checker_bot/src/git_utils.rs:28
↓ 4 callers
Method
post_decline_comment
发表拒绝评论并关闭 Issue
scripts/lyric_checker_bot/src/github_api.rs:187
↓ 3 callers
Method
verify_pr_permission
验证用户是否是原始 Issue 作者
scripts/lyric_checker_bot/src/github_api.rs:684
↓ 2 callers
Function
add_path
(path_to_add: &Path)
scripts/lyric_checker_bot/src/git_utils.rs:45
↓ 2 callers
Function
cleanup_test_env
(path: &Path)
scripts/lyric_checker_bot/src/main.rs:427
↓ 2 callers
Function
commit
(message: &str)
scripts/lyric_checker_bot/src/git_utils.rs:37
↓ 2 callers
Function
process_issue
处理单个 Issue
scripts/lyric_checker_bot/src/main.rs:324
↓ 2 callers
Function
process_ttml_string
(original_ttml: &str)
scripts/lyric_checker_bot/src/main.rs:76
↓ 2 callers
Function
setup_test_env
(dir_name: &str)
scripts/lyric_checker_bot/src/main.rs:415
↓ 1 callers
Function
add_file_to_git
(file: &str)
scripts/rebuild-folder/src/main.rs:133
↓ 1 callers
Method
add_labels_to_pr
( &self, pr_number: u64, requester: &str, labels_str: &str, comment_id
scripts/lyric_checker_bot/src/github_api.rs:383
↓ 1 callers
Function
check_is_contributor
从贡献者名单中寻找给定 GitHub ID 的用户,返回 False 代表不在名单中 一个典型的应用是判断用户是否是第一次提交以添加 “首次投稿” 标签
scripts/lyric_checker_bot/src/main.rs:41
↓ 1 callers
Function
checkout_branch
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:65
↓ 1 callers
Method
close_pr_for_user
( &self, pr_number: u64, requester: &str, reason: Option<&str>, )
scripts/lyric_checker_bot/src/github_api.rs:446
↓ 1 callers
Function
commit
(message: &str)
scripts/rebuild-folder/src/main.rs:144
↓ 1 callers
Function
copy_ttml_file
(raw_lyric_path: &Path, dest_dir: &Path, id_name: &str)
scripts/rebuild-folder/src/main.rs:254
↓ 1 callers
Function
create_branch
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:33
↓ 1 callers
Function
delete_branch_if_exists
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:53
↓ 1 callers
Method
execute_git_changes
( &self, branch_name: &str, file_path: &Path, context: &PrUpdateContext<'_>,
scripts/lyric_checker_bot/src/github_api.rs:585
↓ 1 callers
Method
find_target_file
( &self, pr_number: u64, root_path: &Path, )
scripts/lyric_checker_bot/src/github_api.rs:557
↓ 1 callers
Function
force_push
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:73
↓ 1 callers
Function
generate_contributor_report
( layout: &ProjectLayout, contribution_map: HashMap<Cow<str>, Contributor>, )
scripts/rebuild-folder/src/main.rs:260
↓ 1 callers
Function
generate_zip_archive
(layout: &ProjectLayout, entries: &[std::fs::DirEntry])
scripts/rebuild-folder/src/main.rs:354
↓ 1 callers
Function
get_current_git_hash
()
scripts/rebuild-folder/src/main.rs:166
↓ 1 callers
Function
handle_command
处理由 `issue_comment` 事件触发的命令
scripts/lyric_checker_bot/src/main.rs:184
↓ 1 callers
Function
handle_scheduled_run
按计划执行,检查所有待处理的 Issues
scripts/lyric_checker_bot/src/main.rs:301
↓ 1 callers
Function
handle_single_issue_event
( github: &github_api::GitHubClient, http_client: &Client, root_path: &Path, )
scripts/lyric_checker_bot/src/main.rs:278
↓ 1 callers
Function
has_any_non_zero_timestamp
(lines: &[LyricLine])
scripts/lyric_checker_bot/src/validator.rs:56
↓ 1 callers
Method
has_bot_commented
(&self, issue_number: u64)
scripts/lyric_checker_bot/src/github_api.rs:155
↓ 1 callers
Function
has_staged_changes
()
scripts/lyric_checker_bot/src/git_utils.rs:77
↓ 1 callers
Method
init_directories
(&self, gen_folder: bool)
scripts/rebuild-folder/src/main.rs:54
↓ 1 callers
Function
is_git_worktree_clean
()
scripts/rebuild-folder/src/main.rs:125
↓ 1 callers
Method
list_experimental_issues
获取所有带 "实验性歌词提交/修正" 标签的 Issue
scripts/lyric_checker_bot/src/github_api.rs:106
↓ 1 callers
Function
load_raw_lyrics
(raw_dir: &Path)
scripts/rebuild-folder/src/main.rs:180
↓ 1 callers
Method
post_pr_failure_comment
( &self, pr_number: u64, requester: &str, reason: &str, ttml_content:
scripts/lyric_checker_bot/src/github_api.rs:736
↓ 1 callers
Method
post_success_and_create_pr
(&self, context: &PrContext<'_>)
scripts/lyric_checker_bot/src/github_api.rs:213
↓ 1 callers
Method
pr_for_issue_exists
检查与指定 Issue 关联的 PR 是否已存在 # 参数 `issue_number` - 需要检查的 Issue 编号 # 返回 `Ok(true)` - 如果已存在一个开放的、由机器人创建的 PR `Ok(false)` - 如果不存在
scripts/lyric_checker_bot/src/github_api.rs:74
↓ 1 callers
Function
process_lyric_content
(file_content: &str)
scripts/rebuild-folder/src/main.rs:208
↓ 1 callers
Function
pull_branch
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:69
↓ 1 callers
Function
push
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:41
↓ 1 callers
Function
push
(branch: &str)
scripts/rebuild-folder/src/main.rs:155
↓ 1 callers
Method
refresh_pr_metadata
( &self, pr: &octocrab::models::pulls::PullRequest, context: &PrUpdateContext<'_>,
scripts/lyric_checker_bot/src/github_api.rs:625
↓ 1 callers
Method
send_feedback_reaction
(&self, comment_id: u64)
scripts/lyric_checker_bot/src/github_api.rs:664
↓ 1 callers
Method
update_pr
(&self, context: &PrUpdateContext<'_>)
scripts/lyric_checker_bot/src/github_api.rs:504
↓ 1 callers
Function
validate_lyric_lines
(lines: &[LyricLine], errors: &mut Vec<String>)
scripts/lyric_checker_bot/src/validator.rs:41
↓ 1 callers
Function
validate_lyrics_and_metadata
(result: &TTMLResult)
scripts/lyric_checker_bot/src/validator.rs:3
↓ 1 callers
Function
validate_metadata
(meta: &TTMLMetadata, errors: &mut Vec<String>)
scripts/lyric_checker_bot/src/validator.rs:17
↓ 1 callers
Function
validate_single_line
(line_idx: usize, line: &LyricLine, errors: &mut Vec<String>)
scripts/lyric_checker_bot/src/validator.rs:68
Method
build_body
(base_text: &str, original_lyric: Option<&str>, max_len: usize)
scripts/lyric_checker_bot/src/github_api.rs:750
Method
from_str
(file_name: &str)
scripts/rebuild-folder/src/main.rs:101
Method
generate_body_content
( issue_number: u64, user_login: &str, metadata: &TTMLMetadata, remarks: &str,
scripts/lyric_checker_bot/src/github_api.rs:332
Method
generate_pr_title
根据 Issue 标题和元数据生成 Pull Request 的标题。 如果 Issue 标题仅为标签或为空,则从元数据中提取信息。
scripts/lyric_checker_bot/src/github_api.rs:311
Function
main
()
scripts/lyric_checker_bot/src/main.rs:135
Function
main
()
scripts/rebuild-folder/src/main.rs:416
Method
new
(token: String, owner: String, repo: String)
scripts/lyric_checker_bot/src/github_api.rs:57
Method
new
()
scripts/rebuild-folder/src/main.rs:40
Method
parse_issue_body
解析 Issue 的正文
scripts/lyric_checker_bot/src/github_api.rs:125
Method
parse_issue_number_from_pr_body
从 PR 的正文中解析出关联的 Issue 编号
scripts/lyric_checker_bot/src/github_api.rs:492
Function
test_check_is_contributor_detection
()
scripts/lyric_checker_bot/src/main.rs:432
Function
test_check_is_contributor_missing_file
()
scripts/lyric_checker_bot/src/main.rs:456