github-app/advanced_server.rb
def notify_user(repo, payload)
      authenticate_installation(payload)
      accept_header = 'application/vnd.github.symmetra-preview+json'.freeze
      title = 'Master Branch Protection'
      body = payload.inspect
      @bot_client.create_issue(repo, title, body, accept: accept_header)
    end
# Authenticate each installation of the app in order to run API operations
Authenticate each installation of the app in order to run API operations
Authenticate each installation of the app in order to run API operations
def notify_user(repo, payload)
      authenticate_installation(payload)
      accept_header = 'application/vnd.github.symmetra-preview+json'.freeze
      title = 'Master Branch Protection'
      body = payload.inspect
      @bot_client.create_issue(repo, title, body, accept: accept_header)
    end
def notify_user ( repo , payload ) authenticate_installation ( payload ) accept_header = 'application/vnd.github.symmetra-preview+json' . freeze title = 'Master Branch Protection' body = payload . inspect @bot_client . create_issue ( repo , title , body , accept : accept_header ) end
Authenticate each installation of the app in order to run API operations
Authenticate each installation of the app in order to run API operations
repo
payload