Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
56d37ff4
Commit
56d37ff4
authored
Jul 07, 2021
by
Andrejs Cunskis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address review comments
Use generic Github client Fix autoload name
parent
4496d7a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
qa/qa/ee.rb
qa/qa/ee.rb
+1
-1
qa/qa/resource/project_imported_from_github.rb
qa/qa/resource/project_imported_from_github.rb
+5
-5
No files found.
qa/qa/ee.rb
View file @
56d37ff4
...
...
@@ -217,7 +217,7 @@ module QA
autoload
:License
,
'qa/ee/resource/license'
autoload
:Epic
,
'qa/ee/resource/epic'
autoload
:GroupIteration
,
'qa/ee/resource/group_iteration'
autoload
:ImportRepoWithC
ICD
,
'qa/ee/resource/import_repo_with_ci_cd'
autoload
:ImportRepoWithC
iCd
,
'qa/ee/resource/import_repo_with_ci_cd'
autoload
:PipelineSubscriptions
,
'qa/ee/resource/pipeline_subscriptions'
module
Board
...
...
qa/qa/resource/project_imported_from_github.rb
View file @
56d37ff4
...
...
@@ -7,7 +7,7 @@ module QA
class
ProjectImportedFromGithub
<
Resource
::
Project
attribute
:github_repo_id
do
github_repository_path
.
split
(
'/'
).
yield_self
do
|
path
|
github_repos
.
get
(
user:
path
[
0
],
repo:
path
[
1
]).
id
github_
client
.
repos
.
get
(
user:
path
[
0
],
repo:
path
[
1
]).
id
end
end
...
...
@@ -54,11 +54,11 @@ module QA
private
# Github
repos
client
# Github client
#
# @return [Github::Client
::Repos
]
def
github_
repos
@github_
repo
||=
Github
::
Client
::
Repos
.
new
(
oauth_token:
github_personal_access_token
)
# @return [Github::Client]
def
github_
client
@github_
client
||=
Github
.
new
(
oauth_token:
github_personal_access_token
)
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment