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