Douwe Maan
bbbfdba0b9
Merge branch 'bugagazavr/gitlab-ce-extend-hooks' into 'master'
...
Add new data to project in push, issue, merge-request and note webhooks data
_Originally opened at !2738 by @bugagazavr._
- - -
**What does this MR do?**
Adds more data to hooks, makes repository data in all hook more dry ( use one hook_attrs method for repository data in all hooks )
**Are there points in the code the reviewer needs to double check?**
1. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/app/models/project.rb#L738
2. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/app/models/concerns/issuable.rb#L132
3. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/lib/gitlab/push_data_builder.rb#L52
4. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/lib/gitlab/note_data_builder.rb#L56
**Why was this MR needed?**
More information about user for push events, and more data about repositiry ( project )
**What are the relevant issue numbers?**
No
**Screenshots (if relevant)**
No
See merge request !2788
2016-02-16 13:08:36 +00:00
Robert Speicher
447568d15f
Fix undefined method postgresql? during migration
2016-02-15 14:13:47 -05:00
Ben Boeckel and Rémy Coutable
e919b5a4e9
Fix relative links in other markup formats
...
- Apply the RelativeLinkFilter filter to other formats, e.g.,
reStructuredText so links from the Files view or the Project view work
- Remove the AsciidocPipeline pipeline
Fixes #3533 .
2016-02-12 17:20:59 +01:00
Kirill Zaitsev and Rémy Coutable
b123171d3d
Add new data to project in push, issue, merge-request and note webhooks data
...
- Add `avatar_url`, `description`, `git_ssh_url`, `git_http_url`,
`path_with_namespace` and `default_branch` in `project` in push, issue,
merge-request and note webhooks data
- Deprecate the `ssh_url` in favor of `git_ssh_url` and `http_url` in
favor of `git_http_url` in `project` for push, issue, merge-request and
note webhooks data
- Deprecate the `repository` key in push, issue, merge-request and
note webhooks data, use `project` instead
2016-02-11 17:22:11 +01:00
Dmitriy Zaporozhets
dfe12649f6
Merge remote-tracking branch 'origin/rs-database-info'
2016-02-04 16:42:22 +01:00
Robert Speicher
47982e50c4
Make Pipelines responsible for defining their custom whitelist
...
This allows for future pipelines to more easily define a custom
whitelist.
2016-02-03 17:24:08 -05:00
Robert Speicher
4105f292e1
Display database type and version in Administration dashboard
...
Closes #12900
2016-02-02 17:59:09 -05:00
Stan Hu and Douglas Barbosa Alexandre
d20e75a8d8
Support Akismet spam checking for creation of issues via API
...
Currently any spam detected by Akismet by non-members via API will be logged
in a separate table in the admin page.
Closes #5612
2016-02-02 11:25:44 -02:00
Jacob Vosmaer
72bd004b31
Allow "@" in file names and path
2016-02-01 16:20:49 +01:00
Robert Speicher
5d4f8012f6
Merge branch 'rename-inline-diff' into 'master'
...
Mark inline difference between old and new paths when a file is renamed
See merge request !2652
2016-01-31 03:04:33 +00:00
Douwe Maan
fa0cbb1399
Fix specs and add a new one
2016-01-30 12:53:12 +01:00
Robert Speicher
d97742570f
Increase the minimum length for commit SHA matching to 7
...
This is the git default and will help to prevent false positive matches.
Closes #12706
2016-01-29 19:52:29 -05:00
Douwe Maan
677b4db9e6
Mark inline difference between old and new paths when a file is renamed
2016-01-29 19:37:17 +01:00
Robert Speicher
ca05054ea2
Partially revert "Add IP check against DNSBLs at account sign-up"
...
This partially reverts 6a5cd3ca - we keep the migration and add a new
migration that reverts it in order to keep migration history intact.
2016-01-28 16:28:19 -05:00
Douwe Maan
b636f83e59
Move blame group logic to dedicated class
2016-01-28 14:49:21 +01:00
Blake Hitchcock
4be65c3231
Update ExternalIssue regex for JIRA integration
...
The pattern in the `::reference_pattern` class method in the
ExternalIssue model does not match all valid forms of JIRA project
names. I have updated the regex to match JIRA project names with numbers
and underscores. More information on valid JIRA project names can be
found here:
https://confluence.atlassian.com/jira/changing-the-project-key-format-192534.html
* The first character must be a letter,
* All letters used in the project key must be from the Modern Roman Alphabet and upper case, and
* Only letters, numbers or the underscore character can be used.
2016-01-26 15:55:40 -05:00
Yorick Peterse
b74308c0a7
Correct arity for instrumented methods w/o args
...
This ensures that an instrumented method that doesn't take arguments
reports an arity of 0, instead of -1.
If Ruby had a proper method for finding out the required arguments of a
method (e.g. Method#required_arguments) this would not have been an
issue. Sadly the only two methods we have are Method#parameters and
Method#arity, and both are equally painful to use.
Fixes gitlab-org/gitlab-ce#12450
2016-01-25 21:28:59 +01:00
Benedict Etzel
6435f78a8c
Whitelist raw "abbr" elements when parsing Markdown
...
Closes #12517
2016-01-23 20:38:06 +01:00
Robert Speicher
3f5e6c6cf6
Merge branch 'ci/recursive-artifacts-entries' into 'master'
...
Add method to calculate total size of artifacts in subpath
See merge request !2500
2016-01-21 23:23:02 +00:00
Douwe Maan
54729d2c28
Merge branch 'ci/cache-key' into 'master'
...
Added cache:key to .gitlab-ci.yml allowing to fine tune the caching
The `cache:key` allows you to define the affinity mask of caching, allowing to have single cache for all jobs, or cache per-job, or per-branch, or any other way you would need:
1. Cache per-build for all branches:
```
cache:
key: "$CI_BUILD_NAME"
untracked: true
```
2. Cache per-branch for all jobs:
```
cache:
key: "$CI_BUILD_REF"
untracked: true
```
/cc @DouweM @grzesiek @axil
See merge request !2436
2016-01-21 11:15:28 +00:00
Kamil Trzcinski
c45a6bf3ba
Added cache:key to .gitlab-ci.yml allowing to fine tune the caching
2016-01-20 23:12:48 +01:00
Robert Speicher
3e7092a83a
Merge branch 'fix-github-pull-requests-import' into 'master'
...
Fix cross projects detection when importing GitHub pull requests
Fixes #12456
See merge request !2523
2016-01-20 22:11:20 +00:00
Douglas Barbosa Alexandre
f4bdbecfd5
Fix cross projects detection when importing GitHub pull requests
2016-01-20 19:36:35 -02:00
Kamil Trzcinski
9b0f57781e
Add method that calculates total size for artifacts subfolder
2016-01-20 21:55:13 +01:00
Rubén Dávila
985297d82a
Merge branch 'master' into issue_3945
2016-01-20 15:07:00 -05:00
Robert Speicher
1553c560e0
Merge branch 'feature/check-against-rbl-only' into 'master'
...
Split from !2455
References #9092
See merge request !2515
2016-01-20 14:24:20 -05:00
Douwe Maan
7d347ae564
Merge branch 'master' into issue_3945
2016-01-20 20:04:15 +01:00
Douwe Maan
26f7d023e6
Update tests
2016-01-20 17:14:26 +01:00
Douwe Maan
b4faa59728
Merge branch 'issue_3749' into 'master'
...
Update Issues/MRs updated_at field when notes are generated
Closes #3749 and #9130
See merge request !2493
2016-01-20 15:06:49 +00:00
Tomasz Maczukin
8536e083f7
Add IP blocking against DNSBL at sign-up
2016-01-20 15:28:19 +01:00
Douwe Maan
a010db5db2
Properly handle HTML entities with inline diffs
2016-01-20 15:26:44 +01:00
Douwe Maan
c23ca0b0b5
Merge branch 'master' into issue_3945
2016-01-20 14:53:41 +01:00
Douwe Maan
701513dcc7
Move parallel diff logic to separate class
2016-01-20 14:53:20 +01:00
Rubén Dávila
c26816f7a7
Fix broken specs.
2016-01-19 17:35:43 -05:00
Douwe Maan
d1938fae3d
Add missing specs
2016-01-19 16:26:44 +01:00
Douwe Maan
98e1a5b634
Allow LDAP users to change their email if it was not set by the LDAP server
2016-01-19 16:25:38 +01:00
Douwe Maan
512bebe21d
Refactor Gitlab::Highlight and fix tests
2016-01-19 14:52:41 +01:00
Douwe Maan
12546f895f
Add tests
2016-01-15 16:29:26 +01:00
Rubén Dávila
c8db25c37c
Merge branch 'master' into issue_3945
2016-01-14 17:28:44 -05:00
Rubén Dávila
6b9c730e91
More refactoring from last code review. #3945
...
* Use commit objects instead of IDs when generating diffs
* Use proper references when generating MR's source and target
* Update broken specs
2016-01-14 16:47:55 -05:00
Douwe Maan
8dfad143d4
Add inline diff markers in highlighted diffs.
2016-01-14 22:28:07 +01:00
Douglas Barbosa Alexandre
765a2c7327
Refactoring Banzai::Filter::GollumTagsFilter
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
89e8b82b63
Make sure the .git is at the end on Gitlab::GithubImport::WikiFormatter
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
a6a5990ee5
Add Banzai::Filter::GollumTagsFilter for parsing Gollum's tags in HTML
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
78f5eb94fb
Import GitHub wiki into GitLab
2016-01-14 12:09:31 -02:00
Grzegorz Bizon
0d6e7b9d3d
Use Hash to store paths and entries metadata in artifacts browser
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
ad2b0358e0
Improve readability of artifacts Metadata related code
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
6b0a43aff3
Improve readability of artifacts browser Entry related code
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
cf00a808cc
Fix specs for artifacts metadata after changing fixture content
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
09a4a5aff8
Render only valid paths in artifacts metadata
...
In this version we will support only relative paths in artifacts
metadata. Support for absolute paths will be introduced later.
2016-01-14 12:48:16 +01:00