You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Marketplace build fails on every pull request alert: Cannot read properties of undefined (reading 'login') #163
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:
Install the GitHub app from the Marketplace and log in.
Subscribe a room to a repository's pull request events.
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