Streamlined workflow for logging PMS bugs AND features to GitHub and Google Sheets.
User message contains:
Based on trigger phrase:
| Trigger | Type | GitHub Label | Sheet Task Type |
|---------|------|--------------|-----------------|
| "PMS Bug addition" | Bug | bug | Issue |
| "PMS Feature addition" | Feature | enhancement | Feature |
Ask the user for (if not provided):
gh issue create --repo roshanasingh4/apni-pathshala-pms \
--title "<title>" \
--body "$(cat <<EOF
## Description
<description>
## Steps to Reproduce
1. <step 1>
2. <step 2>
3. <step 3>
## Expected Outcome
<expected outcome>
## Actual Outcome
<what actually happened>
EOF
)" \
--label "bug,<priority>" \
--assignee roshanasingh4
gh issue create --repo roshanasingh4/apni-pathshala-pms \
--title "<title>" \
--body "$(cat <<EOF
## Feature Request
<description>
## Expected Behavior
<expected outcome>
## Use Case
Why is this feature needed?
EOF
)" \
--label "enhancement,<priority>" \
--assignee roshanasingh4
Capture the issue URL from output for the sheet.
Sheet ID: 1O07SzGzQa2FwpkBE7h2SUDWZlxsUpz8DxCpyxKjRi8U
Tab: Production
| Col | Name | Value |
|-----|------|-------|
| A | Task ID | PMS-TSKXXX (increment from last entry) |
| B | Description | Issue title |
| C | Reporter | Tara Singh Kharwad |
| D | Date Submitted | DD/MM/YYYY (issue creation date) |
| E | Status | New |
| F | Task type | Issue (bug) / Feature (enhancement) / Testing |
| G | Priority | Critical (P0) / High (P1) / Medium (P2) / Low (P3) |
| H | Assigned To | tarasinghrajput7261@gmail.com |
| I | Resolution Notes | GitHub issue URL |
| J | Resolution Date | (empty until closed) |
| K | Took Help from Roshan | (leave empty - Tara fills manually) |
| GitHub Label | Task Type | Priority |
|--------------|-----------|----------|
| bug | Issue | - |
| enhancement | Feature | - |
| P0 | - | Critical |
| P1 | - | High |
| P2 | - | Medium |
| P3 | - | Low |
gog sheets get 1O07SzGzQa2FwpkBE7h2SUDWZlxsUpz8DxCpyxKjRi8U "Production!A:A" --json | jq '.values | .[-1][0]'
Then increment the number.
gog sheets append 1O07SzGzQa2FwpkBE7h2SUDWZlxsUpz8DxCpyxKjRi8U "Production!A:K" \
--values-json '[["PMS-TSK-XXX","<title>","Tara Singh Kharwad","DD/MM/YYYY","New","Issue","Low","tarasinghrajput7261@gmail.com","<github_url>","",""]]' \
--insert INSERT_ROWS
gog sheets append 1O07SzGzQa2FwpkBE7h2SUDWZlxsUpz8DxCpyxKjRi8U "Production!A:K" \
--values-json '[["PMS-TSK-XXX","<title>","Tara Singh Kharwad","DD/MM/YYYY","New","Feature","Low","tarasinghrajput7261@gmail.com","<github_url>","",""]]' \
--insert INSERT_ROWS
Sheet ID: 1GgRgfVBrF-ReGPRmntT6Cm2BjiLzJ3JiBaC4lMfrMQs
Find row with today's date, append to Column B with format:
- PMS - <title> - <github_url>
Each day's tasks are in a single cell with headings and bullet points:
- PMS - Fixed login button issue - https://github.com/...
- PMS - Added export feature - https://github.com/...
# Find row with today's date
gog sheets get 1GgRgfVBrF-ReGPRmntT6Cm2BjiLzJ3JiBaC4lMfrMQs "Sheet1!A:B" --json
# Look for today's date (DD/MM/YYYY) in Column A
# Append to existing content in Column B
gog sheets update 1GgRgfVBrF-ReGPRmntT6Cm2BjiLzJ3JiBaC4lMfrMQs "Sheet1!B<row>" \
--values-json '[["<existing_content>\n- PMS - <title> - <github_url>"]]'
| Priority | Label | When to Use |
|----------|-------|-------------|
| P0 | Critical | System down, data loss, security issue |
| P1 | High | Major feature broken/needed, many users affected |
| P2 | Medium | Feature partially working/needed, workaround exists |
| P3 | Low | Minor issue, cosmetic, low impact |
User: "PMS Bug addition - Login page crashes on mobile"
Response:
bug, Sheet type: Issue
User: "PMS Feature addition - Add dark mode support"
Response:
enhancement, Sheet type: Feature
| Trigger | GitHub Label | Sheet Task Type | Issue Template |
|---------|--------------|-----------------|----------------|
| PMS Bug addition | bug | Issue | Bug report with reproduction steps |
| PMS Feature addition | enhancement | Feature | Feature request with use case |
共 1 个版本