Skip to content

[Phase 4.1] GitHub integration: create issues from feedback #16

@Andreas-Froyland

Description

@Andreas-Froyland

Goal

Org admins can push feedback items to their linked GitHub repo as issues. One-click, keeps everything in sync.

Depends on: Phase 2 complete (feedback system working), #13 (detail view - where the button lives)

Prerequisites

  • Org has linked a GitHub repo to their Veerify project (owner, repo, personal access token with issues:write)
  • Store token encrypted at rest

Flow

  1. Org admin views a feedback item ([Phase 2.3] Build feedback detail view #13)
  2. Clicks "Push to GitHub" button
  3. Veerify creates a GitHub issue via API:
    • Title: feedback title
    • Body: includes description, upvote count, category, link back to Veerify feedback
    • Labels: maps Veerify category → GitHub label (Bug → bug, Feature → enhancement). Create label if missing.
  4. Stores the link in github_issue_links (feedback_id ↔ issue number)
  5. Feedback detail now shows the linked GitHub issue

Error handling

  • Show error if token is invalid or lacks permissions
  • Show error if GitHub API rate-limited (with retry suggestion)
  • Prevent duplicate push (check if already linked)

UI

  • "Push to GitHub" button on feedback detail ([Phase 2.3] Build feedback detail view #13)
  • After linking: show GitHub issue link (e.g., "GitHub #42") with direct link to issue
  • "Unlink" option (removes the link, doesn't delete the GitHub issue)

Notes

  • This is one of the key differentiators - connect feedback directly to your workflow
  • Keep it simple for MVP - one-way push is enough

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions