You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: github.rb
    path of file: ./repos/ubicloud/lib
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "octokit"
require "jwt"
require "yaml"

module Github
  def self.oauth_client
    Octokit::Client.new(client_id:
    
  def self.failed_deliveries(since, max_page = 20)
    client = Github.app_client
    all_deliveries = client.get("/app/hook/deliveries?per_page=100")
    page = 1
    while (next_url = client.last_response.rels[:next]&.href) && (since < all_deliveries.last[:delivered_at])
      if page >= max_page
        Clog.emit("failed deliveries page limit reached") { {deliveries: {max_page: max_page, since: since}} }
        break
      end