Skip to content

search_dotfiles.rb: Don't abort due to 1 unfindable repo

Katrin Leinweber requested to merge search-dotfiles-skip-not-found into main

What does this MR do and why?

While working on katrinleinweber-gitlab/dotfiles#8 I noticed these errors:

Server responded with code 404, message: 404 Not Found. Request URI:
https://gitlab.com:443https://gitlab.com/api/v4/projects/17786540/(-/)/search?scope=blobs&search=grep

Screenshots, recordings or output

Before After
Script aborted Error is reported but script continues

How to set up and validate locally

Checkout this MR and/or add a non-existant namespace/project entry to repos.yaml.

MR acceptance checklist

  • I've tested this change on: macOS/Linux.
  • This change needs no other test and thus no review, because: …justification…. I'll merge it myself.
    • This does need at least 1 additional test on another machine, ideally using a different OS. I've facilitated this via: Slack thread / MR review.
Edited by Katrin Leinweber

Merge request reports