Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit dab7ef8

Browse files
committed
update conf
1 parent 95a7071 commit dab7ef8

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

README.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,74 @@ Very easy, just add `?theme=dark` after it in any kind of card!
201201
> "message": "release not found"
202202
> }
203203
> ```
204+
205+
5. Issue
206+
> `GET` `https://stats.deeptrain.net/api/issue/{user}/{repo}/{id}`
207+
>
208+
> Example response:
209+
> ```json
210+
> {
211+
> "color": "#f1e05a",
212+
> "comments": 1,
213+
> "date": "2022-01-18T21:10:09Z",
214+
> "description": "...",
215+
> "id": 12,
216+
> "labels": [],
217+
> "opener": {
218+
> "avatar": "https://avatars.githubusercontent.com/u/63081316?v=4",
219+
> "image": "iVBORw0KGgoAAAANSUhEUgAA…0cg9hQAAAAASUVORK5CYII=",
220+
> "type": "User",
221+
> "username": "mollthecoder"
222+
> },
223+
> "reactions": 0,
224+
> "repo": "extensions",
225+
> "state": "closed",
226+
> "title": "Create dictionaries.js",
227+
> "username": "turbowarp"
228+
> }
229+
> ```
230+
> Error response:
231+
> ```json
232+
> {
233+
> "message": "issue not found"
234+
> }
235+
> ```
236+
237+
6. Pull Request
238+
> `GET` `https://stats.deeptrain.net/api/pull/{user}/{repo}/{id}`
239+
>
240+
> Example response:
241+
> ```json
242+
> {
243+
> "additions": "72",
244+
> "changed_files": 1,
245+
> "color": "#f1e05a",
246+
> "comments": 1,
247+
> "commits": 1,
248+
> "creator": {
249+
> "avatar": "https://avatars.githubusercontent.com/u/63081316?v=4",
250+
> "image": "iVBORw0KGgoAAAANSUhEUgAA…0cg9hQAAAAASUVORK5CYII=",
251+
> "type": "User",
252+
> "username": "mollthecoder"
253+
> },
254+
> "date": "2022-01-18T21:10:09Z",
255+
> "deletions": "0",
256+
> "description": "...",
257+
> "id": 12,
258+
> "labels": [],
259+
> "migration": {
260+
> "base": "TurboWarp:master",
261+
> "head": "mollthecoder:patch-1"
262+
> },
263+
> "repo": "extensions",
264+
> "state": "closed",
265+
> "title": "Create dictionaries.js",
266+
> "username": "turbowarp"
267+
> }
268+
> ```
269+
> Error response:
270+
> ```json
271+
> {
272+
> "message": "pull requst not found"
273+
> }
274+
> ```

docs/nginx.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ server
3838
rewrite ^/release/(.*?)/(.*?)/?$ /release.php?username=$1&repo=$2 last;
3939
}
4040

41+
location /issue/ {
42+
rewrite ^/issue/(.*?)/(.*?)/(.*?)/?$ /release.php?username=$1&repo=$2&id=$3 last;
43+
}
44+
45+
location /pull/ {
46+
rewrite ^/pull/(.*?)/(.*?)/(.*?)/?$ /release.php?username=$1&repo=$2&id=$3 last;
47+
}
48+
4149
location /api {
4250
proxy_pass http://localhost:8080; # backend
4351
proxy_set_header Host $host;

0 commit comments

Comments
 (0)