Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: less Mattermost events #27

Merged
merged 3 commits into from
Sep 28, 2023
Merged

feat: less Mattermost events #27

merged 3 commits into from
Sep 28, 2023

Conversation

CHHC-L
Copy link
Contributor

@CHHC-L CHHC-L commented Sep 26, 2023

  • In .env.example, added Mattermost team and token setting to run create-channels-on-mm more easily.
  • In ./joint_teapot/workers/mattermost.py, trigger messages on less events.
  • Updated related part of README.

README.md Outdated
@@ -60,7 +60,7 @@ close all issues and pull requests in gitea organization

create channels for student groups according to group information on gitea. Optionally specify a prefix to ignore all repos whose names do not start with it. Optionally specify a suffix to add to all channels created.

Example: `python3 -m joint_teapot create_channels_for_groups --prefix p1 -suffix -private` will fetch all repos whose names start with `"p1"` and create channels on mm for these repos like "p1team1-private". Members of a repo will be added to the corresponding channel.
Example: `python3 -m joint_teapot create-channels-on-mm --prefix p1 --suffix -private --invite-teaching-team` will fetch all repos whose names start with `"p1"` and create channels on mm for these repos like "p1team1-private". Members of a repo will be added to the corresponding channel. And teaching team (maybe adjust `mattermost_teaching_team` list in `./joint_teapot/config.py`) will be invited to the channels.
Copy link
Owner

Choose a reason for hiding this comment

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

The value in the list can be set with .env file.

MATTERMOST_TEACHING_TEAM=["A", "B", "C"]

@wznmickey
Copy link
Contributor

Where can we get the mattermost token?

@CHHC-L
Copy link
Contributor Author

CHHC-L commented Sep 27, 2023

Changed .env.example in latest commit.

@CHHC-L
Copy link
Contributor Author

CHHC-L commented Sep 27, 2023

Where can we get the mattermost token?

Channel admin should allows a user generate token in System Console -> User Management , then the user can get token from his Profire -> Security -> Personal Access Tokens. Refer to this page .

@BoYanZh BoYanZh changed the title provide Mattermost settings & less events feat: less Mattermost events Sep 28, 2023
@BoYanZh BoYanZh merged commit a169a8b into BoYanZh:master Sep 28, 2023
3 checks 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.

4 participants