•  
      request #28244 Cannot send a Mattermost notification when creating a PR
    Infos
    #28244
    Thomas Gerbet (tgerbet)
    2022-08-17 15:22
    2022-08-16 15:57
    29666
    Details
    Cannot send a Mattermost notification when creating a PR

    We get a crash instead.

    Trace:

    PHP Fatal error:  Uncaught Error: Class "Tuleap\BotMattermostGit\SenderServices\AttachmentPreTextPresenter" not found in /usr/share/tuleap/plugins/botmattermost_git/include/BotMattermostGit/SenderServices/PullRequestNotificationBuilder.php:68
    Stack trace:
    #0 /usr/share/tuleap/plugins/botmattermost_git/include/BotMattermostGit/SenderServices/PullRequestNotificationBuilder.php(49): Tuleap\BotMattermostGit\SenderServices\PullRequestNotificationBuilder->makePreText()
    #1 /usr/share/tuleap/plugins/botmattermost_git/include/BotMattermostGit/SenderServices/PullRequestNotificationSender.php(65): Tuleap\BotMattermostGit\SenderServices\PullRequestNotificationBuilder->buildNotificationAttachment()
    #2 /usr/share/tuleap/plugins/botmattermost_git/include/botmattermost_gitPlugin.php(145): Tuleap\BotMattermostGit\SenderServices\PullRequestNotificationSender->send()
    #3 /usr/share/tuleap/src/common/Event/EventManager.class.php(127): botmattermost_gitPlugin->pullrequest_hook_create_pull_request()
    
    Bot Mattermost
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2022-08-17
    Attachments
    Empty
    References
    Referenced by request #28244

    Artifact Tracker v5

    rel #26815 14.0

    Follow-ups