MCPcopy Create free account

hub / github.com/amll-dev/amll-ttml-db / functions

Functions62 in github.com/amll-dev/amll-ttml-db

↓ 10 callersFunctionrun_git_command
(args: &[&str])
scripts/lyric_checker_bot/src/git_utils.rs:6
↓ 7 callersMethodpost_comment
(&self, issue_or_pr_number: u64, body: &str)
scripts/lyric_checker_bot/src/github_api.rs:675
↓ 5 callersFunctioncheckout_main_branch
()
scripts/lyric_checker_bot/src/git_utils.rs:28
↓ 4 callersMethodpost_decline_comment
发表拒绝评论并关闭 Issue
scripts/lyric_checker_bot/src/github_api.rs:187
↓ 3 callersMethodverify_pr_permission
验证用户是否是原始 Issue 作者
scripts/lyric_checker_bot/src/github_api.rs:684
↓ 2 callersFunctionadd_path
(path_to_add: &Path)
scripts/lyric_checker_bot/src/git_utils.rs:45
↓ 2 callersFunctioncleanup_test_env
(path: &Path)
scripts/lyric_checker_bot/src/main.rs:427
↓ 2 callersFunctioncommit
(message: &str)
scripts/lyric_checker_bot/src/git_utils.rs:37
↓ 2 callersFunctionprocess_issue
处理单个 Issue
scripts/lyric_checker_bot/src/main.rs:324
↓ 2 callersFunctionprocess_ttml_string
(original_ttml: &str)
scripts/lyric_checker_bot/src/main.rs:76
↓ 2 callersFunctionsetup_test_env
(dir_name: &str)
scripts/lyric_checker_bot/src/main.rs:415
↓ 1 callersFunctionadd_file_to_git
(file: &str)
scripts/rebuild-folder/src/main.rs:133
↓ 1 callersMethodadd_labels_to_pr
( &self, pr_number: u64, requester: &str, labels_str: &str, comment_id
scripts/lyric_checker_bot/src/github_api.rs:383
↓ 1 callersFunctioncheck_is_contributor
从贡献者名单中寻找给定 GitHub ID 的用户,返回 False 代表不在名单中 一个典型的应用是判断用户是否是第一次提交以添加 “首次投稿” 标签
scripts/lyric_checker_bot/src/main.rs:41
↓ 1 callersFunctioncheckout_branch
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:65
↓ 1 callersMethodclose_pr_for_user
( &self, pr_number: u64, requester: &str, reason: Option<&str>, )
scripts/lyric_checker_bot/src/github_api.rs:446
↓ 1 callersFunctioncommit
(message: &str)
scripts/rebuild-folder/src/main.rs:144
↓ 1 callersFunctioncopy_ttml_file
(raw_lyric_path: &Path, dest_dir: &Path, id_name: &str)
scripts/rebuild-folder/src/main.rs:254
↓ 1 callersFunctioncreate_branch
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:33
↓ 1 callersFunctiondelete_branch_if_exists
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:53
↓ 1 callersMethodexecute_git_changes
( &self, branch_name: &str, file_path: &Path, context: &PrUpdateContext<'_>,
scripts/lyric_checker_bot/src/github_api.rs:585
↓ 1 callersMethodfind_target_file
( &self, pr_number: u64, root_path: &Path, )
scripts/lyric_checker_bot/src/github_api.rs:557
↓ 1 callersFunctionforce_push
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:73
↓ 1 callersFunctiongenerate_contributor_report
( layout: &ProjectLayout, contribution_map: HashMap<Cow<str>, Contributor>, )
scripts/rebuild-folder/src/main.rs:260
↓ 1 callersFunctiongenerate_zip_archive
(layout: &ProjectLayout, entries: &[std::fs::DirEntry])
scripts/rebuild-folder/src/main.rs:354
↓ 1 callersFunctionget_current_git_hash
()
scripts/rebuild-folder/src/main.rs:166
↓ 1 callersFunctionhandle_command
处理由 `issue_comment` 事件触发的命令
scripts/lyric_checker_bot/src/main.rs:184
↓ 1 callersFunctionhandle_scheduled_run
按计划执行,检查所有待处理的 Issues
scripts/lyric_checker_bot/src/main.rs:301
↓ 1 callersFunctionhandle_single_issue_event
( github: &github_api::GitHubClient, http_client: &Client, root_path: &Path, )
scripts/lyric_checker_bot/src/main.rs:278
↓ 1 callersFunctionhas_any_non_zero_timestamp
(lines: &[LyricLine])
scripts/lyric_checker_bot/src/validator.rs:56
↓ 1 callersMethodhas_bot_commented
(&self, issue_number: u64)
scripts/lyric_checker_bot/src/github_api.rs:155
↓ 1 callersFunctionhas_staged_changes
()
scripts/lyric_checker_bot/src/git_utils.rs:77
↓ 1 callersMethodinit_directories
(&self, gen_folder: bool)
scripts/rebuild-folder/src/main.rs:54
↓ 1 callersFunctionis_git_worktree_clean
()
scripts/rebuild-folder/src/main.rs:125
↓ 1 callersMethodlist_experimental_issues
获取所有带 "实验性歌词提交/修正" 标签的 Issue
scripts/lyric_checker_bot/src/github_api.rs:106
↓ 1 callersFunctionload_raw_lyrics
(raw_dir: &Path)
scripts/rebuild-folder/src/main.rs:180
↓ 1 callersMethodpost_pr_failure_comment
( &self, pr_number: u64, requester: &str, reason: &str, ttml_content:
scripts/lyric_checker_bot/src/github_api.rs:736
↓ 1 callersMethodpost_success_and_create_pr
(&self, context: &PrContext<'_>)
scripts/lyric_checker_bot/src/github_api.rs:213
↓ 1 callersMethodpr_for_issue_exists
检查与指定 Issue 关联的 PR 是否已存在 # 参数 `issue_number` - 需要检查的 Issue 编号 # 返回 `Ok(true)` - 如果已存在一个开放的、由机器人创建的 PR `Ok(false)` - 如果不存在
scripts/lyric_checker_bot/src/github_api.rs:74
↓ 1 callersFunctionprocess_lyric_content
(file_content: &str)
scripts/rebuild-folder/src/main.rs:208
↓ 1 callersFunctionpull_branch
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:69
↓ 1 callersFunctionpush
(branch_name: &str)
scripts/lyric_checker_bot/src/git_utils.rs:41
↓ 1 callersFunctionpush
(branch: &str)
scripts/rebuild-folder/src/main.rs:155
↓ 1 callersMethodrefresh_pr_metadata
( &self, pr: &octocrab::models::pulls::PullRequest, context: &PrUpdateContext<'_>,
scripts/lyric_checker_bot/src/github_api.rs:625
↓ 1 callersMethodsend_feedback_reaction
(&self, comment_id: u64)
scripts/lyric_checker_bot/src/github_api.rs:664
↓ 1 callersMethodupdate_pr
(&self, context: &PrUpdateContext<'_>)
scripts/lyric_checker_bot/src/github_api.rs:504
↓ 1 callersFunctionvalidate_lyric_lines
(lines: &[LyricLine], errors: &mut Vec<String>)
scripts/lyric_checker_bot/src/validator.rs:41
↓ 1 callersFunctionvalidate_lyrics_and_metadata
(result: &TTMLResult)
scripts/lyric_checker_bot/src/validator.rs:3
↓ 1 callersFunctionvalidate_metadata
(meta: &TTMLMetadata, errors: &mut Vec<String>)
scripts/lyric_checker_bot/src/validator.rs:17
↓ 1 callersFunctionvalidate_single_line
(line_idx: usize, line: &LyricLine, errors: &mut Vec<String>)
scripts/lyric_checker_bot/src/validator.rs:68
Methodbuild_body
(base_text: &str, original_lyric: Option<&str>, max_len: usize)
scripts/lyric_checker_bot/src/github_api.rs:750
Methodfrom_str
(file_name: &str)
scripts/rebuild-folder/src/main.rs:101
Methodgenerate_body_content
( issue_number: u64, user_login: &str, metadata: &TTMLMetadata, remarks: &str,
scripts/lyric_checker_bot/src/github_api.rs:332
Methodgenerate_pr_title
根据 Issue 标题和元数据生成 Pull Request 的标题。 如果 Issue 标题仅为标签或为空,则从元数据中提取信息。
scripts/lyric_checker_bot/src/github_api.rs:311
Functionmain
()
scripts/lyric_checker_bot/src/main.rs:135
Functionmain
()
scripts/rebuild-folder/src/main.rs:416
Methodnew
(token: String, owner: String, repo: String)
scripts/lyric_checker_bot/src/github_api.rs:57
Methodnew
()
scripts/rebuild-folder/src/main.rs:40
Methodparse_issue_body
解析 Issue 的正文
scripts/lyric_checker_bot/src/github_api.rs:125
Methodparse_issue_number_from_pr_body
从 PR 的正文中解析出关联的 Issue 编号
scripts/lyric_checker_bot/src/github_api.rs:492
Functiontest_check_is_contributor_detection
()
scripts/lyric_checker_bot/src/main.rs:432
Functiontest_check_is_contributor_missing_file
()
scripts/lyric_checker_bot/src/main.rs:456