Skip to content

Mattermost integration update#30

Merged
VladimirShitov merged 18 commits intotheislab:mainfrom
punithsaireddy:mattermost-integration-update
Aug 6, 2025
Merged

Mattermost integration update#30
VladimirShitov merged 18 commits intotheislab:mainfrom
punithsaireddy:mattermost-integration-update

Conversation

@punithsaireddy
Copy link
Contributor

No description provided.

Copy link
Collaborator

@VladimirShitov VladimirShitov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks much better! Please address the comments

docs/index.md Outdated
@@ -1,3 +1,40 @@
# paperbee
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not needed, please delete it. README.md in the root should be updated according to the other messengers' description

@@ -0,0 +1,57 @@
import os
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not needed in the main repo, please delete it

def test_build_message(papers):
publisher = MattermostPaperPublisher(
logger=logging.getLogger(__name__),
url="dummy", token="dummy", team="dummy", channel="dummy", driver=MagicMock()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use mocks and dummy IDs, we need a real test. If you don't have mattermost, read these variables from config, we will run it

CHANGELOG.md Outdated

## 1.1.0

- Added Mattermost integration: format and send daily paper digests to Mattermost channels.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make subtitles "Added", "Changed" and put bullet points in the corresponding lists

@punithsaireddy punithsaireddy force-pushed the mattermost-integration-update branch from e0da879 to f3528cc Compare July 29, 2025 22:50
@punithsaireddy punithsaireddy force-pushed the mattermost-integration-update branch from f3528cc to 9bc405d Compare July 29, 2025 23:07
@pytest.mark.integration
def test_slack_integration():
with open("files/config.yml") as f:
with open("files/config_template.yml") as f:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this back in all files. The idea is that the config template stays untouched (as a template), but a user or a tester has to create config.yml with the real variables

@VladimirShitov
Copy link
Collaborator

Thank you! This looks great to me. Please address the comment above on the config.yml. We will then test this functionality and if it works, merge it to the main

Copy link
Collaborator

@VladimirShitov VladimirShitov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is now working. Thanks, @punithsaireddy for your contribution!

@VladimirShitov VladimirShitov merged commit 1ad2327 into theislab:main Aug 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants