Skip to content

Marketplace build fails on every pull request alert: Cannot read properties of undefined (reading 'login') #163

Open

Description

@austin-rt

Description:

The app on the Marketplace, version 0.0.1 published 2023-01-18, answers 500 to every pull_request webhook event and posts no alert. GitHub's delivery log shows the response Cannot read properties of undefined (reading 'login').

Steps to reproduce:

  1. Install the GitHub app from the Marketplace and log in.
  2. Subscribe a room to a repository's pull request events.
  3. Open a pull request in that repository.

Expected behavior:

A "New Pull Request" alert in the room.

Actual behavior:

No alert. GitHub's webhook delivery shows status 500 with Cannot read properties of undefined (reading 'login').

Rocket.Chat Server Setup Information:

  • Version of Rocket.Chat Server: 8.8
  • Operating System: Linux
  • Deployment Method: docker

Rocket.Chat Client Setup Information

  • Browser Version: Chrome, web client

Additional context

The Marketplace build reads payload.user.login, which a pull_request payload does not have. #121, merged 2023-10-18, changed it to payload.pull_request.user.login, but the Marketplace still serves the 2023-01-18 build. #134 bumps the version to 1.0.0 and is still open. A Marketplace release from main would fix this. Building main and installing it as a private app works in the meantime.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions