Skip to content

Commit 05edea8

Browse files
committed
chore: add missing labels on some activity types
Signed-off-by: Raúl Santos <4837+borfast@users.noreply.github.com>
1 parent 992e05e commit 05edea8

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
UPDATE "activityTypes" SET label = 'Joined a server/guild' WHERE "activityType" = 'joined_guild' AND platform = 'discord';
2+
UPDATE "activityTypes" SET label = 'Message in a thread' WHERE "activityType" = 'thread_message' AND platform = 'discord';
3+
UPDATE "activityTypes" SET label = 'Started a thread' WHERE "activityType" = 'thread_started' AND platform = 'discord';
4+
5+
UPDATE "activityTypes" SET label = 'Liked a post' WHERE "activityType" = 'like' AND platform = 'discourse';
6+
UPDATE "activityTypes" SET label = 'Joined a forum' WHERE "activityType" = 'join' AND platform = 'discourse';
7+
UPDATE "activityTypes" SET label = 'Created a topic' WHERE "activityType" = 'create_topic' AND platform = 'discourse';
8+
UPDATE "activityTypes" SET label = 'Replied to Topic' WHERE "activityType" = 'message_in_topic' AND platform = 'discourse';
9+
10+
UPDATE "activityTypes" SET label = 'Forked a repository' WHERE "activityType" = 'fork' AND platform = 'github';
11+
UPDATE "activityTypes" SET label = 'Assigned to a pull request' WHERE "activityType" = 'pull_request-assigned' AND platform = 'github';
12+
UPDATE "activityTypes" SET label = 'Reviewed a pull request' WHERE "activityType" = 'pull_request-reviewed' AND platform = 'github';
13+
UPDATE "activityTypes" SET label = 'Starred a repository' WHERE "activityType" = 'star' AND platform = 'github';
14+
UPDATE "activityTypes" SET label = 'Unstarred a repository' WHERE "activityType" = 'unstar' AND platform = 'github';
15+
16+
UPDATE "activityTypes" SET label = 'Forked a repository' WHERE "activityType" = 'fork' AND platform = 'gitlab';
17+
UPDATE "activityTypes" SET label = 'Assigned to a merge request Assigned' WHERE "activityType" = 'merge_request-assigned' AND platform = 'gitlab';
18+
UPDATE "activityTypes" SET label = 'Approved a merge request review' WHERE "activityType" = 'merge_request-review-approved' AND platform = 'gitlab';
19+
UPDATE "activityTypes" SET label = 'Requested changes to a merge request' WHERE "activityType" = 'merge_request-review-changes-requested' AND platform = 'gitlab';
20+
UPDATE "activityTypes" SET label = 'Requested a review on a merge request' WHERE "activityType" = 'merge_request-review-requested' AND platform = 'gitlab';
21+
UPDATE "activityTypes" SET label = 'Starred a repository' WHERE "activityType" = 'star' AND platform = 'gitlab';
22+
23+
UPDATE "activityTypes" SET label = 'Joined a mailing list' WHERE "activityType" = 'member_join' AND platform = 'groupsio';
24+
UPDATE "activityTypes" SET label = 'Left a mailing list' WHERE "activityType" = 'member_leave' AND platform = 'groupsio';
25+
26+
UPDATE "activityTypes" SET label = 'Closed an issue' WHERE "activityType" = 'issue-closed' AND platform = 'jira';
27+
28+
UPDATE "activityTypes" SET label = 'Reacted to a post' WHERE "activityType" = 'reaction' AND platform = 'linkedin';
29+
30+
UPDATE "activityTypes" SET label = 'Joined a channel' WHERE "activityType" = 'channel_joined' AND platform = 'slack';
31+
32+
UPDATE "activityTypes" SET label = 'Followed a user' WHERE "activityType" = 'follow' AND platform = 'twitter';
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'joined_guild' AND platform = 'discord';
2+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'thread_message' AND platform = 'discord';
3+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'thread_started' AND platform = 'discord';
4+
5+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'like' AND platform = 'discourse';
6+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'join' AND platform = 'discourse';
7+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'create_topic' AND platform = 'discourse';
8+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'message_in_topic' AND platform = 'discourse';
9+
10+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'fork' AND platform = 'github';
11+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'pull_request-assigned' AND platform = 'github';
12+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'pull_request-reviewed' AND platform = 'github';
13+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'star' AND platform = 'github';
14+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'unstar' AND platform = 'github';
15+
16+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'fork' AND platform = 'gitlab';
17+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'merge_request-assigned' AND platform = 'gitlab';
18+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'merge_request-review-approved' AND platform = 'gitlab';
19+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'merge_request-review-changes-requested' AND platform = 'gitlab';
20+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'merge_request-review-requested' AND platform = 'gitlab';
21+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'star' AND platform = 'gitlab';
22+
23+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'member_join' AND platform = 'groupsio';
24+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'member_leave' AND platform = 'groupsio';
25+
26+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'issue-closed' AND platform = 'jira';
27+
28+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'reaction' AND platform = 'linkedin';
29+
30+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'channel_joined' AND platform = 'slack';
31+
32+
UPDATE "activityTypes" SET label = NULL WHERE "activityType" = 'follow' AND platform = 'twitter';

0 commit comments

Comments
 (0)