mozilla-taskgraph 2.0.0__tar.gz → 2.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/PKG-INFO +1 -1
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/worker_types.py +11 -9
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph.egg-info/PKG-INFO +1 -1
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/test/test_worker_types.py +19 -1
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/LICENSE +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/README.md +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/pyproject.toml +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/setup.cfg +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/setup.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/__init__.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/actions/__init__.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/actions/release_promotion.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/config.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/transforms/__init__.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/transforms/scriptworker/__init__.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/transforms/scriptworker/release_artifacts.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/transforms/scriptworker/shipit/__init__.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/transforms/scriptworker/shipit/mark_as_shipped.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/version.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph.egg-info/SOURCES.txt +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph.egg-info/dependency_links.txt +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph.egg-info/requires.txt +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph.egg-info/top_level.txt +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/test/test_register.py +0 -0
- {mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/test/test_version.py +0 -0
|
@@ -80,24 +80,26 @@ def build_bitrise_payload(config, task, task_def):
|
|
|
80
80
|
"branch_repo_owner": config.params["head_repository"],
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
head_ref
|
|
84
|
-
head_tag = normref(config.params["head_tag"], type="tags")
|
|
85
|
-
base_ref = normref(config.params["base_ref"])
|
|
86
|
-
|
|
87
|
-
if head_ref:
|
|
83
|
+
if head_ref := normref(config.params["head_ref"]):
|
|
88
84
|
global_params["branch"] = head_ref
|
|
89
85
|
|
|
90
|
-
if head_tag:
|
|
86
|
+
if head_tag := normref(config.params["head_tag"], type="tags"):
|
|
91
87
|
global_params["tag"] = head_tag
|
|
92
88
|
|
|
89
|
+
if commit_message := config.params.get("commit_message"):
|
|
90
|
+
global_params["commit_message"] = commit_message
|
|
91
|
+
|
|
92
|
+
if pull_request_number := config.params.get("pull_request_number"):
|
|
93
|
+
global_params["pull_request_id"] = pull_request_number
|
|
94
|
+
|
|
93
95
|
if config.params["tasks_for"] == "github-pull-request":
|
|
94
96
|
global_params["pull_request_author"] = config.params["owner"]
|
|
95
97
|
|
|
96
|
-
if base_ref:
|
|
98
|
+
if base_ref := normref(config.params["base_ref"]):
|
|
97
99
|
global_params["branch_dest"] = base_ref
|
|
98
100
|
|
|
99
|
-
if config.params["base_repository"]:
|
|
100
|
-
global_params["branch_dest_repo_owner"] =
|
|
101
|
+
if base_repository := config.params["base_repository"]:
|
|
102
|
+
global_params["branch_dest_repo_owner"] = base_repository
|
|
101
103
|
|
|
102
104
|
task_def["payload"] = {"global_params": global_params}
|
|
103
105
|
if workflow_params:
|
|
@@ -58,7 +58,11 @@ from mozilla_taskgraph import worker_types
|
|
|
58
58
|
),
|
|
59
59
|
pytest.param(
|
|
60
60
|
{"bitrise": {"app": "some-app", "workflows": ["bar"]}},
|
|
61
|
-
{
|
|
61
|
+
{
|
|
62
|
+
"tasks_for": "github-pull-request",
|
|
63
|
+
"commit_message": "This is a commit",
|
|
64
|
+
"pull_request_number": "123",
|
|
65
|
+
},
|
|
62
66
|
{
|
|
63
67
|
"payload": {
|
|
64
68
|
"global_params": {
|
|
@@ -68,6 +72,8 @@ from mozilla_taskgraph import worker_types
|
|
|
68
72
|
"branch_repo_owner": "http://example.com/head/repo",
|
|
69
73
|
"commit_hash": "abcdef",
|
|
70
74
|
"pull_request_author": "some-owner",
|
|
75
|
+
"commit_message": "This is a commit",
|
|
76
|
+
"pull_request_id": "123",
|
|
71
77
|
},
|
|
72
78
|
},
|
|
73
79
|
"scopes": ["foo:bitrise:app:some-app", "foo:bitrise:workflow:bar"],
|
|
@@ -83,6 +89,8 @@ from mozilla_taskgraph import worker_types
|
|
|
83
89
|
"head_ref": "",
|
|
84
90
|
"head_tag": "some-tag",
|
|
85
91
|
"tasks_for": "github-pull-request",
|
|
92
|
+
"commit_message": "This is a commit",
|
|
93
|
+
"pull_request_number": "123",
|
|
86
94
|
},
|
|
87
95
|
{
|
|
88
96
|
"payload": {
|
|
@@ -91,6 +99,8 @@ from mozilla_taskgraph import worker_types
|
|
|
91
99
|
"commit_hash": "abcdef",
|
|
92
100
|
"pull_request_author": "some-owner",
|
|
93
101
|
"tag": "some-tag",
|
|
102
|
+
"commit_message": "This is a commit",
|
|
103
|
+
"pull_request_id": "123",
|
|
94
104
|
}
|
|
95
105
|
},
|
|
96
106
|
"scopes": ["foo:bitrise:app:some-app", "foo:bitrise:workflow:bar"],
|
|
@@ -106,6 +116,8 @@ from mozilla_taskgraph import worker_types
|
|
|
106
116
|
"head_ref": "refs/heads/bar",
|
|
107
117
|
"head_tag": "refs/tags/some-tag",
|
|
108
118
|
"tasks_for": "github-pull-request",
|
|
119
|
+
"commit_message": "This is a commit",
|
|
120
|
+
"pull_request_number": "123",
|
|
109
121
|
},
|
|
110
122
|
{
|
|
111
123
|
"payload": {
|
|
@@ -116,6 +128,8 @@ from mozilla_taskgraph import worker_types
|
|
|
116
128
|
"commit_hash": "abcdef",
|
|
117
129
|
"pull_request_author": "some-owner",
|
|
118
130
|
"tag": "some-tag",
|
|
131
|
+
"commit_message": "This is a commit",
|
|
132
|
+
"pull_request_id": "123",
|
|
119
133
|
}
|
|
120
134
|
},
|
|
121
135
|
"scopes": ["foo:bitrise:app:some-app", "foo:bitrise:workflow:bar"],
|
|
@@ -131,6 +145,8 @@ from mozilla_taskgraph import worker_types
|
|
|
131
145
|
"head_ref": "refs/tags/bar",
|
|
132
146
|
"head_tag": "refs/heads/some-tag",
|
|
133
147
|
"tasks_for": "github-pull-request",
|
|
148
|
+
"commit_message": "This is a commit",
|
|
149
|
+
"pull_request_number": "123",
|
|
134
150
|
},
|
|
135
151
|
{
|
|
136
152
|
"payload": {
|
|
@@ -138,6 +154,8 @@ from mozilla_taskgraph import worker_types
|
|
|
138
154
|
"branch_repo_owner": "http://example.com/head/repo",
|
|
139
155
|
"commit_hash": "abcdef",
|
|
140
156
|
"pull_request_author": "some-owner",
|
|
157
|
+
"commit_message": "This is a commit",
|
|
158
|
+
"pull_request_id": "123",
|
|
141
159
|
}
|
|
142
160
|
},
|
|
143
161
|
"scopes": ["foo:bitrise:app:some-app", "foo:bitrise:workflow:bar"],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/actions/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph/transforms/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph.egg-info/requires.txt
RENAMED
|
File without changes
|
{mozilla-taskgraph-2.0.0 → mozilla-taskgraph-2.0.1}/src/mozilla_taskgraph.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|