> ...
> Run bundle exec danger --verbose
> To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
> To use multipart middleware with Faraday v2.0+, install `faraday-multipart`
> gem; note: this is used by the ManageGHES client for uploading licenses
> fatal: couldn't find remote ref refs/heads/osmf_wiki_links
> ...
>
> I don't know what the problem is here - do you have any ideas @nenad-vujicic ?
On my personal GitHub account, combination of "fetch-depth:0" + "creating new
token" worked fine for supporting PRs from forks (also used in
https://github.com/danger/danger/blob/master/.github/workflows/CI.yml). 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
https://danger.systems/guides/getting_started). Here are my steps:
1) Someone with OSM GitHub administrator privileges should generate token with
very very carefully selected permissions
2) Replace Ln 17 of labeling.yml ("- uses: actions/checkout@v4") with
- uses: actions/checkout@v4
with:
fetch-depth: 0
3) Replace Ln 22-24 of labeling.yml with something like this:
TOKEN='generated_token'
export DANGER_GITHUB_API_TOKEN=$TOKEN
export RUNNING_IN_ACTIONS=true
bundle exec danger --verbose
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).
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5267#issuecomment-2420057317
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/issues/5267/2420057...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev