Skip to content

Commit d4870bd

Browse files
committed
allow user specify notification_repo
Signed-off-by: tjtanaa <[email protected]>
1 parent 5fc3c00 commit d4870bd

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838

3939
2. Create a file named `aiter_api_watcher_config.json` using `template_to_initialize_aiter_api_watcher_config.json`.
4040

41-
3. Run the following command: (replace the GITHUB_TOKEN with your GITHUB token)
41+
3. Update `"notification_repo": "EmbeddedLLM/aiter-api-watcher"` to point to your repository
42+
43+
4. Run the following command: (replace the GITHUB_TOKEN with your GITHUB token)
4244
```
4345
docker run -it \
4446
--network=host \
@@ -55,7 +57,7 @@
5557
```
5658

5759

58-
4. The aiter_api_watcher.py will generates a log to `aiter_api_watcher.log`.
60+
5. The aiter_api_watcher.py will generates a log to `aiter_api_watcher.log`.
5961

6062
Example content of the `aiter_api_watcher.log`:
6163

aiter_api_watcher.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def load_config():
4949
"last_checked_commit": "",
5050
"start_commit": "", # User can specify which commit to start with
5151
"repository_url": "https://github.com/ROCm/aiter.git",
52+
"notification_repo": "EmbeddedLLM/aiter-api-watcher",
5253
"commit_list": [],
5354
"compare_pair": []
5455
}
@@ -601,6 +602,8 @@ def main_loop():
601602
"""Main loop to periodically check for API changes"""
602603
config = load_config()
603604
check_interval = config.get("check_interval_seconds", CHECK_INTERVAL)
605+
global NOTIFICATION_REPO
606+
NOTIFICATION_REPO = config.get("notification_repo", "EmbeddedLLM/aiter-api-watcher")
604607

605608
logger.info("Starting aiter API watcher")
606609
logger.info(f"Monitoring {len(config['functions_to_monitor'])} functions")

aiter_api_watcher_config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"last_checked_commit": "28ceb1e2299c904229af0e45c38dde0efa7d14fb",
5858
"start_commit": "365bd25a3f97673b291bc42f1459fbb51bf1c634",
5959
"repository_url": "https://github.com/ROCm/aiter.git",
60+
"notification_repo": "EmbeddedLLM/aiter-api-watcher",
6061
"commit_list": [],
6162
"compare_pair": []
6263
}

0 commit comments

Comments
 (0)