summaryrefslogtreecommitdiff
path: root/app/controllers/projects/commit_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Make MRs with revert commit work.Rubén Dávila2016-02-191-2/+5
|
* Add RevertService class with basic logic to revert commitRubén Dávila2016-02-191-0/+13
|
* Add button to revert commit on Commit detail page.Rubén Dávila2016-02-191-0/+7
|
* Ensure Commit#show responds 404 instead of 500 when given an invalid IDrs-issue-13467Robert Speicher2016-02-151-2/+2
| | | | Closes #13467
* Merge remote-tracking branch 'dev/master' into 'master'Robert Speicher2016-02-091-9/+3
|\
| * Make the CI permission model simplerKamil Trzcinski2016-02-021-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | This MR simplifies CI permission model: - read_build: allows to read a list of builds, artifacts and trace - update_build: allows to cancel and retry builds - create_build: allows to create builds from gitlab-ci.yml (not yet implemented) - admin_build: allows to manage triggers, runners and variables - read_commit_status: allows to read a list of commit statuses (including the overall of builds) - create_commit_status: allows to create a new commit status using API Remove all extra methods to manage permission. Made all controllers to use explicitly the new permissions.
* | Remember user's inline/tabular diff view preference in a cookiekkm2016-02-051-0/+2
|/
* Merge branch 'master' into issue_3945Douwe Maan2016-01-201-1/+1
|\
| * Give reporters the ability to download artifacts.Andrew Johnson2016-01-151-1/+1
| | | | | | | | Also fix a few places where page_404 should be render_404.
* | More refactoring from last code review. #3945Rubén Dávila2016-01-141-1/+1
| | | | | | | | | | | | * Use commit objects instead of IDs when generating diffs * Use proper references when generating MR's source and target * Update broken specs
* | Use current commit id if it doesn't have a parent. #3945Rubén Dávila2016-01-131-1/+1
| |
* | Change strategy to highlight diffs. #3945Rubén Dávila2016-01-071-0/+1
|/ | | | | Now we apply syntax highlighting to the whole old and new files. This basically help us to highlight adequately multiline content.
* Migrate CI::Project to ProjectKamil Trzcinski2015-12-111-1/+0
|
* Move commit builds to partialDouwe Maan2015-12-081-4/+4
|
* Add ignore whitespace change option to commit viewMinsik Yoon2015-12-011-1/+6
|
* CI details cleanupKamil Trzcinski2015-11-051-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | - Add page titles to CI settings. - Fix CI admin navigation. - Remove duplicated scope. - Use monospace font for commit sha. - Add page title and header title to build page. - Proper authorization for cancel/retry builds. - Use gitlab pagination theme for builds and group members. - Don't paginate builds widget on build page. - Add badges to commit page Changes/Builds tabs. - Add "Builds" to commit Builds tab page title. - Add and use Ci::Build#retryable? method. - Add CI::Build#retried? method. - Allow all failed commit builds to be retried. - Proper authorization for cancel/retry all builds. - Remove unused param. - Use time_ago_with_tooltip where appropriate. - Tweak builds index text - Remove duplication between builds/build and commit_statuses/commit_status. - Use POST rather than GET for canceling and retrying builds. - Remove redundant URL helpers. - Add build ID to build page. - Link branch name on build page. - Move commit/:sha/ci to commit/:sha/builds.
* Allow developer to manage buildsKamil Trzcinski2015-10-231-1/+10
|
* Fix tests and few CI featuresDmitriy Zaporozhets2015-10-071-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove Ci::Commit and Ci::Build controllerscleanup-ci-pagesDmitriy Zaporozhets2015-10-071-0/+8
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Render CI statuses on commit pageDmitriy Zaporozhets2015-10-061-0/+7
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Show CI status on commit pageDmitriy Zaporozhets2015-09-241-0/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* No longer needed to pass project argument to commit methods.Douwe Maan2015-04-241-3/+3
|
* Use project.commit convenience method.Douwe Maan2015-04-241-1/+1
|
* Fixed the Rails/ActionFilter copJeroen van Baarsen2015-04-201-3/+3
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Clean up code around commit mentions.Douwe Maan2015-04-151-3/+3
|
* Move 'require_non_empty_project' filter to front so 'assign_ref_vars' ↵Douwe Maan2015-02-201-1/+1
| | | | doesn't 404.
* Commit page: async load branches infoValery Sizov2015-02-031-2/+6
| | | | | Conflicts: config/routes.rb
* Show tags in commit viewHannes Rosenögger2015-01-171-0/+1
|
* remove auth duplicationValery Sizov2014-11-051-1/+0
|
* Merge pull request #8030 from cirosantilli/factor-authorizeDmitriy Zaporozhets2014-10-211-1/+1
|\ | | | | Factor authorize_push! and authorize_code_access!
| * Factor authorize_push! and authorize_code_access!Ciro Santilli2014-10-131-1/+1
| | | | | | | | | | with existing method_missing. Pattern already used extensively, so let's be consistent and use it everywhere.
* | Use @project on controllers, don't call methodCiro Santilli2014-10-191-6/+6
|/ | | | | Also memoize the method to ensure that other methods in ApplicationController that rely on it can call it efficiently.
* Faster branch contains detection for commitDmitriy Zaporozhets2014-09-291-7/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix Commit stats and diff encoding issuesDmitriy Zaporozhets2014-09-251-7/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Refactor diff suppress logic and diff viewsDmitriy Zaporozhets2014-07-151-10/+4
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Prevent commit page error if cant collect branches where commit existsDmitriy Zaporozhets2014-06-111-1/+6
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix commit pageDmitriy Zaporozhets2014-01-151-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove commit_load_context.rbDmitriy Zaporozhets2014-01-151-15/+20
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Update commentable controllers with new note varsDmitriy Zaporozhets2013-12-251-2/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Make note anchors actually workDmitriy Zaporozhets2013-12-251-1/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Show branches list (which branches contains commit) on commit pageAndrey Kumanyaev2013-10-211-0/+1
|
* Improved large commit handling.Boyan Tabakov2013-09-071-0/+1
| | | | | | | | | | | | | Previously, only number of changed files mattered. Now, number of lines to render in the diff are also taken into account. A hard limit is set, above which diffs are not rendered and users are not allowed to override that. This prevents high server resource usage with huge commits. Related to #1745, #2259 In addition, handle large commits for MergeRequests and Compare controllers. Also fixes a bug where diffs are loaded twice, if user goes directly to merge_requests/:id/diffs URL.
* Move projects controllers/views in Projects moduleDmitriy Zaporozhets2013-06-231-0/+43