<p></p>
<blockquote>
<p dir="auto">...<br>
Run bundle exec danger --verbose<br>
To use retry middleware with Faraday v2.0+, install <code class="notranslate">faraday-retry</code> gem<br>
To use multipart middleware with Faraday v2.0+, install <code class="notranslate">faraday-multipart</code> gem; note: this is used by the ManageGHES client for uploading licenses<br>
fatal: couldn't find remote ref refs/heads/osmf_wiki_links<br>
...</p>
<p dir="auto">I don't know what the problem is here - do you have any ideas <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nenad-vujicic/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nenad-vujicic">@nenad-vujicic</a> ?</p>
</blockquote>
<p dir="auto">On my personal GitHub account, combination of "fetch-depth:0" + "creating new token" worked fine for supporting PRs from forks (also used in <a href="https://github.com/danger/danger/blob/master/.github/workflows/CI.yml">https://github.com/danger/danger/blob/master/.github/workflows/CI.yml</a>). I'm not sure how it will behave on osm-website because of bots (or if OSM GitHub is registered as GitHub Enterprise account, here are more details <a href="https://danger.systems/guides/getting_started" rel="nofollow">https://danger.systems/guides/getting_started</a>). Here are my steps:</p>
<ol dir="auto">
<li>
<p dir="auto">Someone with OSM GitHub administrator privileges should generate token with very very carefully selected permissions</p>
</li>
<li>
<p dir="auto">Replace Ln 17 of labeling.yml ("- uses: actions/checkout@v4") with</p>
</li>
</ol>
<ul dir="auto">
<li>uses: actions/checkout@v4<br>
with:<br>
fetch-depth: 0</li>
</ul>
<ol start="3" dir="auto">
<li>Replace Ln 22-24 of labeling.yml with something like this:<br>
TOKEN='generated_token'<br>
export DANGER_GITHUB_API_TOKEN=$TOKEN<br>
export RUNNING_IN_ACTIONS=true<br>
bundle exec danger --verbose</li>
</ol>
<p dir="auto">After these, it should start working with PRs from forked repos also (it already works fine with auto-generated PRs) if bots don't mess up things (haven't tested).</p>
<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/issues/5267#issuecomment-2420057317">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOYBUCE6OVPIQTNVSDZ37UQXAVCNFSM6AAAAABQCDMJ42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRQGA2TOMZRG4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJX655QOQMU7UAFDA3Z37UQXA5CNFSM6AAAAABQCDMJ42WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUQH4SOK.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/issues/5267/2420057317</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/issues/5267#issuecomment-2420057317",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5267#issuecomment-2420057317",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>