«Add comment» in the Edit menu via GitHub Issues

Last modified: 2026-04-19 18:06av bruker: Erik Hagen ID: c794131f-0639-4f6f-b87e-4031deea5a65 ◍New SAMT-X/solution-samt-bu-docs

A new «Add comment» menu item in the Edit menu lets logged-in users submit feedback on a page without editing the content directly. The comment is created as a GitHub Issue in the correct repo.

User flow

  1. User clicks «Add comment» in the Edit menu
  2. A simple dialog opens with a free-text field
  3. Title is pre-filled with the page title and a link to the page
  4. On submit: POST /repos/SAMT-X/{repo}/issues creates the issue
  5. User sees confirmation with a link to the created issue

Technical

  • Same authentication and permission pattern as other operations
  • Only requires the user to be logged in – not necessarily write access to the repo
  • GitHub Issues are open for all authenticated users to create (if the repo has issues enabled)
  • Pre-filled body: page title + URL + free text from user
  • Can be combined with conflict notifications in the PR flow
  • Foundation for a future «Admin» switcher showing open issues per page