refactor(ci): replace mobile-specific terms with generic product terminology
🔄 Updated workflows and scripts to use product-agnostic naming: Workflow Changes: - 📱 Mobile Release → 📦 Product Release - 🚨 Mobile Hotfix → 🚨 Product Hotfix - Mobile App → Product (in descriptions) - "mobile app" → "product" (in messages and tags) - "pubspec.yaml" → "version file" (in user-facing text) Display Names: - Worker Mobile → Worker Product - Client Mobile → Client Product - Staff Mobile App → Staff Product (Worker) - Client Mobile App → Client Product Benefits: ✅ Makes workflows extensible for other product types ✅ Consistent terminology across all automation ✅ Easier to add web, backend, or other products later ✅ Keeps implementation details (paths, scripts) unchanged ✅ Maintains backward compatibility with existing tags Note: File paths remain unchanged (apps/mobile/...) as they are implementation-specific
This commit is contained in:
20
.github/workflows/mobile-hotfix.yml
vendored
20
.github/workflows/mobile-hotfix.yml
vendored
@@ -1,21 +1,21 @@
|
||||
name: Mobile Hotfix
|
||||
name: 🚨 Product Hotfix
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
app:
|
||||
description: 'Mobile App'
|
||||
description: '📦 Product'
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- worker
|
||||
- client
|
||||
production_tag:
|
||||
description: 'Current Production Tag (e.g., krow-withus-worker-mobile/prod-v0.1.0)'
|
||||
description: '🏷️ Current Production Tag (e.g., krow-withus-worker-mobile/prod-v0.1.0)'
|
||||
required: true
|
||||
type: string
|
||||
issue_description:
|
||||
description: 'Brief issue description'
|
||||
description: '📝 Brief issue description'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
@@ -118,11 +118,11 @@ jobs:
|
||||
if [ "$APP" = "worker" ]; then
|
||||
PUBSPEC_PATH="apps/mobile/apps/staff/pubspec.yaml"
|
||||
CHANGELOG_PATH="apps/mobile/apps/staff/CHANGELOG.md"
|
||||
APP_NAME="Staff Mobile App"
|
||||
APP_NAME="Staff Product"
|
||||
else
|
||||
PUBSPEC_PATH="apps/mobile/apps/client/pubspec.yaml"
|
||||
CHANGELOG_PATH="apps/mobile/apps/client/CHANGELOG.md"
|
||||
APP_NAME="Client Mobile App"
|
||||
APP_NAME="Client Product"
|
||||
fi
|
||||
|
||||
# Update pubspec.yaml version
|
||||
@@ -150,10 +150,10 @@ jobs:
|
||||
|
||||
if [ "$APP" = "worker" ]; then
|
||||
CHANGELOG_PATH="apps/mobile/apps/staff/CHANGELOG.md"
|
||||
APP_NAME="Staff Mobile App"
|
||||
APP_NAME="Staff Product"
|
||||
else
|
||||
CHANGELOG_PATH="apps/mobile/apps/client/CHANGELOG.md"
|
||||
APP_NAME="Client Mobile App"
|
||||
APP_NAME="Client Product"
|
||||
fi
|
||||
|
||||
if [ -f "$CHANGELOG_PATH" ]; then
|
||||
@@ -216,9 +216,9 @@ From production tag: ${{ github.event.inputs.production_tag }}"
|
||||
APP="${{ github.event.inputs.app }}"
|
||||
|
||||
if [ "$APP" = "worker" ]; then
|
||||
APP_DISPLAY="Worker Mobile"
|
||||
APP_DISPLAY="Worker Product"
|
||||
else
|
||||
APP_DISPLAY="Client Mobile"
|
||||
APP_DISPLAY="Client Product"
|
||||
fi
|
||||
|
||||
PR_TITLE="🚨 HOTFIX: ${APP_DISPLAY} v${HOTFIX_VERSION} - ${ISSUE}"
|
||||
|
||||
Reference in New Issue
Block a user