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
128 129 130 |
# File 'lib/vx/service_connector/model.rb', line 128 def test_payload(params = {}) Payload.from_hash(test_payload_attributes params) end |
#test_payload_attributes(params = {}) ⇒ Object
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/vx/service_connector/model.rb', line 111 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
132 133 134 135 136 137 138 139 140 141 |
# File 'lib/vx/service_connector/model.rb', line 132 def test_repo Repo.new( 1, 'full/name', false, '[email protected]', 'http://example.com', 'description' ) end |