creating-pull-requests

作者: streamlit

在 GitHub 上建立一個草稿拉取請求,包含適當的標籤、分支命名與描述格式。當變更準備好提交為 PR 時使用。

npx skills add https://github.com/streamlit/streamlit --skill creating-pull-requests

Create pull request

Read wiki/pull-requests.md first. It defines branch names, commit messages, PR titles, descriptions, labels, and the testing plan. Write the title and description following the /reviewing-pr-description skill.

Be fully autonomous. Don't ask for confirmation. Leave any open questions as a PR comment.

1. Prepare the branch

  • If on develop, create a branch named {type}/{brief-description}.
  • Commit any remaining changes that belong to this PR (skip unrelated or scratch files) with a <imperative verb> <what> <where> message, using uv run git commit so the pre-commit hooks run.
  • Push: uv run git push -u origin HEAD.

2. Compose the PR

  • Title: [type] Description of change, ≤63 chars.
  • Body: Fill in the sections of .github/pull_request_template.md. Add - Closes #12345 for issues this PR resolves. In the Testing Plan, keep the bullets for the test types the changed test files cover (or explain why no tests are needed), and leave "Any manual testing needed?" for the user.
  • Labels: Set one change:* label and one impact:* label (impact:users or impact:internal). change:spec PRs skip impact:*. Don't set feature:* or area:* labels; those belong on issues.

3. Create the PR

Check first whether a PR already exists with gh pr view. If one does, don't create a new PR. Update its title, description, or labels only where they no longer match the changes. Otherwise, run gh pr create --base develop with the title, body, and labels. Only add --draft if the user asks for a draft PR.

來自 streamlit 的更多技能

building-streamlit-custom-components-v2
streamlit
Builds bidirectional Streamlit Custom Components v2 (CCv2) using `st.components.v2.component`. Use when authoring inline HTML/CSS/JS components or packaged…
creating-streamlit-themes
streamlit
建立並自訂 Streamlit 主題。適用於變更應用程式的顏色、字型或外觀,或使應用程式符合品牌規範。涵蓋 config.toml…
developing-with-streamlit
streamlit
**[必要]** 適用於所有 Streamlit 任務:建立、編輯、除錯、美化、樣式設定、主題設計或最佳化 Streamlit 應用程式。亦為必要…
building-streamlit-custom-components-v2
streamlit
Builds bidirectional Streamlit Custom Components v2 (CCv2) using `st.components.v2.component`. Use when authoring inline HTML/CSS/JS components or packaged…
connecting-streamlit-to-snowflake
streamlit
將 Streamlit 應用程式連接到 Snowflake。適用於設定資料庫連線、管理機密資訊,或從 Streamlit 應用程式查詢 Snowflake 時使用。
creating-streamlit-themes
streamlit
建立與自訂Streamlit主題。用於變更應用程式顏色、字型或外觀,或使應用程式符合品牌規範。涵蓋config.toml…
optimizing-streamlit-performance
streamlit
優化 Streamlit 應用程式效能。適用於應用程式執行緩慢、過於頻繁重新執行或載入大量內容時。涵蓋快取、片段以及靜態與動態…
organizing-streamlit-code
streamlit
為了可維護性而組織 Streamlit 程式碼。在將應用程式結構化為獨立模組和工具時使用。涵蓋關注點分離、保持 UI 程式碼…