Throwaway: English comments trial (do not merge) #213

Closed
Tirsvad wants to merge 7 commits from verify-english-comments into main
2 changed files with 30 additions and 0 deletions
@@ -0,0 +1,16 @@
name: Verify English comments
# Throwaway (MIL-013 task 8, #204): calls the reusable workflow of the fix branch
# on a pull request. Delete with the branch.
on:
pull_request:
jobs:
english-comments:
permissions:
contents: read
issues: write
pull-requests: write
uses: TirSystem/github-action/.gitea/workflows/english-comments.yml@mil-013-judge-each-line
with:
tools-ref: mil-013-judge-each-line
+14
View File
@@ -0,0 +1,14 @@
"""Throwaway sample for the English-comments trial (MIL-013 task 8)."""
def total(basket):
# This function adds the totals of the basket together and returns the sum
# This function adds the numbers in the basket together and keeps the sum
result = sum(basket)
# Fungsi ini mengira jumlah bagi troli dan menyimpan hasil dalam folder sementara
return result
def quote():
return "tak" # Tak for hjælpen, sagde kunden og beregner totalen for kurven # english-comments: ignore