SuperAPI AI Directory

azure-repos-helper

Testing & quality

View repository

Updated 10-15 21:04

About this skill

Azure Repos Helper Skill

This skill assists with repository management in Azure Repos.

Main Features

  • Repository Operations: Clone, Push, Pull
  • Branch policy: PR required, review required
  • Code review: Create PR, review
  • Branch Management: Branch strategy
  • Git Operations: Azure DevOps-specific operations

Branch Policy Settings

main branch protection

{
  "isEnabled": true,
  "isBlocking": true,
  "type": {
    "id": "fa4e907d-c16b-4a4c-9dfa-4906e5d171dd"
  },
  "settings": {
    "minimumApproverCount": 2,
    "creatorVoteCounts": false,
    "allowDownvotes": false,
    "resetOnSourcePush": true,
    "requireVoteOnLastIteration": true,
    "blockLastPusherVote": true
  }
}

Build Validation

{
  "isEnabled": true,
  "isBlocking": true,
  "type": {
    "id": "0609b952-1397-4640-95ec-e00a01b2c241"
  },
  "settings": {
    "buildDefinitionId": 123,
    "displayName": "PR Build Validation",
    "validDuration": 720,
    "queueOnSourceUpdateOnly": true
  }
}

Create PR (Azure CLI)

# 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

# PRリスト取得
az repos pr list \
  --repository MyRepo \
  --status active

# PR承認
az repos pr update \
  --id 123 \
  --status approved

# PRマージ
az repos pr update \
  --id 123 \
  --status completed \
  --merge-commit-message "Merged PR 123: Add user authentication"

.gitattributes

# Auto detect text files and perform LF normalization
* text=auto

# Source code
*.cs     text diff=csharp
*.java   text diff=java
*.py     text diff=python
*.js     text
*.ts     text

# Binary files
*.png    binary
*.jpg    binary
*.dll    binary
*.exe    binary

Version Information

  • Version: 1.0.0