[openstreetmap/openstreetmap-website] Added workflow for PR labeling using Danger (PR #4988)

Holger Jeromin notifications at github.com
Thu Aug 22 03:43:12 UTC 2024


@HolgerJeromin commented on this pull request.



> @@ -0,0 +1,44 @@
+# Get PR number and initialize is_good_pr variable
+pr_number = github.pr_json["number"]
+is_good_pr = true
+
+# Report if number of changed lines is > 500
+if git.lines_of_code > 500
+  warn("Number of updated lines of code is too large to be in one PR. Perhaps it should be separated into two or more?")
+  auto_label.set(pr_number, "Big PR", "ffff00")

Markdown'ified:
`#B60205` - red
`#D93F0B` - orange
`#FBCA04` - yellow

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4988#discussion_r1726193299
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4988/review/2253110223 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240821/0f9c83ca/attachment.htm>


More information about the rails-dev mailing list