mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 19:42:43 +01:00
b9850375fc
* Add review request api * add : POST /repos/{owner}/{repo}/pulls/{index}/requested_reviewers * Remove : DELET /repos/{owner}/{repo}/pulls/{index}/requested_reviewers * fix some request review bug * block delet request review by models/DeleteReview() Signed-off-by: a1012112796 <1012112796@qq.com> * make fmt * fix bug * fix test code * fix typo * Apply suggestion from code review @jonasfranz * fix swagger ref * fix typo Co-authored-by: Lauris BH <lauris@nix.lv> * fix comment * Change response message * chang response so some simplfy * Add ErrIllLegalReviewRequest fix some nits * make fmt * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> * * Add team support * fix test * fix an known bug * fix nit * fix test * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * update get api and add test Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net>
149 lines
2.3 KiB
YAML
149 lines
2.3 KiB
YAML
-
|
|
id: 1
|
|
repo_id: 1
|
|
index: 1
|
|
poster_id: 1
|
|
name: issue1
|
|
content: content for the first issue
|
|
is_closed: false
|
|
is_pull: false
|
|
num_comments: 2
|
|
created_unix: 946684800
|
|
updated_unix: 978307200
|
|
|
|
-
|
|
id: 2
|
|
repo_id: 1
|
|
index: 2
|
|
poster_id: 1
|
|
name: issue2
|
|
content: content for the second issue
|
|
milestone_id: 1
|
|
is_closed: false
|
|
is_pull: true
|
|
created_unix: 946684810
|
|
updated_unix: 978307190
|
|
|
|
|
|
-
|
|
id: 3
|
|
repo_id: 1
|
|
index: 3
|
|
poster_id: 1
|
|
name: issue3
|
|
content: content for the third issue
|
|
milestone_id: 3
|
|
is_closed: false
|
|
is_pull: true
|
|
created_unix: 946684820
|
|
updated_unix: 978307180
|
|
|
|
-
|
|
id: 4
|
|
repo_id: 2
|
|
index: 1
|
|
poster_id: 2
|
|
name: issue4
|
|
content: content for the fourth issue
|
|
is_closed: true
|
|
is_pull: false
|
|
created_unix: 946684830
|
|
updated_unix: 978307200
|
|
|
|
-
|
|
id: 5
|
|
repo_id: 1
|
|
index: 4
|
|
poster_id: 2
|
|
name: issue5
|
|
content: content for the fifth issue
|
|
is_closed: true
|
|
is_pull: false
|
|
created_unix: 946684840
|
|
updated_unix: 978307200
|
|
|
|
-
|
|
id: 6
|
|
repo_id: 3
|
|
index: 1
|
|
poster_id: 1
|
|
name: issue6
|
|
content: content6
|
|
is_closed: false
|
|
is_pull: false
|
|
num_comments: 0
|
|
created_unix: 946684850
|
|
updated_unix: 978307200
|
|
|
|
-
|
|
id: 7
|
|
repo_id: 2
|
|
index: 2
|
|
poster_id: 2
|
|
name: issue7
|
|
content: content for the seventh issue
|
|
is_closed: false
|
|
is_pull: false
|
|
created_unix: 946684830
|
|
updated_unix: 978307200
|
|
|
|
-
|
|
id: 8
|
|
repo_id: 10
|
|
index: 1
|
|
poster_id: 11
|
|
name: pr2
|
|
content: a pull request
|
|
is_closed: false
|
|
is_pull: true
|
|
created_unix: 946684820
|
|
updated_unix: 978307180
|
|
|
|
-
|
|
id: 9
|
|
repo_id: 48
|
|
index: 1
|
|
poster_id: 11
|
|
name: pr1
|
|
content: a pull request
|
|
is_closed: false
|
|
is_pull: true
|
|
created_unix: 946684820
|
|
updated_unix: 978307180
|
|
|
|
-
|
|
id: 10
|
|
repo_id: 42
|
|
index: 1
|
|
poster_id: 500
|
|
name: issue from deleted account
|
|
content: content from deleted account
|
|
is_closed: false
|
|
is_pull: false
|
|
created_unix: 946684830
|
|
updated_unix: 999307200
|
|
deadline_unix: 1019307200
|
|
|
|
-
|
|
id: 11
|
|
repo_id: 1
|
|
index: 5
|
|
poster_id: 1
|
|
name: pull5
|
|
content: content for the a pull request
|
|
is_closed: false
|
|
is_pull: true
|
|
created_unix: 1579194806
|
|
updated_unix: 1579194806
|
|
|
|
-
|
|
id: 12
|
|
repo_id: 3
|
|
index: 2
|
|
poster_id: 2
|
|
name: pull6
|
|
content: content for the a pull request
|
|
is_closed: false
|
|
is_pull: true
|
|
created_unix: 1602935696
|
|
updated_unix: 1602935696
|