Skip to content

Commit 67c871f

Browse files
Merge branch 'Azure:main' into main
2 parents 2c2c587 + a5204c5 commit 67c871f

2,207 files changed

Lines changed: 1331670 additions & 669686 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.azure-pipelines/sync-alias.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ jobs:
7575
git add .github/policies
7676
git commit -m "Sync resourceManagement.yml"
7777
78-
git remote set-url origin https://azclibot:$(GithubToken)@github.com/Azure/azure-cli-extensions.git;
79-
git push origin "sync_alias_$env:Build_BuildId" --force
78+
git remote add azclibot https://azclibot:$(GithubToken)@github.com/azclibot/azure-cli-extensions.git
79+
git push azclibot "sync_alias_$env:Build_BuildId" --force
8080
displayName: Git commit and push
8181
condition: and(succeeded(), eq(variables['ChangesDetected'], 'true'))
8282
8383
- pwsh: |
8484
$Title = "{CI} Sync resourceManagement.yml according To ADO Wiki Page - Service Contact List"
85-
$HeadBranch = "sync_alias_$env:Build_BuildId"
85+
$HeadBranch = "azclibot:sync_alias_$env:Build_BuildId"
8686
$BaseBranch = "main"
8787
$Description = "This PR synchronizes the task: 'Triage issues to the service team' part of resourceManagement.yml from table of Service Contact List in ADO wiki page"
8888
@@ -92,5 +92,5 @@ jobs:
9292
9393
Invoke-WebRequest -Uri $Uri -Method POST -Headers $Headers -Body ($RequestBody | ConvertTo-Json)
9494
95-
displayName: Create PR to main branch
95+
displayName: Create PR to azure/azure-cli-extensions main branch
9696
condition: and(succeeded(), eq(variables['ChangesDetected'], 'true'))
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: GH Azdev Setup
2+
description: 'azdev env setup'
3+
4+
runs:
5+
using: 'composite'
6+
steps:
7+
- name: Check Init GH Event
8+
env:
9+
action: ${{ toJSON(github.event.action) }}
10+
label: ${{ toJSON(github.event.label) }}
11+
shell: bash
12+
run: |
13+
echo start azdev env setup
14+
- name: Checkout CLI extension repo
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # checkout all branches
18+
ref: ${{ github.event.pull_request.head.ref }}
19+
repository: ${{ github.event.pull_request.head.repo.full_name }} # checkout pull request branch
20+
- name: Set up Python 3.11
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: "3.11"
24+
- name: Checkout CLI main repo
25+
uses: actions/checkout@v4
26+
with:
27+
repository: Azure/azure-cli
28+
path: ./azure-cli
29+
- name: Move the main repo to the same level as the extension repo
30+
shell: bash
31+
run: |
32+
pwd
33+
ls
34+
mv azure-cli ../
35+
cd ../
36+
pwd
37+
ls
38+
- name: Install azdev
39+
shell: bash
40+
run: |
41+
python -m pip install --upgrade pip
42+
set -ev
43+
python -m venv env
44+
chmod +x env/bin/activate
45+
source ./env/bin/activate
46+
pip install azdev
47+
azdev --version
48+
cd ../
49+
azdev setup -c azure-cli -r azure-cli-extensions --debug
50+
az --version
51+
pip list -v

.github/copilot-instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- @azure Rule - Use Azure Best Practices: When generating code for Azure, running terminal commands for Azure, or performing operations related to Azure, invoke your `azure_development-get_best_practices` tool if available.

0 commit comments

Comments
 (0)