Jump to content

Gerrit/MOTD

From Wikitech

A Message Of The Day type banner can be enabled in the Gerrit UI in order to make announcements.

  1. git clone https://gerrit.wikimedia.org/r/operations/software/gerrit
    cd gerrit
    
  2. 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).
  3. Edit plugins/wm-motd.js and change WM_MOTD_ENABLED to true or false depending on your goal.
  4. If you're adding a new announcement, change WM_MOTD_STORAGE_KEY to a fresh value and set WM_MOTD_MESSAGE to the HTML code you want to add.
  5. Commit the changes and push to Gerrit for review and merge.
  6. Perform the "Deploy artifacts" step of Gerrit/Upgrade#Deployment and stop there. There's no need to restart Gerrit. It serves JS files directly.