]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
add ability to modify a checkedout commit
authorMarc Foley <m.foley.88@gmail.com>
Tue, 4 Mar 2025 14:01:24 +0000 (14:01 +0000)
committerMarc Foley <m.foley.88@gmail.com>
Tue, 4 Mar 2025 14:01:24 +0000 (14:01 +0000)
.ci/tags.html

index 91dba21d65ef706f90549bbf6e44e96db7fd49c6..56984717063e90a0c118153ede9c797f405a1cf1 100644 (file)
@@ -580,7 +580,11 @@ function axesCombos(axes) {
         let csv = this.tagsToCSV();
         alert("Tag data copied to clipboard. A github pull request page will open in a new tab. Please remove the old data and paste in the new.");
         navigator.clipboard.writeText(csv);
-        window.open("https://github.com/google/fonts/edit/main/tags/all/families.csv")
+        if (this.commit !== "refs/heads/main") {
+          window.open(`https://github.com/google/fonts/edit/${this.commit}/tags/all/families.csv`);
+        } else {
+          window.open("https://github.com/google/fonts/edit/main/tags/all/families.csv")
+        }
       },
       loadCSV() {
         if (this.history.length > 0) {