From 5272fcb158c1f5bb7490e8677c04ca34de812ed7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 15:25:46 +0000 Subject: [PATCH 1/5] Initial plan From 46dd74783bd949c1b78ad4eb8e608ba8a26946df Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 15:33:55 +0000 Subject: [PATCH 2/5] Add FReD citation auto-update functionality Co-authored-by: LukasWallrich <60155545+LukasWallrich@users.noreply.github.com> --- .github/workflows/data-processing.yml | 31 +++++++++ data/fred_citation.json | 3 + layouts/shortcodes/cite-us.html | 19 ++++-- scripts/update_fred_citation.py | 97 +++++++++++++++++++++++++++ 4 files changed, 145 insertions(+), 5 deletions(-) create mode 100644 data/fred_citation.json create mode 100644 scripts/update_fred_citation.py diff --git a/.github/workflows/data-processing.yml b/.github/workflows/data-processing.yml index 39b1db9709f..472fa8cdfdb 100644 --- a/.github/workflows/data-processing.yml +++ b/.github/workflows/data-processing.yml @@ -241,6 +241,32 @@ jobs: exit 1 fi + #======================================== + # Update FReD citation (Weekly or Manual) + #======================================== + - name: Update FReD Citation + continue-on-error: true # Continue even if this step fails + run: | + echo "=== Updating FReD citation ===" + + # Check if it's a Sunday (day 0) OR manually triggered + CURRENT_DAY_OF_WEEK=$(date +%u) + if [ "$CURRENT_DAY_OF_WEEK" != "7" ] && [ "${{ github.event_name }}" != "workflow_dispatch" ]; then + echo "ℹ️ Skipping FReD citation update (not Sunday and not manual trigger)" + exit 0 + fi + + echo "🔄 Running FReD citation update..." + python3 scripts/update_fred_citation.py + + if [ -f "data/fred_citation.json" ]; then + echo "✅ FReD citation updated successfully" + echo "Citation length: $(wc -c < data/fred_citation.json) bytes" + else + echo "❌ FReD citation file was not created" + exit 1 + fi + #======================================================= # Create a pull request for GA data updates on monthly runs #======================================================= @@ -341,6 +367,7 @@ jobs: cp -r content/curated_resources /tmp/generated-resources/ cp content/contributors/tenzing.md /tmp/generated-resources/ || true cp data/ga_data.json /tmp/generated-resources/ga_data.json || true + cp data/fred_citation.json /tmp/generated-resources/fred_citation.json || true # Copy additional generated files mkdir -p /tmp/generated-resources/contributor-analysis @@ -389,6 +416,9 @@ jobs: if [ -f /tmp/generated-resources/ga_data.json ]; then cp /tmp/generated-resources/ga_data.json data/ga_data.json fi + if [ -f /tmp/generated-resources/fred_citation.json ]; then + cp /tmp/generated-resources/fred_citation.json data/fred_citation.json + fi if [ -f /tmp/generated-resources/summaries.json ]; then cp /tmp/generated-resources/summaries.json data/summaries.json fi @@ -417,6 +447,7 @@ jobs: git add content/curated_resources/ 2>/dev/null || true git add content/contributors/tenzing.md 2>/dev/null || true git add data/ga_data.json 2>/dev/null || true + git add data/fred_citation.json 2>/dev/null || true git add data/summaries.json 2>/dev/null || true git add content/contributor-analysis/ 2>/dev/null || true git add content/publications/citation_chart.webp 2>/dev/null || true diff --git a/data/fred_citation.json b/data/fred_citation.json new file mode 100644 index 00000000000..f7786e77a65 --- /dev/null +++ b/data/fred_citation.json @@ -0,0 +1,3 @@ +{ + "citation": "Wallrich, L.*, & Röseler, L.*, Hartmann, H., Ashcroft-Jones, S., Doetsch, C., Kaiser, L., Schüller, S. M., Aldoh, A., Behbood, H., Elsherif, M. M., Klett, N., Krapp, J., Liu, M., Pavlović, Z., Pennington, C. R., Schütz, A., Seida, C., Siziva, K., Skvortsova, A., Aczel, B., Adelina, N., Agostini, V., Al-Hoorie, A. H., Alarie, S., Albayrak-Aydemir, N., Alzahawi, S., Anvari, F., Arriaga, P., Baker, B. J., Barth, C. L., Bauer, D. J., Becker, R., Beitner, J., Belaus, A., Bhatt, H., Bhogal, J., Boyce, V., Breemer, L., Brick, C., Brohmer, H., Brummernhenrich, B., Budd, E., Butler, A., Casula, A., Chandrashekar, S. P., Chen, S., Chung, K. L., Cockcroft, J. P., Crowe, P., Cummins, J., Daniel, A., Deane, O., Deressa, T. K., Dienlin, T., Diveica, V., Draguns, A., Dumbalska, T., Efendic, E., El Halabi, M., Enright, S., Evans, T. R., Exner, A., Farrar, B. G., Feldman, G., Fillon, A., Floyd, J., Fontana Vieira, F., Frese, J., Förster, N., Gattie, M. C., Gemmecke, C., Genschow, O., Giannouli, V., Gjoneska, B., Gnambs, T., Gourdon-Kanhukamwe, A., Graham, C. J., Greshake Tzovaras, B., Guay, S., Hausenloy, J., Haviva, C., Henderson, E. L., Herderich, A., Hilbert, L., Holgado, D., Hussey, I., Höfer, L., Ilchovska, Z. G., Imada, H., Imwene, P., Izydorczak, K., Jaubert, S., Jeftić, A., Kalandadze, T., Kamermans, K., Karhulahti, V., Kasseckert, L., Kastrinogiannis, A., Klingelhöfer-Jens, M., Kocalar, H. E., Koppel, L., Koppold, A., Korbmacher, M., Kujawa, Z., Kulke, L., Kumar, P., Kuper, N., LaPlume, A. A., Lach, R., Lecuona, O., Lee, J., Leech, G., Leksina, E., Lin, C., Liu, Y., Lohkamp, F., Lou, N. M., Lynott, D., Mackinnon, S., Maier, M., Maiya, S., Makel, M. C., Manrique-Castano, D., Manríquez-Robles, D., Mathes, L., McSharry, D., Meidenbauer, K. L., Meier, M., Micheli, L., Miller, T., Montefinese, M., Moreau, D., Moser, N., Mrkva, K., Murphy, J., Muthu, J., Narkar, N., Nemcova, M., Nádvorník, J., O'Mahoney, R., O'Mahony, A., Oberholzer, Y., Oomen, D., Osano, M., Otstavnov, N., Packheiser, J., Pandey, S., Panton, H., Papenmeier, F., Parsons, S., Paruzel-Czachura, M., Pavlov, Y. G., Pittelkow, M., Plomp, W., Plonski, P. E., Pravednikov, A., Pronizius, E., Pua, A., Pypno-Blajda, K., Rausch, M., Raza, H., Reason, R., Rebholz, T. R., Resulbegoviq, H., Richert, E., Ross, R. M., Russo, S., Röer, J. P., Sandkühler, J. F., Schmidt, K., Sempere, N., Sobolak, R., Sperl, M. F., Stevens, J. R., Stogianni, M., Szekely, R., Tan, A. W., Thürmer, J. L., Tiulpakova, M., Tomczak, J., Tołopiło, A., Tunca, B., Vanpaemel, W., Vaughn, L. A., Verheyen, S., Vineyard, G. H., Weber, L., Weinberg, A., Wingen, S., Wolska, J., Yeung, S. K., Younssi, M., Zaneva, M., Zimmermann, D., Azevedo, F. (2026). FORRT Library of Replication Attempts (FLoRA) [Data set]. OSF. https://doi.org/10.17605/OSF.IO/9R62X\n\n* These authors contributed equally to this work." +} \ No newline at end of file diff --git a/layouts/shortcodes/cite-us.html b/layouts/shortcodes/cite-us.html index 7eb0568470a..6916594547e 100644 --- a/layouts/shortcodes/cite-us.html +++ b/layouts/shortcodes/cite-us.html @@ -51,10 +51,13 @@