diff --git a/.gitea/workflows/verify-english-comments.yml b/.gitea/workflows/verify-english-comments.yml new file mode 100644 index 0000000..afa68b3 --- /dev/null +++ b/.gitea/workflows/verify-english-comments.yml @@ -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 diff --git a/trial/sample.py b/trial/sample.py new file mode 100644 index 0000000..5ab3459 --- /dev/null +++ b/trial/sample.py @@ -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