|
| 1 | +# GitHub Discussions — setup guide for utPLSQL/utPLSQL |
| 2 | + |
| 3 | +This folder contains the discussion category form templates that power structured |
| 4 | +GitHub Discussions for the utPLSQL project. |
| 5 | + |
| 6 | +--- |
| 7 | + |
| 8 | +## File → category mapping |
| 9 | + |
| 10 | +<aside> |
| 11 | +The filename slug **must exactly match** the slug GitHub generates for your category name. |
| 12 | +GitHub derives the slug by lowercasing the category name and replacing spaces and special |
| 13 | +characters with hyphens. |
| 14 | +</aside> |
| 15 | + |
| 16 | +| File | Category name to create in GitHub | Format | Who can post | |
| 17 | +|------------------------|-----------------------------------|-----------------------|--------------------------------| |
| 18 | +| `announcements.yml` | 📢 Announcements | Announcement | Maintainers only | |
| 19 | +| `rfcs-design.yml` | 💡 RFCs & Design | Open-ended discussion | Everyone | |
| 20 | +| `architecture.yml` | 🏗 Architecture | Open-ended discussion | Everyone | |
| 21 | +| `release-planning.yml` | 🗓 Release Planning | Open-ended discussion | Maintainers only (recommended) | |
| 22 | +| `q-a.yml` | ❓ Q&A | Question / Answer | Everyone | |
| 23 | +| `show-and-tell.yml` | 🔬 Show & Tell | Open-ended discussion | Everyone | |
| 24 | +| `contributors.yml` | 🤝 Contributors | Open-ended discussion | Everyone | |
| 25 | +| `general.yml` | 💬 General | Open-ended discussion | Everyone | |
| 26 | + |
| 27 | +> **Polls** are a built-in GitHub Discussions type and do not support YAML templates. |
| 28 | +> Create a 🗳 Polls category manually (type: Poll) — no template file needed. |
| 29 | +
|
| 30 | +--- |
| 31 | + |
| 32 | +## Step-by-step setup |
| 33 | + |
| 34 | +### 1. Enable Discussions |
| 35 | +Go to **Settings → Features** and check **Discussions**. |
| 36 | + |
| 37 | +### 2. Create the categories |
| 38 | +Go to **Discussions → Categories → ✏️ Edit categories** (gear icon). |
| 39 | + |
| 40 | +Create each category listed in the table above. |
| 41 | +**Order matters** — drag to set the display order shown below: |
| 42 | + |
| 43 | +1. 📢 Announcements |
| 44 | +2. 💡 RFCs & Design |
| 45 | +3. 🏗 Architecture |
| 46 | +4. 🗓 Release Planning |
| 47 | +5. ❓ Q&A |
| 48 | +6. 🔬 Show & Tell |
| 49 | +7. 🤝 Contributors |
| 50 | +8. 🗳 Polls |
| 51 | +9. 💬 General |
| 52 | + |
| 53 | +### 3. Commit the templates |
| 54 | +Copy all `.yml` files from this folder into `.github/DISCUSSION_TEMPLATE/` in |
| 55 | +the **default branch** (usually `develop` for utPLSQL). |
| 56 | + |
| 57 | +``` |
| 58 | +.github/ |
| 59 | +└── DISCUSSION_TEMPLATE/ |
| 60 | + ├── announcements.yml |
| 61 | + ├── rfcs-design.yml |
| 62 | + ├── architecture.yml |
| 63 | + ├── release-planning.yml |
| 64 | + ├── q-a.yml |
| 65 | + ├── show-and-tell.yml |
| 66 | + ├── contributors.yml |
| 67 | + └── general.yml |
| 68 | +``` |
| 69 | + |
| 70 | +### 4. Configure category permissions |
| 71 | + |
| 72 | +| Category | Setting | |
| 73 | +|------------------|--------------------------------------------------| |
| 74 | +| Announcements | Set to **Maintainers only** in category settings | |
| 75 | +| Release Planning | Recommended: **Maintainers only** | |
| 76 | +| All others | Open to all | |
| 77 | + |
| 78 | +### 5. Create the welcome pinned post |
| 79 | + |
| 80 | +Create a first discussion in **Announcements** titled |
| 81 | +**"Welcome to utPLSQL Discussions — how to use this space"** |
| 82 | + |
| 83 | +Suggested body: |
| 84 | + |
| 85 | +```markdown |
| 86 | +## Welcome 👋 |
| 87 | + |
| 88 | +This is the place for design discussions, feature proposals, and community |
| 89 | +conversation around utPLSQL. |
| 90 | + |
| 91 | +### Where to post |
| 92 | + |
| 93 | +| I want to… | Use | |
| 94 | +|---|---| |
| 95 | +| Propose a new feature or behaviour change | 💡 RFCs & Design | |
| 96 | +| Discuss internal architecture | 🏗 Architecture | |
| 97 | +| Ask a usage / how-to question | ❓ Q&A | |
| 98 | +| Share a CI pipeline, integration, or tip | 🔬 Show & Tell | |
| 99 | +| Ask about contributing / development setup | 🤝 Contributors | |
| 100 | +| Vote on priorities | 🗳 Polls | |
| 101 | +| Anything else | 💬 General | |
| 102 | + |
| 103 | +### Discussions vs Issues |
| 104 | + |
| 105 | +**Discussions** are for ideas that are still open, need input, or require consensus. |
| 106 | +**Issues** are for well-scoped work that someone can pick up and implement. |
| 107 | + |
| 108 | +A maintainer will convert a Discussion to an Issue once scope is agreed. |
| 109 | + |
| 110 | +### Real-time chat |
| 111 | + |
| 112 | +For quick questions: [utPLSQL Slack](https://utplsql.slack.com) |
| 113 | +For decisions that need a permanent record: post here. |
| 114 | +``` |
| 115 | + |
| 116 | +Pin this post from the discussion's `…` menu → **Pin discussion**. |
| 117 | + |
| 118 | +### 6. Update the README |
| 119 | + |
| 120 | +Add a Discussions badge to the project README: |
| 121 | + |
| 122 | +```markdown |
| 123 | +[](https://github.com/utPLSQL/utPLSQL/discussions) |
| 124 | +``` |
| 125 | + |
| 126 | +And add a short paragraph in the "Community" or "Contributing" section pointing |
| 127 | +to Discussions as the place for design proposals. |
| 128 | + |
| 129 | +--- |
| 130 | + |
| 131 | +## Operating guidelines |
| 132 | + |
| 133 | +### Discussion → Issue conversion rule |
| 134 | + |
| 135 | +| Category | Convert when… | |
| 136 | +|---------------|----------------------------------------------------------------------| |
| 137 | +| RFCs & Design | Consensus reached, scope is defined | |
| 138 | +| Architecture | Breaking change formally agreed by maintainers | |
| 139 | +| Q&A | A confirmed bug surfaces in the thread | |
| 140 | +| Contributors | A gap in docs or tooling is identified that can be filed as an issue | |
| 141 | + |
| 142 | +Use the **"Create issue from discussion"** button (available in the discussion's sidebar). |
| 143 | + |
| 144 | +### Housekeeping |
| 145 | + |
| 146 | +- Lock **Announcements** threads after 30 days. |
| 147 | +- Close **Polls** after 14 days; post a summary comment with the result before closing. |
| 148 | +- Label cross-references: apply the same labels used on issues |
| 149 | + (`enhancement`, `breaking-change`, `coverage`, `oracle-version`, etc.) |
| 150 | + to discussions for consistent search. |
0 commit comments