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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
31a752a7
Commit
31a752a7
authored
Aug 28, 2018
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New GitAccessResult::Success/CustomAction
parent
b92b7d82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
lib/gitlab/git_access_result/custom_action.rb
lib/gitlab/git_access_result/custom_action.rb
+25
-0
lib/gitlab/git_access_result/success.rb
lib/gitlab/git_access_result/success.rb
+8
-0
No files found.
lib/gitlab/git_access_result/custom_action.rb
0 → 100644
View file @
31a752a7
# frozen_string_literal: true
module
Gitlab
module
GitAccessResult
class
CustomAction
attr_reader
:payload
,
:message
# Example of payload:
#
# {
# 'action' => 'geo_proxy_to_primary',
# 'data' => {
# 'api_endpoints' => %w{geo/proxy_git_push_ssh/info_refs geo/proxy_git_push_ssh/push},
# 'gl_username' => user.username,
# 'primary_repo' => geo_primary_http_url_to_repo(project_or_wiki)
# }
# }
#
def
initialize
(
payload
,
message
)
@payload
=
payload
@message
=
message
end
end
end
end
lib/gitlab/git_access_result/success.rb
0 → 100644
View file @
31a752a7
# frozen_string_literal: true
module
Gitlab
module
GitAccessResult
class
Success
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