-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Azure:dev' into nguyenma/revertPolling
- Loading branch information
Showing
1,205 changed files
with
177,313 additions
and
58,646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: ✒️ Reference documentation issue or question | ||
description: Report reference documentation related issue | ||
title: '[Reference feedback]: ' | ||
labels: [needs-triage] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
Azure CLI documentation includes 3 categories: | ||
- Conceptual doc about Azure CLI: https://learn.microsoft.com/en-us/CLI/azure | ||
- Engineering doc on Github repo (Core): https://github.com/Azure/azure-CLI | ||
- Engineering doc on Github repo (Extensions): https://github.com/Azure/azure-CLI-extensions | ||
- type: markdown | ||
attributes: | ||
value: Select the issue type, and describe the issue in the text box below. Add as much detail as needed to help us resolve the issue. | ||
- type: dropdown | ||
id: issue-type | ||
attributes: | ||
label: Type of issue | ||
options: | ||
- Other (describe below) | ||
- Code doesn't work | ||
- Missing information | ||
- Outdated article | ||
- Typo | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: referencecommand | ||
validations: | ||
required: true | ||
attributes: | ||
label: Reference command name | ||
description: >- | ||
Enter the reference command name. Example: `az vm create`. Do not include parameters in this section. | ||
- type: textarea | ||
id: userfeedback | ||
validations: | ||
required: true | ||
attributes: | ||
label: Feedback | ||
description: >- | ||
Please provide extended details that will add context and help the team update | ||
Azure CLI reference documentation. For technical or factual errors, include code | ||
snippets and output from the `--debug` parameter. For examples on using `--debug`, | ||
see https://learn.microsoft.com/cli/azure/use-azure-cli-successfully-troubleshooting#the---debug-parameter. | ||
- type: markdown | ||
attributes: | ||
value: Article information | ||
- type: markdown | ||
attributes: | ||
value: "*If the following fields are automatically filled in for you, please don't modify them*" | ||
- type: input | ||
id: pageUrl | ||
attributes: | ||
label: Page URL | ||
- type: input | ||
id: contentSourceUrl | ||
attributes: | ||
label: Content source URL | ||
- type: input | ||
id: author | ||
attributes: | ||
label: Author | ||
description: GitHub Id of the author | ||
- type: input | ||
id: documentVersionIndependentId | ||
attributes: | ||
label: Document Id | ||
- type: markdown | ||
attributes: | ||
value: > | ||
The Azure CLI team is listening, please let us know how we are doing: https://learn.microsoft.com/cli/azure/command-line-tools-survey-guidance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: CCOA | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
branches: | ||
- dev | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
add_label_and_comment: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check current date securely | ||
id: date_check | ||
run: | | ||
# Define the block date (Jan 7, 2025) | ||
BLOCK_DATE=$(date -d "2025-01-07" +%s) | ||
# Get the current date in seconds | ||
CURRENT_DATE=$(date +%s) | ||
# Validate the dates and safely output the result | ||
if [ "$CURRENT_DATE" -lt "$BLOCK_DATE" ]; then | ||
echo "continue=true" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "continue=false" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Comment on PR | ||
if: steps.date_check.outputs.continue == 'true' | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
// Fetch existing comments | ||
const comments = await github.rest.issues.listComments({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
}); | ||
// Check if the specific comment already exists | ||
const existingComment = comments.data.find(comment => | ||
comment.body.includes("⚠️**Your changes in this PR will be released on Jan 14, 2025 due to CCOA (extend to Jan 6, 2025)**") | ||
); | ||
if (existingComment) { | ||
console.log("Comment already exists. Skipping..."); | ||
} else { | ||
console.log("No comment found. Adding a new one..."); | ||
// Add a new comment | ||
await github.rest.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
body: "⚠️**Your changes in this PR will be released on Jan 14, 2025 due to CCOA (extend to Jan 6, 2025)**", | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.