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
110 111 112 |
# File 'lib/vx/service_connector/model.rb', line 110 def test_payload(params = {}) Payload.from_hash(test_payload_attributes params) end |
#test_payload_attributes(params = {}) ⇒ Object
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/vx/service_connector/model.rb', line 93 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
114 115 116 117 118 119 120 121 122 123 |
# File 'lib/vx/service_connector/model.rb', line 114 def test_repo Repo.new( 1, 'full/name', false, '[email protected]', 'http://example.com', 'description' ) end |