Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notifications-bot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archives
notifications-bot
Merge requests
!18
Batched notification
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Batched notification
batchedNotification
into
release
Overview
1
Commits
8
Pipelines
0
Changes
11
1 open thread
Hide all comments
Merged
Batched notification
Benjamin Wenger
requested to merge
batchedNotification
into
release
Dec 22, 2021
Overview
1
Commits
8
Pipelines
0
Changes
11
1 open thread
Hide all comments
0
0
Merge request reports
Compare
release
version 5
005637e6
Dec 22, 2021
version 4
0b716112
Dec 22, 2021
version 3
9b2b60a0
Dec 22, 2021
version 2
5e874cd9
Dec 22, 2021
version 1
8611ff4f
Dec 22, 2021
release (base)
and
latest version
latest version
ebd2c87c
8 commits,
Dec 22, 2021
version 5
005637e6
7 commits,
Dec 22, 2021
version 4
0b716112
6 commits,
Dec 22, 2021
version 3
9b2b60a0
5 commits,
Dec 22, 2021
version 2
5e874cd9
4 commits,
Dec 22, 2021
version 1
8611ff4f
3 commits,
Dec 22, 2021
11 files
+
208
−
113
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
cmd/root.go
+
8
−
5
View file @ ebd2c87c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -69,13 +69,16 @@ var rootCmd = &cobra.Command{
if
err
!=
nil
{
jww
.
FATAL
.
Panicf
(
"Unable to expand apns key path: %+v"
,
err
)
}
viper
.
SetDefault
(
"notificationRate"
,
30
)
viper
.
SetDefault
(
"notificationsPerBatch"
,
20
)
// Populate params
NotificationParams
=
notifications
.
Params
{
Address
:
localAddress
,
CertPath
:
certPath
,
KeyPath
:
keyPath
,
FBCreds
:
fbCreds
,
Address
:
localAddress
,
CertPath
:
certPath
,
KeyPath
:
keyPath
,
FBCreds
:
fbCreds
,
NotificationRate
:
viper
.
GetInt
(
"notificationRate"
),
NotificationsPerBatch
:
viper
.
GetInt
(
"notificationsPerBatch"
),
APNS
:
notifications
.
APNSParams
{
KeyPath
:
apnsKeyPath
,
KeyID
:
viper
.
GetString
(
"apnsKeyID"
),
Loading