How to filter out a repository that is not obtained when using Jekyll Github Metadata to retrieve GitHub repositories

Đang mở
#290 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
github, ruby
Lĩnh vực
api, backend

Hướng nghiên cứu

Start with the handling of site.github.public_repositories and the GitHub API request triggered from _layouts/page.html. Reproduce the 403 for the disabled repository, then determine whether repository exclusion is supported or needs a configuration change; done should prevent the blocked repository from breaking retrieval and include coverage or documentation for the behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

When a repository is disabled, there is a problem using jekyll github metadata to retrieve all public repositories, resulting in the following error:

Liquid Exception: GET  https://api.github.com/repos/longfeizheng/GLaDOS-checkin/releases?per_page=100:  403 - Repository access blocked in /_layouts/page.html

error code

{% if site.github.public_repositories != null %}

repository url:https://github.com/longfeizheng/GLaDOS-checkin/settings

So I need to filter out certain repositories when requesting, is there any configuration or other method? Thank you

Ngôn ngữ chính
Ruby
Star
309
Fork
159
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jekyll/github-metadata

Tất cả issue của jekyll/github-metadata

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.