Skip to content

Commit 9bd3520

Browse files
committed
add add_path to shared.add_and_commit() function calls and make message declarative
1 parent 625fe61 commit 9bd3520

30 files changed

+86
-30
lines changed

scripts/1-fetch/deviantart_fetched.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ def main():
263263
save_state(state)
264264

265265
# Add and commit changes
266-
shared.add_and_commit(PATHS["repo"], "Added and committed DeviantArt data")
266+
shared.add_and_commit(
267+
PATHS["repo"], PATHS["data_phase"], "Add and commit DeviantArt data"
268+
)
267269

268270
# Push changes
269271
shared.push_changes(PATHS["repo"])

scripts/1-fetch/flickr_fetched.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ def main():
367367
LOGGER.info("Script execution completed successfully.")
368368

369369
# Add and commit changes
370-
shared.add_and_commit(PATHS["repo"], "Added and committed new reports")
370+
shared.add_and_commit(
371+
PATHS["repo"], PATHS["data_phase"], "Add and commit new reports"
372+
)
371373

372374
# Push changes
373375
shared.push_changes(PATHS["repo"])

scripts/1-fetch/gcs_fetched.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def main():
376376

377377
# Add and commit changes
378378
shared.add_and_commit(
379-
PATHS["repo"], PATHS["data_phase"], "Added and committed new reports"
379+
PATHS["repo"], PATHS["data_phase"], "Add and commit new reports"
380380
)
381381

382382
# Push changes

scripts/1-fetch/github_fetched.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ def main():
187187
save_state(state)
188188

189189
# Add and commit changes
190-
shared.add_and_commit(PATHS["repo"], "Added and committed GitHub data")
190+
shared.add_and_commit(
191+
PATHS["repo"], PATHS["data_phase"], "Add and commit GitHub data"
192+
)
191193

192194
# Push changes
193195
shared.push_changes(PATHS["repo"])

scripts/1-fetch/internetarchive_fetched.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ def main():
223223

224224
# Add and commit changes
225225
shared.add_and_commit(
226-
PATHS["repo"], "Added and committed Internet Archive data"
226+
PATHS["repo"],
227+
PATHS["data_phase"],
228+
"Add and commit Internet Archive data",
227229
)
228230

229231
# Push changes

scripts/1-fetch/metmuseum_fetched.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ def main():
191191
save_state(state)
192192

193193
# Add and commit changes
194-
shared.add_and_commit(PATHS["repo"], "Added and committed MetMuseum data")
194+
shared.add_and_commit(
195+
PATHS["repo"], PATHS["data_phase"], "Add and commit MetMuseum data"
196+
)
195197

196198
# Push changes
197199
shared.push_changes(PATHS["repo"])

scripts/1-fetch/vimeo_fetched.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ def main():
233233
save_state(state)
234234

235235
# Add and commit changes
236-
shared.add_and_commit(PATHS["repo"], "Added and committed Vimeo data")
236+
shared.add_and_commit(
237+
PATHS["repo"], PATHS["data_phase"], "Add and commit Vimeo data"
238+
)
237239

238240
# Push changes
239241
shared.push_changes(PATHS["repo"])

scripts/1-fetch/wikicommons_fetched.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def main():
275275

276276
# Add and commit changes
277277
shared.add_and_commit(
278-
PATHS["repo"], "Added and committed WikiCommons data"
278+
PATHS["repo"], PATHS["data_phase"], "Add and commit WikiCommons data"
279279
)
280280

281281
# Push changes

scripts/1-fetch/wikipedia_fetched.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ def main():
218218
save_state(state)
219219

220220
# Add and commit changes
221-
shared.add_and_commit(PATHS["repo"], "Added and committed Wikipedia data")
221+
shared.add_and_commit(
222+
PATHS["repo"], PATHS["data_phase"], "Add and commit Wikipedia data"
223+
)
222224

223225
# Push changes
224226
shared.push_changes(PATHS["repo"])

scripts/1-fetch/youtube_fetched.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,9 @@ def main():
256256
save_state(state)
257257

258258
# Add and commit changes
259-
shared.add_and_commit(PATHS["repo"], "Added and committed YouTube data")
259+
shared.add_and_commit(
260+
PATHS["repo"], PATHS["data_phase"], "Add and commit YouTube data"
261+
)
260262

261263
# Push changes
262264
shared.push_changes(PATHS["repo"])

scripts/2-process/deviantart_processed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def main():
6969
# shared.fetch_and_merge(PATHS["repo"])
7070

7171
# # Add and commit changes
72-
# shared.add_and_commit(PATHS["repo"], "Fetched and updated new data")
72+
# shared.add_and_commit(
73+
# PATHS["repo"], PATHS["data_phase"], "Fetched and updated new data"
74+
# )
7375

7476
# # Push changes
7577
# shared.push_changes(PATHS["repo"])

scripts/2-process/flickr_processed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def main():
6969
# shared.fetch_and_merge(PATHS["repo"])
7070

7171
# # Add and commit changes
72-
# shared.add_and_commit(PATHS["repo"], "Fetched and updated new data")
72+
# shared.add_and_commit(
73+
# PATHS["repo"], PATHS["data_phase"], "Fetched and updated new data"
74+
# )
7375

7476
# # Push changes
7577
# shared.push_changes(PATHS["repo"])

scripts/2-process/gcs_processed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ def main():
164164
# shared.fetch_and_merge(PATHS["repo"])
165165

166166
# # Add and commit changes
167-
# shared.add_and_commit(PATHS["repo"], "Fetched and updated new data")
167+
# shared.add_and_commit(
168+
# PATHS["repo"], PATHS["data_phase"], "Fetched and updated new data"
169+
# )
168170

169171
# # Push changes
170172
# shared.push_changes(PATHS["repo"])

scripts/2-process/github_processed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def main():
6969
# shared.fetch_and_merge(PATHS["repo"])
7070

7171
# # Add and commit changes
72-
# shared.add_and_commit(PATHS["repo"], "Fetched and updated new data")
72+
# shared.add_and_commit(
73+
# PATHS["repo"], PATHS["data_phase"], "Fetched and updated new data"
74+
# )
7375

7476
# # Push changes
7577
# shared.push_changes(PATHS["repo"])

scripts/2-process/internetarchive_processed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def main():
6969
# shared.fetch_and_merge(PATHS["repo"])
7070

7171
# # Add and commit changes
72-
# shared.add_and_commit(PATHS["repo"], "Fetched and updated new data")
72+
# shared.add_and_commit(
73+
# PATHS["repo"], PATHS["data_phase"], "Fetched and updated new data"
74+
# )
7375

7476
# # Push changes
7577
# shared.push_changes(PATHS["repo"])

scripts/2-process/metmuseum_processed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def main():
6969
# shared.fetch_and_merge(PATHS["repo"])
7070

7171
# # Add and commit changes
72-
# shared.add_and_commit(PATHS["repo"], "Fetched and updated new data")
72+
# shared.add_and_commit(
73+
# PATHS["repo"], PATHS["data_phase"], "Fetched and updated new data"
74+
# )
7375

7476
# # Push changes
7577
# shared.push_changes(PATHS["repo"])

scripts/2-process/vimeo_processed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def main():
6969
# shared.fetch_and_merge(PATHS["repo"])
7070

7171
# # Add and commit changes
72-
# shared.add_and_commit(PATHS["repo"], "Fetched and updated new data")
72+
# shared.add_and_commit(
73+
# PATHS["repo"], PATHS["data_phase"], "Fetched and updated new data"
74+
# )
7375

7476
# # Push changes
7577
# shared.push_changes(PATHS["repo"])

scripts/2-process/wikicommons_processed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def main():
6969
# shared.fetch_and_merge(PATHS["repo"])
7070

7171
# # Add and commit changes
72-
# shared.add_and_commit(PATHS["repo"], "Fetched and updated new data")
72+
# shared.add_and_commit(
73+
# PATHS["repo"], PATHS["data_phase"], "Fetched and updated new data"
74+
# )
7375

7476
# # Push changes
7577
# shared.push_changes(PATHS["repo"])

scripts/2-process/wikipedia_processed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def main():
6969
# shared.fetch_and_merge(PATHS["repo"])
7070

7171
# # Add and commit changes
72-
# shared.add_and_commit(PATHS["repo"], "Fetched and updated new data")
72+
# shared.add_and_commit(
73+
# PATHS["repo"], PATHS["data_phase"], "Fetched and updated new data"
74+
# )
7375

7476
# # Push changes
7577
# shared.push_changes(PATHS["repo"])

scripts/2-process/youtube_processed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def main():
6969
# shared.fetch_and_merge(PATHS["repo"])
7070

7171
# # Add and commit changes
72-
# shared.add_and_commit(PATHS["repo"], "Fetched and updated new data")
72+
# shared.add_and_commit(
73+
# PATHS["repo"], PATHS["data_phase"], "Fetched and updated new data"
74+
# )
7375

7476
# # Push changes
7577
# shared.push_changes(PATHS["repo"])

scripts/3-report/deviantart_reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ def main():
165165
# Add and commit changes
166166
if not args.skip_commit:
167167
shared.add_and_commit(
168-
PATHS["repo"], "Added and committed new Deviantart reports"
168+
PATHS["repo"],
169+
PATHS["data_phase"],
170+
"Add and commit new Deviantart reports",
169171
)
170172

171173
# Push changes

scripts/3-report/flickr_reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def main():
114114
# Add and commit changes
115115
if not args.skip_commit:
116116
shared.add_and_commit(
117-
PATHS["repo"], "Added and committed new GitHub reports"
117+
PATHS["repo"],
118+
PATHS["data_phase"],
119+
"Add and commit new GitHub reports",
118120
)
119121

120122
# Push changes

scripts/3-report/gcs_reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ def main():
329329

330330
# Add and commit changes
331331
if not args.skip_commit:
332-
shared.add_and_commit(PATHS["repo"], "Added and committed new reports")
332+
shared.add_and_commit(
333+
PATHS["repo"], PATHS["data_phase"], "Add and commit new reports"
334+
)
333335

334336
# Push changes
335337
if not args.skip_push:

scripts/3-report/github_reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ def main():
168168
# Add and commit changes
169169
if not args.skip_commit:
170170
shared.add_and_commit(
171-
PATHS["repo"], "Added and committed new GitHub reports"
171+
PATHS["repo"],
172+
PATHS["data_phase"],
173+
"Add and commit new GitHub reports",
172174
)
173175

174176
# Push changes

scripts/3-report/internetarchive_reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ def main():
164164
# Add and commit changes
165165
if not args.skip_commit:
166166
shared.add_and_commit(
167-
PATHS["repo"], "Added and committed new Internet Archive reports"
167+
PATHS["repo"],
168+
PATHS["data_phase"],
169+
"Add and commit new Internet Archive reports",
168170
)
169171

170172
# Push changes

scripts/3-report/metmuseum_reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ def main():
162162
# Add and commit changes
163163
if not args.skip_commit:
164164
shared.add_and_commit(
165-
PATHS["repo"], "Added and committed new Metmuseum reports"
165+
PATHS["repo"],
166+
PATHS["data_phase"],
167+
"Add and commit new Metmuseum reports",
166168
)
167169

168170
# Push changes

scripts/3-report/vimeo_reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ def main():
157157
# Add and commit changes
158158
if not args.skip_commit:
159159
shared.add_and_commit(
160-
PATHS["repo"], "Added and committed new Vimeo reports"
160+
PATHS["repo"],
161+
PATHS["data_phase"],
162+
"Add and commit new Vimeo reports",
161163
)
162164

163165
# Push changes

scripts/3-report/wikicommons_reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ def main():
216216
# Add and commit changes
217217
if not args.skip_commit:
218218
shared.add_and_commit(
219-
PATHS["repo"], "Added and committed new WikiCommons reports"
219+
PATHS["repo"],
220+
PATHS["data_phase"],
221+
"Add and commit new WikiCommons reports",
220222
)
221223

222224
# Push changes

scripts/3-report/wikipedia_reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ def main():
161161
# Add and commit changes
162162
if not args.skip_commit:
163163
shared.add_and_commit(
164-
PATHS["repo"], "Added and committed new Wikpedia reports"
164+
PATHS["repo"],
165+
PATHS["data_phase"],
166+
"Add and commit new Wikpedia reports",
165167
)
166168

167169
# Push changes

scripts/3-report/youtube_reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ def main():
161161
# Add and commit changes
162162
if not args.skip_commit:
163163
shared.add_and_commit(
164-
PATHS["repo"], "Added and committed new YouTube reports"
164+
PATHS["repo"],
165+
PATHS["data_phase"],
166+
"Add and commit new YouTube reports",
165167
)
166168

167169
# Push changes

0 commit comments

Comments
 (0)