<p dir="auto">This PR proposes possible solution for labeling pull requests using Danger described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2362560996" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4912" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4912/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4912">#4912</a></p>
<p dir="auto">Proposed solution introduces new workflow, executed whenever new PR is created or updated. Workflow checks if PR is too big (>500 changed lines) or changes one of translation files (YML, except en.yml) or contains merge-commits and generates appropriate labels using Danger and danger-auto_label plugin. If none of these is found, green "Good PR" is generated.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/4d4141e8-a471-4ff8-a842-a831198a4ed8">image.png (view on web)</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4988'>https://github.com/openstreetmap/openstreetmap-website/pull/4988</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4988/commits/3bd37ca9834d2147a3040dca71e40d9a38747ff5" class="commit-link">3bd37ca</a>  Added workflow for PR labeling using Danger</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4988/files">4 files</a>)</p>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4988/files#diff-d6d8cf068c2eceaddebcc028bf9918ab1f7f948f178bed2b04261128c129bdbd">.github/workflows/labeling.yml</a>
    (25)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4988/files#diff-c429cc891087188b07403da9305b15810b0b14e3ad75cef11bdf09580c4734dd">Dangerfile</a>
    (32)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4988/files#diff-d09ea66f8227784ff4393d88a19836f321c915ae10031d16c93d67e6283ab55f">Gemfile</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4988/files#diff-89cade48462044ee1b672dc5f4c3ec250fbd29effcd8932096a23c1283c6731f">Gemfile.lock</a>
    (44)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4988.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4988.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4988.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4988.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4988">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLYOX7TR4OFZUXAY3TZMOVIHAVCNFSM6AAAAABK4KPUJOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDQNBXGQ3DMMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLITYFY663NECWMK53LZMOVIHA5CNFSM6AAAAABK4KPUJOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHI7DTIEQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4988</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4988",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4988",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>