Dmitriy Zaporozhets
b2d45bb544
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
...
Conflicts:
app/controllers/uploads_controller.rb
app/helpers/application_helper.rb
app/models/note.rb
app/services/test_hook_service.rb
db/schema.rb
spec/models/note_spec.rb
2015-05-13 14:10:14 +03:00
Stan Hu
03138a3c72
Make the first branch pushed to an empty repository the default HEAD.
...
In an empty repository, pushing a new branch not called "master" would
leave HEAD in an unknown state, causing ambiguity if another branch
were pushed. This could in turn cause a new protected branch to be
created and cause the default branch to change.
* Closes #1561
* Closes #1576
* Closes https://github.com/gitlabhq/gitlabhq/issues/8883
2015-05-05 23:49:30 -07:00
Dmitriy Zaporozhets
2e243fc321
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
README.md
VERSION
app/controllers/projects/services_controller.rb
app/controllers/projects/uploads_controller.rb
app/services/test_hook_service.rb
db/schema.rb
features/steps/admin/settings.rb
lib/gitlab/reference_extractor.rb
spec/models/note_spec.rb
2015-04-27 11:53:31 +03:00
Douwe Maan
0ff778c0f4
Link cross-project cross-reference notes to correct project.
2015-04-24 12:30:36 +02:00
Douwe Maan
27af24c1c9
No longer needed to pass project argument to commit methods.
2015-04-24 12:29:36 +02:00
Dmitriy Zaporozhets
d01d0c02b7
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
app/controllers/admin/application_settings_controller.rb
app/controllers/groups/group_members_controller.rb
app/controllers/projects/deploy_keys_controller.rb
app/controllers/projects/project_members_controller.rb
app/models/concerns/mentionable.rb
app/models/project.rb
app/models/project_team.rb
app/models/service.rb
app/views/admin/application_settings/_form.html.haml
app/views/admin/groups/show.html.haml
app/views/groups/group_members/_new_group_member.html.haml
config/initializers/1_settings.rb
db/schema.rb
lib/gitlab/reference_extractor.rb
spec/lib/gitlab/reference_extractor_spec.rb
2015-04-15 19:22:57 +03:00
Douwe Maan
65bb0c3406
Only allow users to cross-reference and close issues they have access to.
2015-04-02 10:57:01 +02:00
Douwe Maan
d9698628d9
Add Commit#author and #committer.
2015-04-02 10:57:01 +02:00
Dmitriy Zaporozhets
a05cc636d7
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
...
Conflicts:
app/helpers/oauth_helper.rb
db/schema.rb
2015-03-21 20:41:10 -07:00
Kamil Trzcinski
5b432e7671
Extend push_tag event to include tag message and last commit
2015-03-21 11:25:27 +01:00
Dmitriy Zaporozhets
31af3f4003
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
...
Conflicts:
spec/models/note_spec.rb
2015-03-19 23:21:50 -07:00
Douwe Maan
a5a5ec970e
Fewer constants, more helpers.
2015-03-19 10:34:04 +01:00
Dmitriy Zaporozhets
d3361e6d1b
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
...
Conflicts:
Gemfile.lock
app/controllers/admin/application_settings_controller.rb
app/controllers/groups/application_controller.rb
app/controllers/groups/group_members_controller.rb
app/controllers/projects/team_members_controller.rb
app/helpers/application_settings_helper.rb
app/helpers/projects_helper.rb
app/helpers/tab_helper.rb
app/models/application_setting.rb
app/models/user.rb
app/views/devise/shared/_signin_box.html.haml
app/views/groups/projects.html.haml
app/views/profiles/keys/_key.html.haml
app/views/projects/team_members/_form.html.haml
app/views/projects/team_members/index.html.haml
config/routes.rb
db/schema.rb
spec/lib/gitlab/ldap/access_spec.rb
2015-03-16 21:25:00 -07:00
Douwe Maan
f2024b1e06
More consistent method naming.
2015-03-13 16:07:02 +01:00
Dmitriy Zaporozhets
be4d340381
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
...
Conflicts:
Gemfile.lock
app/controllers/uploads_controller.rb
app/models/application_setting.rb
app/models/project_services/issue_tracker_service.rb
app/views/projects/services/_form.html.haml
db/schema.rb
doc/integration/README.md
features/steps/groups.rb
2015-03-11 18:41:41 -07:00
Douwe Maan
383c56efa1
Use Gitlab::Git helper methods and constants as much as possible.
2015-03-10 13:39:31 +01:00
Hannes Rosenögger
224e104d8d
fix mass SQL statements on initial push
...
This commit disables process_commit_messages()
for the initial push to the default branch.
This fixes the mass SQL statements (~500000) that were executed during
the initial push of the linux kernel for example.
2015-03-09 12:52:45 +01:00
Stan Hu and Douwe Maan
afe5d7d209
Issue #595 : Support Slack notifications upon issue and merge request events
...
1) Adds a DB migration for all services to toggle on push, issue, and merge events.
2) Upon an issue or merge request event, fire service hooks.
3) Slack service supports custom messages for each of these events. Other services
not supported at the moment.
4) Label merge request hooks with their corresponding actions.
2015-03-03 11:14:31 +01:00
Marin Jankovski
7d9ef1124e
Merge remote-tracking branch 'ce/master' into merge_ce
...
Conflicts:
README.md
app/assets/javascripts/project.js.coffee
app/models/concerns/mentionable.rb
app/models/project.rb
app/models/project_services/jira_service.rb
app/models/service.rb
app/models/user.rb
app/services/git_push_service.rb
config/initializers/1_settings.rb
config/routes.rb
db/schema.rb
doc/integration/README.md
doc/integration/external-issue-tracker.md
doc/integration/github.md
spec/controllers/import/github_controller_spec.rb
spec/helpers/merge_requests_helper.rb
spec/lib/gitlab/upgrader_spec.rb
spec/models/note_spec.rb
spec/requests/api/groups_spec.rb
spec/services/git_push_service_spec.rb
2015-02-16 11:50:30 -08:00
Douwe Maan
07d05d2df7
Move all event creation to EventCreateService.
2015-02-13 12:02:58 +01:00
Marin Jankovski
80d822a068
Remove unused methods in reference_extractor and update jira service.
2015-02-06 10:31:00 -08:00
Marin Jankovski
c4b97dc2dc
Update the issue closing regex to count on the Jira issue mentions. Make sure push data is provided for the service.
2015-02-06 10:31:00 -08:00
Dmitriy Zaporozhets
9b140b22fb
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-into-ee
...
Conflicts:
Gemfile.lock
app/helpers/tab_helper.rb
config/routes.rb
db/schema.rb
2015-02-04 18:19:22 -08:00
Marco Wessel
c821412e30
indentation
2015-01-25 18:36:11 +01:00
Marco Wessel
aad6ceaef9
Allow configuring protection of the default branch upon first push
2015-01-25 17:09:10 +01:00
Dmitriy Zaporozhets
2bfd4f4438
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
...
Conflicts:
VERSION
config/gitlab.yml.example
config/initializers/1_settings.rb
lib/api/entities.rb
lib/api/groups.rb
2015-01-21 17:05:31 -08:00
Dmitriy Zaporozhets
c5ba87a2fb
Merge pull request #8096 from cirosantilli/regex-to-string
...
Replace regex methods by string ones since faster and more readable
2015-01-15 14:37:11 -08:00
Valery Sizov
badfdf6634
Merge remote-tracking branch 'ee/master' into ce-non-conflict
...
Conflicts:
app/controllers/projects/merge_requests_controller.rb
app/helpers/projects_helper.rb
db/schema.rb
2015-01-13 18:22:38 -08:00
Dmitriy Zaporozhets
3197044512
Refactor push data builder. Moved it to separate class
...
Also execute GitLab CI on creating tag via UI
2015-01-11 23:51:31 -08:00
Ciro Santilli
cd688a6011
Replace regex methods by string ones since faster
...
and more readable.
2014-12-28 23:53:27 +01:00
Valery Sizov
3fcd75a911
Merge CE master into EE master
...
Conflicts:
Gemfile
VERSION
app/assets/javascripts/project.js.coffee
app/assets/javascripts/users_select.js.coffee
app/controllers/projects/services_controller.rb
app/models/project.rb
app/views/groups/edit.html.haml
features/project/service.feature
features/steps/project/services.rb
spec/models/concerns/mentionable_spec.rb
2014-11-13 17:05:12 +02:00
Dmitriy Zaporozhets
722d80739b
Prevent big amount of sql queries for push service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-11-12 13:59:25 +02:00
Ciro Santilli
c3be1517ae
Factor '0' * 40 blank ref constants
2014-11-03 20:37:08 +01:00
Dmitriy Zaporozhets
eafac5932f
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ee-7-4
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
app/helpers/merge_requests_helper.rb
doc/update/README.md
lib/gitlab/reference_extractor.rb
2014-10-03 16:18:40 +03:00
Dmitriy Zaporozhets
03b44916ba
Merge pull request #7754 from Bugagazavr/hooks
...
More information in merge request hook
2014-10-03 13:37:19 +03:00
Ciro Santilli
2e9f5de868
Add parenthesis to function def with arguments.
2014-10-03 09:18:46 +02:00
Dmitriy Zaporozhets
a5972170ad
Merge remote-tracking branch 'origin/master' into ee-7-4
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
app/controllers/projects/team_members_controller.rb
app/finders/projects_finder.rb
app/models/group.rb
app/models/project_team.rb
app/models/users_group.rb
config/gitlab.yml.example
config/initializers/1_settings.rb
config/routes.rb
db/schema.rb
doc/integration/ldap.md
features/steps/group.rb
features/steps/project/project.rb
2014-10-02 13:24:59 +03:00
Kirill Zaitsev
1c9d2e39c1
Hook attributes
2014-10-02 12:58:02 +04:00
Marin Jankovski
fbc6f95a02
Protect default branch by default.
2014-09-29 15:12:07 +02:00
Dmitriy Zaporozhets
8fae6ad75a
Fix typo in push service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-09-26 12:45:41 +03:00
Dmitriy Zaporozhets
a932e28ddd
Fix worker error when remove branch
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-09-26 10:55:39 +03:00
Dmitriy Zaporozhets
87cf5b7055
Fix GitPush service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-09-26 10:46:48 +03:00
Marin Jankovski
e3f736d258
Add Jira service.
2014-05-13 12:12:16 +02:00
Dmitriy Zaporozhets
d10b34a685
Save repository size to projects table
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-02 16:05:08 +03:00
Dmitriy Zaporozhets
cc77365488
Create services for issue close and reopen
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-02 15:38:24 +03:00
Jason Hollingsworth
29cfd33d94
Add email aliases for users
...
Emails are used to associate commits with users. The emails
are not verified and don't have to be valid email addresses. They
are assigned on a first come, first serve basis.
Notifications are sent when an email is added.
2014-02-13 22:59:39 -06:00
Dmitriy Zaporozhets
cfcf24dce5
Execute project hooks when issue or merge request created
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-12-04 13:37:17 +02:00
Dmitriy Zaporozhets
02484930e1
Removed Project#discover_default_branch since it not needed any more
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-08 09:22:50 +02:00
Marin Jankovski
9ed59ee9f0
Include project_id in webhook payload.
2013-10-14 12:03:25 +02:00
Dmitriy Zaporozhets
7f65339fff
Fix s500 when press ervice test button
2013-08-28 21:36:09 +03:00