Skill站外收录 @skilllib/skill-2117939930272416308
positron-pr-helper
自动生成符合规范的 PR 内容,动态提取最新的 e2e 测试标签并整合到 QA 说明中,支持根据问题编号、变更类型和上下文生成结构化描述,适用于需要标准化提交流程的开发协作场景。
测试与安全 AI 技能
Skills.MD
# Positron PR Helper
This skill helps you create comprehensive PR bodies for the posit-dev/positron repository with up-to-date e2e test tags fetched directly from the source of truth.
## When to Use This Skill
Use this skill when:
- Creating a new PR and need a well-structured body
- Updating an existing PR body with the correct format
- You need the current list of e2e test tags for QA notes
- You want to ensure your PR body follows Positron conventions
## Prerequisites
- GitHub CLI (`gh`) installed and authenticated
- Working in the Positron repository
- Access to the repository's test-tags.ts file
## Workflow
I'll guide you through creating a comprehensive PR body:
### Step 1: Gather Context
First, I'll ask you:
1. **Issue number** (if this PR addresses a specific issue)
2. **PR type** (bug fix, feature, UI change, maintenance, etc.)
3. **Summary** of what the PR does
4. **Screenshots needed?** (for UI changes)
5. **Related PRs** (e.g., in ark repository)
If you provide an issue number, I'll use `gh issue view` to fetch details and understand the context better.
### Step 2: Fetch Current Test Tags
I'll dynamically fetch the current e2e test tags from `test/e2e/infra/test-runner/test-tags.ts` using our extraction script. This ensures we always have the complete, up-to-date list of tags including:
- Feature tags (functionality-specific)
- Platform tags (OS/environment control)
- Performance tags
- Special tags (critical, soft-fail)
### Step 3: Generate PR Body
Based on the PR type and context, I'll create a structured PR body with:
1. **Opening Line**
- "Addresses #[issue]." if applicable
- Brief statement of what the PR does otherwise
2. **Description/Summary**
- Concise explanation of changes
- Technical context if needed
- Related PRs referenced
3. **Screenshots** (for UI changes only)
- Placeholder text or actual URLs if provided
4. **Release Notes**
- New Features (if applicable)
- Bug Fixes (if applicable)
- User-facing descriptions
5. **QA Notes**
- Relevant e2e test tags based on affected areas
- Testing instructions
- Code examples if helpful
### Step 4: Output Options
Once the PR body is ready, you can choose:
1. **Copy to clipboard** (Mac only) - I'll use `pbcopy`
2. **Update existing PR** - I'll use `gh pr edit`
3. **Save to file** - I'll write to a file of your choice
4. **Display only** - I'll show it for manual copying
## Helper Scripts
### fetch-test-tags.sh
This script extracts and categorizes all test tags from the TypeScript enum:
```bash
# Usage:
./scripts/fetch-test-tags.sh [format]
# format: markdown (default), json, or list
```
The script:
- Parses `test-tags.ts` without needing TypeScript compilation
- Categorizes tags automatically (feature, platform, performance, special)
- Outputs in multiple formats for different use cases
- Runs quickly (<1 second)
## PR Body Templates
I use different templates based on PR type:
### Bug Fix Template
```markdown
Addresses #[issue].
[2-3 sentences explaining the fix]
### Release Notes
#### New Features
- N/A
#### Bug Fixes
- [User-facing description] (#[issue])
### QA Notes
[relevant tags]
[Simple test instructions]
```
### New Feature Template
```markdown
Addresses #[issue].
### Summary
[1-2 paragraphs explaining the feature]
[Technical implementation notes if relevant]
[Related PRs if applicable]
### Release Notes
#### New Features
- [User-facing description] (#[issue])
#### Bug Fixes
- N/A
### QA Notes
[relevant tags]
[Detailed test steps with code examples]
```
## Examples
### Example 1: Bug Fix PR
```markdown
Addresses #8930.
This PR fixes the Data Explorer scrollbars snapping back to 0 on Safari. The issue was caused by incorrect event handling in the virtual scrolling implementation.
### Release Notes
#### New Features
- N/A
#### Bug Fixes
- Fix Data Explorer scrollbars snapping back to 0 on Safari (#8930)
### QA Notes
@:data-explorer
Open a large data frame in Data Explorer on Safari and verify scrollbars can be dragged without snapping back.
```
### Example 2: New Feature PR
```markdown
Addresses #8484.
### Summary
Adds support for native DuckDB connections in the Connections Pane. Users can now inspect DuckDB databases directly without needing external tools. This implementation uses the native DuckDB Python API for better performance.
Related PR: posit-dev/ark#456 (adds DuckDB kernel support)
### Release Notes
#### New Features
- Added support for inspecting native DuckDB connections in the Connections Pane (#8484)
#### Bug Fixes
- N/A
### QA Notes
@:connections @:duck-db
1. Install DuckDB: `pip install duckdb`
2. Create a new DuckDB connection using the modal
3. Run the following to create test data:
```python
conn.execute("""
CREATE TABLE employees (
id INTEGER,
name VARCHAR,
salary INTEGER
)
""")
conn.execute("INSERT INTO employees VALUES (1, 'Alice', 75000)")
```
4. Verify tables appear in the Connections pane
```
## Tips
- Be concise but complete - no flowery language
- Use present tense ("fixes", "adds", "enables")
- Include issue references in parentheses in release notes
- Always include at least one e2e test tag in QA notes
- For complex changes, numbered test steps are better
- Keep release notes user-facing (avoid implementation details)
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「positron-pr-helper」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次