Skip to content

Commit 83b96d3

Browse files
authored
Merge pull request #1132 from CircleCI-Public/develop
Cutting a new release
2 parents d2e8a96 + fb351f8 commit 83b96d3

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

config/pipeline.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,29 @@ func LocalPipelineValues(parameters Parameters) Values {
8181
"pipeline.trigger.name": "",
8282
"pipeline.event.name": "",
8383
"pipeline.event.action": "",
84+
"pipeline.event.github.repository.url": gitUrl,
85+
"pipeline.event.github.repository.name": "repo-name",
86+
"pipeline.event.github.repository.owner.login": "repo-owner",
87+
"pipeline.event.github.sender.avatar_url": "",
88+
"pipeline.event.github.sender.login": "user-login",
89+
"pipeline.event.github.ref": "branch-name",
90+
"pipeline.event.github.after": revision,
91+
"pipeline.event.github.head_commit.url": "",
92+
"pipeline.event.github.pull_request.title": "",
93+
"pipeline.event.github.pull_request.url": gitUrl,
94+
"pipeline.event.github.pull_request.head.sha": revision,
95+
"pipeline.event.github.pull_request.base.sha": revision,
96+
"pipeline.event.github.pull_request.base.ref": "base-branch",
97+
"pipeline.event.github.pull_request.head.ref": "head-branch",
98+
"pipeline.event.github.pull_request.merged": false,
99+
"pipeline.event.github.pull_request.number": 111,
100+
"pipeline.event.github.pull_request.draft": false,
101+
"pipeline.event.github.label": "",
102+
"pipeline.config.file_path": "",
103+
"pipeline.config.repository.url": gitUrl,
104+
"pipeline.config.repository.name": "",
105+
"pipeline.config.sha": revision,
106+
"pipeline.config.ref": "refs/head/master",
84107
}
85108

86109
for k, v := range parameters {

config/pipeline_test.go

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,29 @@ func TestLocalPipelineValues(t *testing.T) {
6666
"pipeline.trigger.name",
6767
"pipeline.event.name",
6868
"pipeline.event.action",
69+
"pipeline.event.github.repository.url",
70+
"pipeline.event.github.repository.name",
71+
"pipeline.event.github.repository.owner.login",
72+
"pipeline.event.github.sender.avatar_url",
73+
"pipeline.event.github.sender.login",
74+
"pipeline.event.github.ref",
75+
"pipeline.event.github.after",
76+
"pipeline.event.github.head_commit.url",
77+
"pipeline.event.github.pull_request.title",
78+
"pipeline.event.github.pull_request.url",
79+
"pipeline.event.github.pull_request.head.sha",
80+
"pipeline.event.github.pull_request.base.sha",
81+
"pipeline.event.github.pull_request.base.ref",
82+
"pipeline.event.github.pull_request.head.ref",
83+
"pipeline.event.github.pull_request.merged",
84+
"pipeline.event.github.pull_request.number",
85+
"pipeline.event.github.pull_request.draft",
86+
"pipeline.event.github.label",
87+
"pipeline.config.file_path",
88+
"pipeline.config.repository.url",
89+
"pipeline.config.repository.name",
90+
"pipeline.config.sha",
91+
"pipeline.config.ref",
6992
},
7093
},
7194
{
@@ -123,6 +146,29 @@ func TestLocalPipelineValues(t *testing.T) {
123146
"pipeline.trigger.name",
124147
"pipeline.event.name",
125148
"pipeline.event.action",
149+
"pipeline.event.github.repository.url",
150+
"pipeline.event.github.repository.name",
151+
"pipeline.event.github.repository.owner.login",
152+
"pipeline.event.github.sender.avatar_url",
153+
"pipeline.event.github.sender.login",
154+
"pipeline.event.github.ref",
155+
"pipeline.event.github.after",
156+
"pipeline.event.github.head_commit.url",
157+
"pipeline.event.github.pull_request.title",
158+
"pipeline.event.github.pull_request.url",
159+
"pipeline.event.github.pull_request.head.sha",
160+
"pipeline.event.github.pull_request.base.sha",
161+
"pipeline.event.github.pull_request.base.ref",
162+
"pipeline.event.github.pull_request.head.ref",
163+
"pipeline.event.github.pull_request.merged",
164+
"pipeline.event.github.pull_request.number",
165+
"pipeline.event.github.pull_request.draft",
166+
"pipeline.event.github.label",
167+
"pipeline.config.file_path",
168+
"pipeline.config.repository.url",
169+
"pipeline.config.repository.name",
170+
"pipeline.config.sha",
171+
"pipeline.config.ref",
126172
},
127173
},
128174
}

0 commit comments

Comments
 (0)