fbe 0.0.24 → 0.0.25
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.
- checksums.yaml +4 -4
- data/lib/fbe/octo.rb +46 -0
- data/lib/fbe.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 271cf18aec3c0815566d0e437d10e0bed25949388ceadb0249090cefc7018beb
|
|
4
|
+
data.tar.gz: 14e1b474c174ef2a7ee2170b5feae6ddee90f9c9faf789f05f1efe8aaab7427b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5295f5e731076ab568869329a52ecf91289c049e83e22de834c7692302eb19aec6f6bd7fc1e3c2216b0e728620d2a31fd77bc55d091f98cbf036d981bbcdeedb
|
|
7
|
+
data.tar.gz: 7303c455a7f1b244c61bc33b4762383aca458b7f76cc3d9ca11bd6ad0158791c934cf02e8f53b8073b4e2a949b8b98a2685966a815ce3fd846973f74a65984c9
|
data/lib/fbe/octo.rb
CHANGED
|
@@ -142,6 +142,52 @@ class Fbe::FakeOctokit
|
|
|
142
142
|
}
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
+
def repository_workflow_runs(repo)
|
|
146
|
+
{
|
|
147
|
+
total_count: 2,
|
|
148
|
+
workflow_runs: [
|
|
149
|
+
workflow_run(repo, 42),
|
|
150
|
+
workflow_run(repo, 7)
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
def workflow_run(repo, id)
|
|
156
|
+
{
|
|
157
|
+
id:,
|
|
158
|
+
name: 'copyrights',
|
|
159
|
+
head_branch: 'master',
|
|
160
|
+
head_sha: '7d34c53e6743944dbf6fc729b1066bcbb3b18443',
|
|
161
|
+
event: 'push',
|
|
162
|
+
status: 'completed',
|
|
163
|
+
conclusion: 'success',
|
|
164
|
+
workflow_id: id,
|
|
165
|
+
created_at: random_time,
|
|
166
|
+
repository: repository(repo)
|
|
167
|
+
}
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def releases(_repo)
|
|
171
|
+
[
|
|
172
|
+
release('https://github...'),
|
|
173
|
+
release('https://gith')
|
|
174
|
+
]
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
def release(_url)
|
|
178
|
+
{
|
|
179
|
+
node_id: 'RE_kwDOL6GCO84J7Cen',
|
|
180
|
+
tag_name: '0.19.0',
|
|
181
|
+
target_commitish: 'master',
|
|
182
|
+
name: 'just a fake name',
|
|
183
|
+
draft: false,
|
|
184
|
+
prerelease: false,
|
|
185
|
+
created_at: random_time,
|
|
186
|
+
published_at: random_time,
|
|
187
|
+
assets: []
|
|
188
|
+
}
|
|
189
|
+
end
|
|
190
|
+
|
|
145
191
|
def repository(name)
|
|
146
192
|
{
|
|
147
193
|
id: name_to_number(name),
|
data/lib/fbe.rb
CHANGED