From c0249248d942a979b97fee255501e5edc7106731 Mon Sep 17 00:00:00 2001 From: FeRD (Frank Dana) Date: Dec 03 2020 11:55:04 +0000 Subject: [PATCH 1/3] Guide: Update repo URL (branch name) --- diff --git a/modules/dashboard/pages/guide.adoc b/modules/dashboard/pages/guide.adoc index bc648ac..c7a69ec 100644 --- a/modules/dashboard/pages/guide.adoc +++ b/modules/dashboard/pages/guide.adoc @@ -5,7 +5,7 @@ If you have questions, contact the https://docs.fedoraproject.org/en-US/council/ == Update process -Each area should provide updates by editing the file of the same name in the https://pagure.io/Fedora-Council/status_reports/blob/master/f/modules/dashboard/pages[status_reports] repository. +Each area should provide updates by editing the file of the same name in the https://pagure.io/Fedora-Council/status_reports/blob/main/f/modules/dashboard/pages[status_reports] repository. Updates should be made at a reasonable frequency for the area. Work with the FPgM to determine this frequency for your area. From 7917e4e31c3a0d6e6026271e78495e4148b2f4f5 Mon Sep 17 00:00:00 2001 From: FeRD (Frank Dana) Date: Dec 03 2020 11:55:27 +0000 Subject: [PATCH 2/3] README: Update branch name in examples --- diff --git a/README.md b/README.md index 90f67c5..956d772 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ So for example, if I made a modification to the Modularity docs, I would find: ... - url: https://pagure.io/fedora-docs/modularity.git branches: - - master + - main ... ``` @@ -61,7 +61,7 @@ And replaced it with a pointer to my fork: ... - url: https://pagure.io/forks/asamalik/fedora-docs/modularity.git branches: - - master + - main ... ``` From 1a3fe7460c8135a553112909b51695efb45585a1 Mon Sep 17 00:00:00 2001 From: FeRD (Frank Dana) Date: Dec 03 2020 12:08:55 +0000 Subject: [PATCH 3/3] status_checker.py: Update branch name --- diff --git a/status_checker.py b/status_checker.py index 0efe0c4..54de15d 100755 --- a/status_checker.py +++ b/status_checker.py @@ -30,12 +30,12 @@ status_areas = { # Some constants we might like to have handy ANTORA_ROOT = "modules/dashboard/pages" -GIT_URL = "https://pagure.io/Fedora-Council/status_reports/blob/master/f/" + ANTORA_ROOT +GIT_URL = "https://pagure.io/Fedora-Council/status_reports/blob/main/f/" + ANTORA_ROOT SECONDS_PER_WEEK = 604800 statusrepo = Repo(os.getcwd()) -tree = statusrepo.heads.master.commit.tree +tree = statusrepo.heads.main.commit.tree for update in status_areas: timestamp = next(statusrepo.iter_commits(paths=os.path.join(ANTORA_ROOT, update))).committed_date