Commit Graph

24 Commits

Author SHA1 Message Date
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
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
Douwe Maan 7ea641b6d0 Enable Style/ColonMethodCall 2017-02-23 09:31:57 -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 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 a2be395401 specs for bitbucket representers 2016-12-12 20:41:55 +02:00
Valery Sizov 00cd864237 BitBucket importer: import issues with labels 2016-12-07 18:04:02 +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 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 4d7303a98e Clean up owner and slug representation 2016-11-21 16:47:29 -08:00
Stan Hu ea393e6f30 Import pull request comments 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 6418c6f88e Add an endpoint to get the user's repositories 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