GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-gitlab/docs/gl_objects/messages.rst at master · SVLay/python-gitlab

Expand file tree

/

messages.rst

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
48 lines (31 loc) · 988 Bytes
/

messages.rst

Copy path

File metadata and controls

48 lines (31 loc) · 988 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Broadcast messages

You can use broadcast messages to display information on all pages of the gitlab web UI. You must have administration permissions to manipulate broadcast messages.

References

  • v4 API:
    • :class:`gitlab.v4.objects.BroadcastMessage`
    • :class:`gitlab.v4.objects.BroadcastMessageManager`
    • :attr:`gitlab.Gitlab.broadcastmessages`
  • GitLab API: https://docs.gitlab.com/ce/api/broadcast_messages.html

Examples

List the messages:

msgs = gl.broadcastmessages.list()

Get a single message:

msg = gl.broadcastmessages.get(msg_id)

Create a message:

msg = gl.broadcastmessages.create({'message': 'Important information'})

The date format for the starts_at and ends_at parameters is YYYY-MM-ddThh:mm:ssZ.

Update a message:

msg.font = '#444444'
msg.color = '#999999'
msg.save()

Delete a message:

gl.broadcastmessages.delete(msg_id)
# or
msg.delete()
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.