diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-26 15:45:38 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-26 15:45:38 -0700 |
commit | 7ee9c3c436c892d67fc36ec226528e9b70ce0e64 (patch) | |
tree | 5e37a2097671495c02dca6d99df2a1775639b510 /lib/bitbucket_server | |
parent | e52f6bf5f9c30f7bdd7d05c1d692746bf9428a3d (diff) | |
download | gitlab-ce-7ee9c3c436c892d67fc36ec226528e9b70ce0e64.tar.gz |
Use project key instead of project name for imports
Diffstat (limited to 'lib/bitbucket_server')
-rw-r--r-- | lib/bitbucket_server/representation/repo.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bitbucket_server/representation/repo.rb b/lib/bitbucket_server/representation/repo.rb index 9c518341e66..6c494b79166 100644 --- a/lib/bitbucket_server/representation/repo.rb +++ b/lib/bitbucket_server/representation/repo.rb @@ -7,6 +7,10 @@ module BitbucketServer super(raw) end + def project_key + raw.dig('project', 'key') + end + def project_name raw.dig('project', 'name') end |