Commit graph

22 commits

Author SHA1 Message Date
Marcin Kuzminski
27aff1de7a pull-requests: trigger merge simulation during PR creation. Fixes #5396 2017-10-12 20:57:02 +02:00
Marcin Kuzminski
926a79e98e audit-logs: implemented pull request and comment events. 2017-06-17 15:22:50 +02:00
Daniel Dourvaris
2beb24a857 reviewers: added validation and default review rules via API calls.
- update/create pull request now validate and update the default reviewer rules.
2017-06-14 11:10:19 +02:00
Marcin Kuzminski
5915f38fcf pull-request-api: updated logic of closing a PR via API call.
- consistent logic via web and API
- updated events
- updated proper close checks.
2017-06-13 00:14:21 +02:00
Marcin Kuzminski
bd1e865c9c pull-request: extended default reviewers functionality.
- added mandatory reviewers JS logic Fixes: #4219
- added option to forbid author to be a reviewer via JS/Frontend checks. Fixes #5190
- added option to forbid adding new reviewers except those defined. Fixes #5208
2017-05-29 20:10:17 +02:00
Marcin Kuzminski
51775c0669 pull-requests: fixed translation of error messages via merge-api.
- fixes #5325
2017-05-29 20:00:38 +02:00
Marcin Kuzminski
bf27cbaf6d docs: update API documentation. 2017-04-05 22:10:02 +02:00
Marcin Kuzminski
3f9289f77f api: added comment_resolved_id into aprameters to resolve TODO notes via API. 2017-01-18 19:15:46 +01:00
Marcin Kuzminski
cc9db5e79e api: added possibility to specify comment_type for comment API. 2017-01-18 19:07:49 +01:00
Marcin Kuzminski
30637758d6 pull-requests: unified merge checks.
- same logic is now used for API, pre-conditions on show, and checks on actual merge
- added checks into API because it was not validated
2017-01-18 14:56:20 +01:00
Marcin Kuzminski
b52808ca95 comments: renamed ChangesetCommentsModel to CommentsModel to reflect what it actually does.
It's not limited to Changesets/Commits.
2017-01-09 17:52:00 +01:00
Marcin Kuzminski
fcc027c282 license: updated copyright year to 2017 2017-01-02 09:30:39 +01:00
Marcin Kuzminski
75ef1f61eb api: comment_pull_request, added commit_id parameter to validate status changed on particular commit.
- when using the API and creating a comment with status change it's now possible to pass in
commit_id, this will allow validation if status change of pull_request is allowed based on the given
commit_id. This solves the case when long running test sends approval of pull request which was
already updated several times. The commit_id will now validate for which state the approval was made,
and prevent accidental aproval of outdated pull requests.
2016-12-30 14:19:38 +01:00
Marcin Kuzminski
2a8b58692d api: refactor auth helpers to reflect the action they do.
- those validators verify and throws expcetions, which is now reflected in the name
2016-11-23 17:23:41 +01:00
Martin Bornhold
22dde6518a tests: Adapt tests to return value change. 2016-10-27 11:43:13 +02:00
Martin Bornhold
30ddfedded api: Add merge reference to merge_pull_request api call. 2016-10-24 10:09:44 +02:00
Martin Bornhold
979006718e api: Include merge reference into API data of a PR. 2016-10-23 16:48:32 +02:00
Martin Bornhold
31721213be api: Add an entry for pr shadow repositories to api functions. 2016-09-20 15:14:00 +02:00
Daniel Dourvaris
b3e97c1715 reviewers: store reviewer reasons to database, fixes #4238 2016-09-27 02:34:15 +03:00
Marcin Kuzminski
1b62606fc2 emails: added new tags to status sent
- make this distinct colored tags for quick status catch
- pass in the status type together with label to the notifiactions and templates
- fixed some UI issues on emails
2016-08-03 15:21:38 +02:00
Marcin Kuzminski
708038952c db: always use Session() for compatibility, Using Session is actually the
scoped_session which is not the same as the one which we "call".

More here: http://docs.sqlalchemy.org/en/latest/orm/contextual.html#contextual-thread-local-sessions
2016-07-27 00:42:19 +02:00
Marcin Kuzminski
9a0d8c0b77 project: added all source files and assets 2016-05-24 15:56:53 +02:00