diff --git a/.github/workflows/CopilotReview.yml b/.github/workflows/CopilotReview.yml new file mode 100644 index 00000000000..d8f850db52b --- /dev/null +++ b/.github/workflows/CopilotReview.yml @@ -0,0 +1,34 @@ +name: Copilot Review + +on: + pull_request_target: + types: [opened, synchronize, labeled, unlabeled] + branches: + - main + +permissions: {} + +jobs: + copilot-code-review: + if: ${{ contains(github.event.pull_request.labels.*.name, 'copilot-code-review') }} + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: read + steps: + - name: Check Init Event + env: + action: ${{ toJSON(github.event.action) }} + label: ${{ toJSON(github.event.label) }} + run: | + echo start review module + - name: Copilot PR Review + uses: AllyW/copilot-pr-review@v0.1.29 + with: + APIKEY: ${{ secrets.APIKEY }} + ENDPOINT: ${{ secrets.ENDPOINT }} + AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_EVENT: ${{ toJSON(github.event) }} + code_suggest: True + pr_summary: True + pr_reset: True diff --git a/src/monitor-control-service/HISTORY.rst b/src/monitor-control-service/HISTORY.rst index 0fc3a4dc4a4..7ea5f2ec98f 100644 --- a/src/monitor-control-service/HISTORY.rst +++ b/src/monitor-control-service/HISTORY.rst @@ -2,6 +2,10 @@ Release History =============== +1.2.1 +++++++ +* Update help messages + 1.2.0 ++++++ * Update api-version to `2023-03-11` for sub cmds of `az monitor data-collection rule` diff --git a/src/monitor-control-service/azext_amcs/_params.py b/src/monitor-control-service/azext_amcs/_params.py index eb838f36c4e..44074a08609 100644 --- a/src/monitor-control-service/azext_amcs/_params.py +++ b/src/monitor-control-service/azext_amcs/_params.py @@ -22,9 +22,9 @@ def load_arguments(self, _): # pylint: disable=unused-argument c.argument('resource_uri', options_list=['--resource', '--resource-uri'], help='The identifier of the resource.') c.argument('association_name', options_list=['--name', '-n'], help='The name of the association.') - c.argument('description', help='Description of the association.') + c.argument('description', help='Description of the association.For more message, please check: https:learn.microsoft.com/en-us/cli/azure/monitor/data-collection/endpoint/association?view=azure-cli-latest#az-monitor-data-collection-endpoint-association-list') c.argument('rule_id', help='The resource ID of the data collection rule that is to be associated.') - c.argument('endpoint_id', help='The resource ID of the data collection endpoint that is to be associated.', + c.argument('endpoint_id', help='The resource ID of the data collection endpoint that is to be associated. Format like ', validator=validate_association_name_with_endpoint) c.argument('data_collection_rule_name', options_list=['--rule-name', '--data-collection-rule-name']) diff --git a/src/monitor-control-service/setup.py b/src/monitor-control-service/setup.py index cb6a0c5b1e9..3ada5c08d8d 100644 --- a/src/monitor-control-service/setup.py +++ b/src/monitor-control-service/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # HISTORY.rst entry. -VERSION = '1.2.0' +VERSION = '1.2.1' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers