Files
WMS/Modules/Helpdesk/Documentation/Helpdesk_GitHub_Gitea_Integration_Guide.md
2026-09-21 10:14:57 +01:00

3.0 KiB
Executable File

Helpdesk Git Integration Guide

Gitea & GitHub Integration, Ticket Linking, Development Workflow, and Deployment Standards

Version: 1.0 Module: Helpdesk Platform: WMS Core Last Updated: June 2026

Overview

The Helpdesk Git Integration allows tickets to be linked directly to commits, branches, pull requests, merges, repository activity, and deployments.

Ticket Reference Format

HD-YYYY-NNNNN

Example:

HD-2026-00012

Automatic Linking Rules

The integration searches for ticket references in:

  • Commit messages
  • Branch names
  • Pull request titles
  • Merge commits

Example Commit

HD-2026-00012 Fix ticket-level Git commit display

Example Branch

bugfix/HD-2026-00012-fix-ticket-display

GitFlow Branch Standards

Feature

feature/HD-2026-00012-add-sla-dashboard

Bugfix

bugfix/HD-2026-00012-fix-ticket-display

Hotfix

hotfix/HD-2026-00012-production-fix

Commit Standards

Always place the ticket reference first.

HD-2026-00012 Fix ticket-level Git commit display

GitHub Setup

Repository

git init
git remote add origin https://github.com/company/repository.git
git remote -v

Webhook

Settings → Webhooks → Add Webhook

Webhook URL:

https://your-domain/helpdesk/git/github/webhook

Events:

  • Push
  • Pull Request
  • Pull Request Review
  • Release

Gitea Setup

Repository

git init
git remote add origin http://git.vm:3000/Admin/WMS-Core.git
git remote -v

Webhook

Settings → Webhooks → Add Webhook

Webhook URL:

https://your-domain/helpdesk/git/gitea/webhook

Events:

  • Push
  • Pull Request
  • Merge
  • Tags

Standard Workflow

Create Ticket

HD-2026-00012

Create Branch

git checkout develop
git checkout -b bugfix/HD-2026-00012-fix-ticket-display

Test

composer test

Commit

git add .
git commit -m "HD-2026-00012 Fix ticket-level Git commit display"

Push

git push origin bugfix/HD-2026-00012-fix-ticket-display

Pull Request

HD-2026-00012 Fix ticket-level Git commit display

Manual Linking

Modules\Helpdesk\Models\GitCommit::find(7)->update([
    'ticket_id' => 18,
]);

Troubleshooting

Verify Commits

php artisan tinker
Modules\Helpdesk\Models\GitCommit::count();

Ticket Shows No Commits

Modules\Helpdesk\Models\GitCommit
    ::where('ticket_id', 18)
    ->get();

or

Modules\Helpdesk\Models\GitCommit
    ::where('message', 'like', '%HD-2026-00012%')
    ->get();

Every code change should contain:

  • Ticket reference in branch name
  • Ticket reference in commit message
  • Ticket reference in PR title

Example:

Branch:
bugfix/HD-2026-00012-fix-ticket-display

Commit:
HD-2026-00012 Fix ticket-level Git commit display

PR:
HD-2026-00012 Fix ticket-level Git commit display