Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cat-disruptor-6500
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephen D
cat-disruptor-6500
Merge requests
!12
Starboard counts
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Starboard counts
starboard_counts
into
master
Overview
0
Commits
6
Pipelines
3
Changes
6
Merged
Stephen D
requested to merge
starboard_counts
into
master
2 years ago
Overview
0
Commits
6
Pipelines
3
Changes
6
Expand
Adds reaction counts to starboard messages
0
0
Merge request reports
Compare
master
version 2
da005e5c
2 years ago
version 1
cb7b086c
2 years ago
master (base)
and
latest version
latest version
f5dfb9f2
6 commits,
2 years ago
version 2
da005e5c
4 commits,
2 years ago
version 1
cb7b086c
3 commits,
2 years ago
6 files
+
209
−
96
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/handlers/mod.rs
+
9
−
2
Options
@@ -35,7 +35,8 @@ pub(crate) trait LineHandler: Send + Sync {
#[async_trait]
pub
(
crate
)
trait
ReactionHandler
:
Send
+
Sync
{
async
fn
reaction
(
&
self
,
_ctx
:
&
Context
,
reaction
:
&
Reaction
);
async
fn
reaction_add
(
&
self
,
ctx
:
&
Context
,
reaction
:
&
Reaction
);
async
fn
reaction_del
(
&
self
,
ctx
:
&
Context
,
reaction
:
&
Reaction
);
}
pub
(
crate
)
struct
Dispatcher
{
@@ -53,7 +54,13 @@ impl EventHandler for Dispatcher {
async
fn
reaction_add
(
&
self
,
ctx
:
Context
,
reaction
:
Reaction
)
{
for
r
in
&
self
.reacts
{
r
.reaction
(
&
ctx
,
&
reaction
)
.await
;
r
.reaction_add
(
&
ctx
,
&
reaction
)
.await
;
}
}
async
fn
reaction_remove
(
&
self
,
ctx
:
Context
,
reaction
:
Reaction
)
{
for
r
in
&
self
.reacts
{
r
.reaction_del
(
&
ctx
,
&
reaction
)
.await
;
}
}
Loading