Marcin Lulek
b11c4157c4
api: pull-requests, fixed invocation of merge as another user.
2019-02-15 10:27:18 +01:00
Marcin Kuzminski
184b3c75e2
api: expose owner to create_pull_request API. Fixes #5537
2019-02-13 10:44:44 +01:00
Marcin Kuzminski
a181157300
api: forbid commenting on closed PR
2019-02-08 09:55:45 +01:00
Marcin Kuzminski
01cd008a20
api: expose merge message in the merge operation
2019-02-05 17:17:58 +01:00
Marcin Kuzminski
bd69124334
api: pull-requests get_all now sortes the results and have a flag to show/hide merge result state
2019-01-31 14:42:23 +01:00
Marcin Kuzminski
7f1f5e3601
api/pull-requests: trigger events for comments/review status changes.
2019-01-18 13:34:54 +01:00
Marcin Kuzminski
1e2a7a9136
pull-requests: introduce operation state for pull requests to prevent from
...
locks during merge/update operations.
2019-01-07 13:32:16 +01:00
Marcin Kuzminski
bd1a9c8201
docs: updated copyrights to 2019
2019-01-02 18:13:27 +01:00
Daniel Dourvaris
599f9b7964
pull-requests: ensure merge response provide more details
...
- refactor merge responses with detailed messages
- fixes #5520
- code cleanups
2018-12-30 11:00:09 +01:00
Marcin Kuzminski
1f39d62f74
comments: use proper auth user for close PR action.
2018-09-18 09:49:18 +02:00
Marcin Kuzminski
6458ef9105
pull-requests: add merge validation to prevent merges to protected branches.
2018-08-28 20:24:40 +02:00
Marcin Kuzminski
f74691150a
api: allow updates and setting description renderer for pull requests via the API.
2018-07-17 13:30:50 +02:00
Marcin Kuzminski
d576848d4a
api: creation of pull_request now honor additional reviewers when using reviewer rules.
2018-07-12 14:10:29 +02:00
Marcin Kuzminski
239874ceca
api: pull-requests fixed logic of ancestor calculation and target ref calculation based on the web view.
2018-07-11 17:27:30 +02:00
Marcin Kuzminski
f3d4446814
api: pull-requests allow automatic title generation via API
2018-07-11 13:46:16 +02:00
Marcin Kuzminski
84767c858f
api: fixed ordering of commits in PR creation from API
2018-07-11 10:36:12 +02:00
Marcin Kuzminski
42c80fe075
shadow-repos: use numeric repo id for creation of shadow repos.
...
- Fixes a problem after rename or move into repository group.
2018-06-21 14:04:06 +02:00
Marcin Kuzminski
b058fefee1
audit-logs: use auth_user in few places to track action IP.
2018-06-12 18:29:54 +02:00
Marcin Kuzminski
1a717208f4
audit-logs: store properly IP and user for certain comments types.
...
- before mostly IP could be missing from audit log data.
2018-04-26 00:59:07 +02:00
Marcin Kuzminski
00b45c1fa7
release: update copyright year to 2018
2018-01-19 17:13:16 +01:00
Marcin Kuzminski
bc23ad316c
api: pull-requests, make the repoid parameter optional. Because pullrequestid is global
...
we don't want to complicate things more by requiring repoid. Left for backward compat.
2017-11-23 21:14:04 +01:00
Marcin Kuzminski
b809d00f88
api: pull-requests added option to fetch comments from a pull requests.
...
- fixes #5398
2017-11-23 20:08:46 +01:00
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