diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-27 01:45:38 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-27 01:45:38 +0300 |
commit | 7ee9c3c436c892d67fc36ec226528e9b70ce0e64 (patch) | |
tree | 5e37a2097671495c02dca6d99df2a1775639b510 /lib/bitbucket_server | |
parent | e52f6bf5f9c30f7bdd7d05c1d692746bf9428a3d (diff) |
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 |