-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsync_api.py
More file actions
55 lines (50 loc) · 1.46 KB
/
sync_api.py
File metadata and controls
55 lines (50 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
"""
Cross-app GitHub sync and preprocess API.
Other tracker apps (e.g. clang_github_tracker) must import orchestration helpers from
this module only — not ``fetcher``, ``sync.*``, ``workspace``, or ``preprocessors``
directly.
Stability: only symbols in ``__all__`` are Tier A; see STABILITY.md at the repo root.
"""
from __future__ import annotations
from github_activity_tracker import fetcher
from github_activity_tracker.preprocessors.github_preprocess import (
build_issue_document,
build_pr_document,
)
from github_activity_tracker.sync.raw_source import (
save_commit_raw_source,
save_issue_raw_source,
save_pr_raw_source,
)
from github_activity_tracker.sync.utils import (
normalize_issue_json,
normalize_pr_json,
)
from github_activity_tracker.workspace import (
get_commit_json_path,
get_issue_json_path,
get_pr_json_path,
get_raw_source_issue_path,
get_raw_source_pr_path,
iter_existing_commit_jsons,
iter_existing_issue_jsons,
iter_existing_pr_jsons,
)
__all__ = [
"build_issue_document",
"build_pr_document",
"fetcher",
"get_commit_json_path",
"get_issue_json_path",
"get_pr_json_path",
"get_raw_source_issue_path",
"get_raw_source_pr_path",
"iter_existing_commit_jsons",
"iter_existing_issue_jsons",
"iter_existing_pr_jsons",
"normalize_issue_json",
"normalize_pr_json",
"save_commit_raw_source",
"save_issue_raw_source",
"save_pr_raw_source",
]