George Koltsov
5ba77a4999
Add author lines to project import comments
2019-08-07 14:01:40 +01:00
gfyoung
d598e4fd93
Enable more frozen string in lib/**/*.rb
...
Enables frozen for the following:
* lib/*.rb
* lib/banzai/**/*.rb
* lib/bitbucket/**/*.rb
* lib/constraints/**/*.rb
* lib/container_registry/**/*.rb
* lib/declarative_policy/**/*.rb
Partially addresses #47424 .
2018-10-06 17:02:50 -07:00
Bart Libert
4bfd54f3d2
Import bitbucket issues that are reported by an anonymous user
...
For these kind of issues, the "reporter" field is present but zero.
In such a case, "fetch" will not return the default value, but it will
return nil.
Hence, importing fails, because the "username" field of nil is referenced
Fixes issue #44381
2018-05-24 13:28:58 +02:00
Horatiu Eugen Vlad
1ad5df49b1
Moved o_auth/saml/ldap modules under gitlab/auth
2018-02-28 16:53:02 +01:00
Robert Speicher
260c8da060
Whitelist or fix additional `Gitlab/PublicSend` cop violations
...
An upcoming update to rubocop-gitlab-security added additional
violations.
2017-08-14 12:14:11 -04:00
Rémy Coutable
4cfa5ce4a9
Enable the Style/PreferredHashMethods cop
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-02 19:11:26 +02:00
Valery Sizov
3bc114a7c1
[BB Importer] Save the error trace and the whole raw document
2017-04-11 19:27:15 +03:00
Sean McGivern
811e598f60
Enable and autocorrect the CustomErrorClass cop
2017-03-01 15:28:10 +00:00
Douwe Maan
75f5fa997d
Enable Rails/Delegate
2017-02-23 09:32:42 -06:00
Douwe Maan
7ea641b6d0
Enable Style/ColonMethodCall
2017-02-23 09:31:57 -06:00
Douwe Maan
b7d8df503c
Enable Style/MutableConstant
2017-02-23 09:31:56 -06:00
Valery Sizov
5b0ebbe5b4
Add Wiki import to BB importer
2016-12-19 20:48:08 +02:00
Douglas Barbosa Alexandre
a3be4aeb7a
Avoid use of Hash#dig to keep compatibility with Ruby 2.1
2016-12-16 19:51:40 -02:00
Valery Sizov
e0ef9dc83e
BB importer: Milestone importer
2016-12-16 12:12:53 +02:00
Valery Sizov
26628fb91a
BB importer: Fixed bug with putting expired token to a project.clone_url
2016-12-15 14:19:28 +02:00
Valery Sizov
8f0cef0b6e
BB importer: Refactoring user importing logic[ci skip]
2016-12-14 12:35:13 +02:00
Valery Sizov
e39f024029
BB importer: Adding created_by only when used is not found[ci skip]
2016-12-13 21:28:07 +02:00
Valery Sizov
0057ed1e69
BB importer: Fixed after code review[ci skip]
2016-12-13 17:59:21 +02:00
Valery Sizov
a2be395401
specs for bitbucket representers
2016-12-12 20:41:55 +02:00
Valery Sizov
3a0fecb492
Spec for bitbucket page
2016-12-12 17:29:25 +02:00
Valery Sizov
314c4746bc
Specs for Bitbucket::Connections and Bitbucket::Collections
2016-12-12 16:16:51 +02:00
Stan Hu
1d7f85aeef
Fix query for importing all projects for member
2016-12-09 15:28:49 -08:00
Stan Hu
091970208e
Return repositories to which user is a member, not just owner
2016-12-09 15:17:13 -08:00
Valery Sizov
00cd864237
BitBucket importer: import issues with labels
2016-12-07 18:04:02 +02:00
Valery Sizov
98c0eb0f75
BitBucket refactoring. Iteration 3
2016-12-07 15:54:32 +02:00
Valery Sizov
b12d654183
BitBuckpet importer. Refactoring. Iteration 2
2016-12-07 14:00:06 +02:00
Valery Sizov
67b7637e5d
Apply review comments. Iteration 1
2016-12-07 11:33:32 +02:00
Valery Sizov
ee8433466e
Fix importing PRs with not existing branches
2016-12-06 17:12:11 +02:00
Valery Sizov
84f2c219aa
Fix importing inline comment for any diff type
2016-12-06 13:46:59 +02:00
Valery Sizov
54221b5a3b
Fix inline comment importing for 1:1 diff type
2016-12-05 21:14:46 +02:00
Stan Hu
402cc95c1a
Fix Bitbucket importer spec to pass with 2.0 API
2016-11-21 20:49:40 -08:00
Stan Hu
0b72994b63
Simplify Bitbucket::Page implementation
2016-11-21 16:47:30 -08:00
Stan Hu
c7c4d657b4
Clean up Bitbucket connection based on review comments
2016-11-21 16:47:29 -08:00
Stan Hu
4d7303a98e
Clean up owner and slug representation
2016-11-21 16:47:29 -08:00
Stan Hu
9e6b25d0bc
Add support for extracting all pull requests and their raw diffs
2016-11-21 16:47:29 -08:00
Stan Hu
b8bf28348f
Rubocop fixes
2016-11-21 16:47:29 -08:00
Stan Hu
ea393e6f30
Import pull request comments
2016-11-21 16:47:28 -08:00
Stan Hu
489d241c8d
Incorporate review comments
2016-11-21 16:47:28 -08:00
Stan Hu
3b9d1c0f5d
Fix refresh to lazily load connection
2016-11-21 16:47:28 -08:00
Stan Hu
b25ebfe67b
Lazily load Bitbucket connection
2016-11-21 16:47:28 -08:00
Douglas Barbosa Alexandre
704115c726
Import opened pull request from Bitbucket
2016-11-21 16:47:27 -08:00
Douglas Barbosa Alexandre
64722a15e3
Add an endpoint to get a list of pull requests for a repo
2016-11-21 16:47:27 -08:00
Douglas Barbosa Alexandre
3f59d25d26
Add an endpoint to get a list of issue comments
2016-11-21 16:47:26 -08:00
Douglas Barbosa Alexandre
3dd15d3f75
Add an endpoint to get a list of issues for a repo
2016-11-21 16:47:26 -08:00
Douglas Barbosa Alexandre
56cb4762d4
Refactoring Bitbucket import controller to use the new OAuth2 client
2016-11-21 16:47:25 -08:00
Douglas Barbosa Alexandre
411d0a9372
Add an endpoint to get a single user repository
2016-11-21 16:47:25 -08:00
Douglas Barbosa Alexandre
6418c6f88e
Add an endpoint to get the user's repositories
2016-11-21 16:47:25 -08:00
Douglas Barbosa Alexandre
e2f7f32a60
Add support for Bitbucket pagination when fetching collections
2016-11-21 16:47:25 -08:00
Douglas Barbosa Alexandre
f1f5863bfc
Add an endpoint to get the Bitbucket user profile
2016-11-21 16:47:25 -08:00
Douglas Barbosa Alexandre
fc34c95603
Add a Bitbucket client for the OAuth2 API
2016-11-21 16:47:24 -08:00