api/ruby/building-your-first-github-app/advanced_server.rb
# When an issue is opened, add a label
When an issue is opened, add a label
When an issue is opened add a label
def handle_issue_opened_event(payload)
      repo = payload['repository']['full_name']
      issue_number = payload['issue']['number']
      @bot_client.add_labels_to_an_issue(repo, issue_number, ['needs-response'])
    end
def handle_issue_opened_event ( payload ) repo = payload [ 'repository' ] [ 'full_name' ] issue_number = payload [ 'issue' ] [ 'number' ] @bot_client . add_labels_to_an_issue ( repo , issue_number , [ 'needs-response' ] ) end
When an issue is opened, add a label
When an issue is opened add a label
payload