oh-my-pr 4.3.2 → 4.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/index.cjs +147 -141
- package/dist/public/assets/index-CzrgYumh.css +1 -0
- package/dist/public/assets/index-SVLVhdfc.js +49 -0
- package/dist/public/index.html +2 -2
- package/package.json +1 -1
- package/dist/public/assets/index-BIO7suRv.css +0 -1
- package/dist/public/assets/index-DVUpi-4z.js +0 -48
package/README.md
CHANGED
|
@@ -93,10 +93,27 @@ Watched repositories default to `My PRs only`. You can switch a repo to `My PRs
|
|
|
93
93
|
oh-my-pr can be used in a few ways:
|
|
94
94
|
|
|
95
95
|
- web dashboard: `oh-my-pr`
|
|
96
|
+
- server logs page: `http://localhost:5001/logs`
|
|
96
97
|
- MCP server: `oh-my-pr mcp`
|
|
97
98
|
- local REST API: see [LOCAL_API.md](LOCAL_API.md)
|
|
98
99
|
- optional Tauri desktop shell
|
|
99
100
|
|
|
101
|
+
### Logging
|
|
102
|
+
|
|
103
|
+
Server output is structured (pino) and goes to two destinations by default:
|
|
104
|
+
|
|
105
|
+
- stdout (pretty-printed in dev, JSON in production)
|
|
106
|
+
- `~/.oh-my-pr/log/server.log` (or under `OH_MY_PR_HOME`)
|
|
107
|
+
|
|
108
|
+
Override the file path with `--log-file <path>` or `OH_MY_PR_LOG_FILE`; disable file logging with `--no-log-file` or `OH_MY_PR_NO_LOG_FILE=1`. Set the level with `--log-level <trace|debug|info|warn|error|fatal>` or `LOG_LEVEL`. Defaults: `info` in production, `debug` in development.
|
|
109
|
+
|
|
110
|
+
GitHub tokens are redacted before any log line is written. The sanitizer replaces these values with `[REDACTED]` automatically:
|
|
111
|
+
|
|
112
|
+
- `ghp_/gho_/ghs_/ghu_/ghr_` prefixes
|
|
113
|
+
- `github_pat_…` tokens
|
|
114
|
+
- `x-access-token:…@` URLs
|
|
115
|
+
- `Bearer …` / `token …` authorization values
|
|
116
|
+
|
|
100
117
|
### Optional Automation
|
|
101
118
|
|
|
102
119
|
If you enable them, oh-my-pr can also:
|
|
@@ -117,6 +134,18 @@ oh-my-pr --help # help
|
|
|
117
134
|
oh-my-pr --version # version
|
|
118
135
|
```
|
|
119
136
|
|
|
137
|
+
Logging flags work with both `web` and `mcp` and can appear before or after the subcommand:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
oh-my-pr -q # errors only
|
|
141
|
+
oh-my-pr --verbose # debug level
|
|
142
|
+
oh-my-pr --debug # alias for --verbose
|
|
143
|
+
oh-my-pr --trace # maximum verbosity
|
|
144
|
+
oh-my-pr --log-level warn # explicit level
|
|
145
|
+
oh-my-pr --log-file ./out.log # override file destination
|
|
146
|
+
oh-my-pr --no-log-file # disable file logging entirely
|
|
147
|
+
```
|
|
148
|
+
|
|
120
149
|
Set `PORT` to change the default web server port (`5001`). If an MCP host needs to connect to a non-default server port, set `OH_MY_PR_PORT` for `oh-my-pr mcp`.
|
|
121
150
|
|
|
122
151
|
## Run From Source
|