Module: Vx::ServiceConnector::Model
Defined Under Namespace
Constant Summary collapse
- PAYLOAD_IGNORE_RE =
/\[(ci skip|skip ci)\]/i
Instance Method Summary collapse
- #test_payload(params = {}) ⇒ Object
- #test_payload_attributes(params = {}) ⇒ Object
- #test_repo ⇒ Object
Instance Method Details
#test_payload(params = {}) ⇒ Object
117 118 119 |
# File 'lib/vx/service_connector/model.rb', line 117 def test_payload(params = {}) Payload.from_hash(test_payload_attributes params) end |
#test_payload_attributes(params = {}) ⇒ Object
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/vx/service_connector/model.rb', line 100 def test_payload_attributes(params = {}) { skip: false, foreign_pull_request?: false, internal_pull_request?: false, pull_request_number: nil, branch: 'master', branch_label: 'master:label', sha: "HEAD", message: 'test commit', author: 'User Name', author_email: '[email protected]', web_url: 'http://example.com', tag: nil }.merge(params) end |
#test_repo ⇒ Object
121 122 123 124 125 126 127 128 129 130 |
# File 'lib/vx/service_connector/model.rb', line 121 def test_repo Repo.new( 1, 'full/name', false, '[email protected]', 'http://example.com', 'description' ) end |