Skip to content
Arbinel

Announcements

Announcements are banners below the navigation bar, shown on every page to everyone, including signed-out visitors. Use them for planned maintenance, policy changes or incidents. Forgejo has no equivalent. Only site administrators can manage announcements.

Open Site administration > Announcements (/admin/announcements). The page lists every announcement with its status, and a form to add a new one.

Each announcement has these fields:

Field Meaning
Show announcement Turns the announcement on or off without deleting it.
Message The text, in Markdown, up to 500 characters. Preview shows the result.
Priority Regular, Important or Sticky, described in Priority.
Starts at (UTC, optional) When the banner first appears. A new announcement starts at the current time. Empty means whenever the announcement is enabled.
Ends at (UTC, optional) When the banner stops appearing. Empty means never. Must be after the start.

Select Save announcement to save one announcement, or Delete announcement to remove it. Saving or deleting one announcement does not change the others.

Several announcements can be active at once. They appear in the order of the list. When more than three banners are visible, Arbinel shows the first two and groups the rest behind a bar such as 3 more announcements. The bar has Show all to expand the group and Dismiss all to dismiss every banner that can be dismissed. For signed-in users it also links to their announcement settings.

There is no app.ini setting. The announcements are stored in the database, so every node of a high availability cluster shows the same ones.

Priority Who sees it Can be dismissed
Regular Everyone, except users who hide regular announcements. Yes
Important Everyone. Yes
Sticky Everyone. No

Users hide regular announcements in Settings → Appearance by ticking Hide regular site announcements under Announcements. The setting belongs to the account, so it applies in every browser. Visitors who are not signed in cannot hide announcements, but they can dismiss them one at a time.

Sticky banners stay visible when Arbinel groups several banners.

Status Meaning
Active Shown now.
Scheduled Enabled, and the start time is in the future.
Expired Enabled, and the end time has passed.
Disabled Show announcement is off.

An announcement becomes active or expires automatically at the scheduled time. Visitors see the change on their next page load.

All times are in UTC, regardless of the time zone of your browser.

The message supports the same Markdown as issues and comments, including formatting, links, lists and tables. Relative links resolve against the instance’s root URL, so [status](/explore/repos) works on every page. The rendered HTML is sanitised like any other Markdown in Forgejo.

Each regular and important banner has a close button. A dismissed banner stays hidden in that browser, because the dismissal is stored in the browser’s local storage. It shows again in another browser, in a private window, or after the user clears site data.

When you edit an announcement, whether dismissed banners stay hidden depends on the change:

Change Dismissed banners
Start or end time Stay hidden.
Message Show again.
Priority Show again.
Turn Show announcement off and on again Show again.

Without JavaScript, banners are shown and cannot be dismissed.

Scripts manage announcements under /api/v1/admin/announcements with an access token of a site administrator. Reading needs the read:admin scope, and changing needs write:admin.

curl -X POST -H "Authorization: token $TOKEN" -H "Content-Type: application/json" \
  https://forge.example.com/api/v1/admin/announcements \
  -d '{"message": "Maintenance tonight from 22:00 UTC.", "priority": "sticky", "ends_at": "2026-12-01T23:00:00Z"}'

Arbinel answers with the new announcement, including its id, which never changes. Use it to change the announcement with PUT /api/v1/admin/announcements/{id} or to remove it with DELETE.

Field Meaning
message Required. The text, in Markdown, up to 500 characters.
priority regular, important or sticky. Defaults to regular.
enabled Defaults to true.
starts_at An RFC 3339 time. Absent means whenever the announcement is enabled.
ends_at An RFC 3339 time after starts_at. Absent means never.

PUT replaces every field, so leaving out starts_at or ends_at clears it. The same rules as on the admin page decide whether dismissed banners show again.

GET /api/v1/admin/announcements lists every announcement with its status, and its ETag header is the version of the list. Send that value as If-Match with a change, and Arbinel refuses the change with 412 if anyone changed the announcements since. Without If-Match, Arbinel applies the change to the current list.

If another administrator has saved a change since you opened the page, Arbinel refuses your change and shows the current values. Review them and save again.