You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Licensed under the Apache License, Version 2.0 (the "License");
8
+
you may not use this file except in compliance with the License.
9
+
You may obtain a copy of the License at
10
+
11
+
http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+
Unless required by applicable law or agreed to in writing, software
14
+
distributed under the License is distributed on an "AS IS" BASIS,
15
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+
See the License for the specific language governing permissions and
17
+
limitations under the License.
18
+
*/
19
+
20
+
package main
21
+
22
+
import (
23
+
"testing"
24
+
25
+
. "github.com/onsi/gomega"
26
+
)
27
+
28
+
funcTest_buildSetOfPRNumbers(t*testing.T) {
29
+
tests:= []struct {
30
+
namestring
31
+
commits []githubCommitNode
32
+
wantmap[string]struct{}
33
+
}{
34
+
{
35
+
name: "merge commit",
36
+
commits: []githubCommitNode{
37
+
{
38
+
Commit: githubCommit{
39
+
Message: "Merge pull request #9072 from k8s-infra-cherrypick-robot/cherry-pick-9070-to-release-1.5\n\n[release-1.5] :bug: Change tilt debug base image to golang",
40
+
},
41
+
},
42
+
},
43
+
want: map[string]struct{}{
44
+
"9072": {},
45
+
},
46
+
},
47
+
{
48
+
name: "squashed commit by tide",
49
+
commits: []githubCommitNode{
50
+
{
51
+
Commit: githubCommit{
52
+
Message: ":seedling: Add dependabot groups. Allow additional patch updates (#9263)\n\n* Allow patch updates on dependabot ignore list\n\nSigned-off-by: user <[email protected]>\n\n* Add dependency groups for dependabot\n\nSigned-off-by: user <[email protected]>\n\n---------\n\nSigned-off-by: user <[email protected]>",
0 commit comments