Gerrit/MOTD
Phabricator project: #Gerrit
Appearance
< Gerrit
A Message Of The Day type banner can be enabled in the Gerrit UI in order to make announcements.
git clone https://gerrit.wikimedia.org/r/operations/software/gerrit cd gerrit
- If you performed a fresh clone, then you're already on the right branch. Otherwise, ensure that you're on the proper deploy/wmf/stable-* branch (deploy/wmf/stable-3.10 at the time of writing).
- Edit
plugins/wm-motd.jsand changeWM_MOTD_ENABLEDto true or false depending on your goal. - If you're adding a new announcement, change
WM_MOTD_STORAGE_KEYto a fresh value and setWM_MOTD_MESSAGEto the HTML code you want to add. - Commit the changes and push to Gerrit for review and merge.
- Perform the "Deploy artifacts" step of Gerrit/Upgrade#Deployment and stop there. There's no need to restart Gerrit. It serves JS files directly.