/
TAG
GitHub

如何製作 GitHub issue 和 PR 的 template

公司專案從 GitLab 轉移到 GitHub,為了團隊協作更順利,建立了 PR 和 issue template。PR template 放在 .github 資料夾,檔名為 PULL_REQUEST_TEMPLATE.md。issue template 有 markdown 和 yml 兩種格式,yml 支援表單元件,推薦使用 yml。建立多個 issue template 時,資料夾命名為 ISSUE_TEMPLATE,並建立 config.yml 檔案。所有更改需推到預設 branch 才能自動載入 template。...

如何使用 GitHub 的 Actions 自動產生 Release 文件

公司從 GitLab 遷移到 GitHub,需重新設定自動生成 Release 文件。GitHub Actions 提供便捷性,內建 Release template 省去額外配置。需開啟專案權限,進入 Settings > Actions > General,調整權限並分別儲存。建立 .github 資料夾,放入 yml 檔案,設定 tags 格式為 v*.*.* 後推送,即可自動生成 Release。

發 Pull Request 時需設標籤,Release 文件會根據標籤分類。可自訂 release.yml 與標籤對應,發 PR 並設標籤後,Add Tag 並推送,workflow 自動生成 Release 文件。最後在 Actions 頁籤查看執行狀態,確保流程順利。...

Copyright © since 2008 MUKI space* / omegaSS theme All Rights Reserved.