Bläddra i källkod

Fix pluralization of commit count

Co-authored-by: djeada <[email protected]>
copilot-swe-agent[bot] 1 månad sedan
förälder
incheckning
c0c74c87b2
2 ändrade filer med 5 tillägg och 3 borttagningar
  1. 2 2
      scripts/CONTRIBUTORS.md
  2. 3 1
      scripts/update_contributors.py

+ 2 - 2
scripts/CONTRIBUTORS.md

@@ -5,5 +5,5 @@ Do not edit manually — run `python scripts/update_contributors.py` to refresh.
 
 | Name | Email | Contributions | First Commit | Last Commit | Reference |
 |------|--------|----------------|---------------|--------------|-----------|
-| Adam Djellouli | [email protected] | 1 commits | 2025-10-29 | 2025-10-29 |  |
-| copilot-swe-agent[bot] | [email protected] | 2 commits | 2025-10-29 | 2025-10-29 |  |
+| Adam Djellouli | [email protected] | 1 commit | 2025-10-29 | 2025-10-29 |  |
+| copilot-swe-agent[bot] | [email protected] | 4 commits | 2025-10-29 | 2025-10-29 |  |

+ 3 - 1
scripts/update_contributors.py

@@ -59,7 +59,9 @@ def generate_table(contributors):
         emails = ", ".join(sorted(info["emails"]))
         # Default empty reference link
         reference = ""
-        rows.append(f"| {name} | {emails} | {info['count']} commits | {info['first']} | {info['last']} | {reference} |")
+        # Use proper pluralization for commits
+        commit_text = f"{info['count']} commit" if info['count'] == 1 else f"{info['count']} commits"
+        rows.append(f"| {name} | {emails} | {commit_text} | {info['first']} | {info['last']} | {reference} |")
     return "\n".join(header + rows) + "\n"
 
 def main():