azure-repos-helper
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAzure Repos Helper Skill
Azure Repos Helper Skill
Azure Reposでのリポジトリ管理を支援するスキルです。
这是一款支援Azure Repos仓库管理的Skill。
主な機能
主要功能
- リポジトリ操作: クローン、プッシュ、プル
- ブランチポリシー: PR必須、レビュー必須
- コードレビュー: PR作成、レビュー
- ブランチ管理: ブランチ戦略
- Git操作: Azure DevOps特有の操作
- 仓库操作: 克隆、推送、拉取
- 分支策略: 必须创建PR、必须进行评审
- 代码评审: 创建PR、评审
- 分支管理: 分支策略
- Git操作: Azure DevOps专属操作
ブランチポリシー設定
分支策略设置
main ブランチ保護
main 分支保护
json
{
"isEnabled": true,
"isBlocking": true,
"type": {
"id": "fa4e907d-c16b-4a4c-9dfa-4906e5d171dd"
},
"settings": {
"minimumApproverCount": 2,
"creatorVoteCounts": false,
"allowDownvotes": false,
"resetOnSourcePush": true,
"requireVoteOnLastIteration": true,
"blockLastPusherVote": true
}
}json
{
"isEnabled": true,
"isBlocking": true,
"type": {
"id": "fa4e907d-c16b-4a4c-9dfa-4906e5d171dd"
},
"settings": {
"minimumApproverCount": 2,
"creatorVoteCounts": false,
"allowDownvotes": false,
"resetOnSourcePush": true,
"requireVoteOnLastIteration": true,
"blockLastPusherVote": true
}
}ビルド検証
构建验证
json
{
"isEnabled": true,
"isBlocking": true,
"type": {
"id": "0609b952-1397-4640-95ec-e00a01b2c241"
},
"settings": {
"buildDefinitionId": 123,
"displayName": "PR Build Validation",
"validDuration": 720,
"queueOnSourceUpdateOnly": true
}
}json
{
"isEnabled": true,
"isBlocking": true,
"type": {
"id": "0609b952-1397-4640-95ec-e00a01b2c241"
},
"settings": {
"buildDefinitionId": 123,
"displayName": "PR Build Validation",
"validDuration": 720,
"queueOnSourceUpdateOnly": true
}
}PR作成(Azure CLI)
创建PR(Azure CLI)
bash
undefinedbash
undefinedPR作成
PR作成
az repos pr create
--repository MyRepo
--source-branch feature/new-feature
--target-branch main
--title "新機能: ユーザー認証"
--description "JWT認証を実装しました"
--reviewers user1@example.com user2@example.com
--work-items 123 456
--repository MyRepo
--source-branch feature/new-feature
--target-branch main
--title "新機能: ユーザー認証"
--description "JWT認証を実装しました"
--reviewers user1@example.com user2@example.com
--work-items 123 456
az repos pr create
--repository MyRepo
--source-branch feature/new-feature
--target-branch main
--title "新機能: ユーザー認証"
--description "JWT認証を実装しました"
--reviewers user1@example.com user2@example.com
--work-items 123 456
--repository MyRepo
--source-branch feature/new-feature
--target-branch main
--title "新機能: ユーザー認証"
--description "JWT認証を実装しました"
--reviewers user1@example.com user2@example.com
--work-items 123 456
PRリスト取得
PRリスト取得
az repos pr list
--repository MyRepo
--status active
--repository MyRepo
--status active
az repos pr list
--repository MyRepo
--status active
--repository MyRepo
--status active
PR承認
PR承認
az repos pr update
--id 123
--status approved
--id 123
--status approved
az repos pr update
--id 123
--status approved
--id 123
--status approved
PRマージ
PRマージ
az repos pr update
--id 123
--status completed
--merge-commit-message "Merged PR 123: Add user authentication"
--id 123
--status completed
--merge-commit-message "Merged PR 123: Add user authentication"
undefinedaz repos pr update
--id 123
--status completed
--merge-commit-message "Merged PR 123: Add user authentication"
--id 123
--status completed
--merge-commit-message "Merged PR 123: Add user authentication"
undefined.gitattributes
.gitattributes
undefinedundefinedAuto detect text files and perform LF normalization
Auto detect text files and perform LF normalization
- text=auto
- text=auto
Source code
Source code
*.cs text diff=csharp
*.java text diff=java
*.py text diff=python
*.js text
*.ts text
*.cs text diff=csharp
*.java text diff=java
*.py text diff=python
*.js text
*.ts text
Binary files
Binary files
*.png binary
*.jpg binary
*.dll binary
*.exe binary
undefined*.png binary
*.jpg binary
*.dll binary
*.exe binary
undefinedバージョン情報
版本信息
- Version: 1.0.0
- Version: 1.0.0