Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

βœ… Merge main into live #1167

Merged
merged 4 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/policies/label-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ configuration:
- isActivitySender:
user: dotnet-policy-service[bot]
- titleContains:
pattern: Merge main into live
pattern: "βœ… Merge `main` into `live`"
isRegex: False
then:
- addLabel:
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/dispatch-merge-main-to-live.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: go-live

on:
workflow_dispatch:
inputs:
reason:
description: "The reason for running the workflow"
required: true
default: "Need to update live now, before daily scheduled run."

jobs:
go-live:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
permissions:
contents: write
pull-requests: write

steps:
- name: "Print manual run reason"
if: github.event_name == 'workflow_dispatch'
run: |
echo 'Reason: ${{ github.event.inputs.reason }}'

- name: Check out code
uses: actions/checkout@main

- name: Check for existing PR
id: exists
run: |
result=$(gh pr list --base live --head main --json number --jq '.[0].number' || echo "")
echo "PR_NUMBER=$result" >> $GITHUB_OUTPUT
shell: bash

- name: Create pull request
id: create
if: steps.exists.outputs.PR_NUMBER == ''
run: |
gh pr create \
--title "βœ… Merge \`main\` into \`live\`" \
--body "πŸ€– Queue merge when ready..." \
--base live \
--head main
echo "CREATED=true" >> $GITHUB_OUTPUT

- name: Enable auto-merge for the pull request
if: steps.create.outputs.CREATED == 'true'
run: |
PR_NUMBER=$(gh pr list --base live --head main --json number --jq '.[0].number')
gh pr merge $PR_NUMBER --merge --auto
6 changes: 3 additions & 3 deletions docs/azureai/azureai-openai-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: .NET Aspire Azure AI OpenAI component
description: Learn how to use the .NET Aspire Azure AI OpenAI component.
ms.topic: how-to
ms.date: 06/05/2024
ms.date: 06/26/2024
---

# .NET Aspire Azure AI OpenAI component
Expand Down Expand Up @@ -102,7 +102,7 @@ When using a connection string from the `ConnectionStrings` configuration sectio
builder.AddAzureAIOpenAI("openAiConnectionName");
```

And then the connection string will be retrieved from the `ConnectionStrings` configuration section:
The connection string is retrieved from the `ConnectionStrings` configuration section, and there are two supported formats, either the account endpoint used in conjunction with the default Azure credential or a connection string with the account key.

#### Account endpoint

Expand All @@ -123,7 +123,7 @@ Alternatively, a custom connection string can be used.
```json
{
"ConnectionStrings": {
"openaiConnectionName": "Endpoint=https://{account_name}.openai.azure.com/;Key={account_key};"
"openAiConnectionName": "Endpoint=https://{account_name}.openai.azure.com/;Key={account_key};"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/frameworks/dapr.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Use Dapr with .NET Aspire
description: Learn how to use Dapr with .NET Aspire
ms.date: 06/04/2024
ms.date: 06/26/2024
ms.topic: overview
---

Expand Down
4 changes: 2 additions & 2 deletions docs/frameworks/snippets/Dapr/Dapr.Web/WeatherApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ public async Task<WeatherForecast[]> GetWeatherAsync(
await client.InvokeMethodAsync<List<WeatherForecast>>(
HttpMethod.Get,
"apiservice",
"/weatherforecast",
"weatherforecast",
cancellationToken);

return forecasts?.ToArray() ?? [];
return forecasts?.Take(maxItems)?.ToArray() ?? [];
}
}

Expand Down
28 changes: 14 additions & 14 deletions docs/frameworks/snippets/Dapr/Dapr.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,11 @@ EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dapr.Web", "Dapr.Web\Dapr.Web.csproj", "{084CE0BA-28EE-4ABB-8E95-F5243F897922}"
EndProject
Global
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7307B03D-798E-47A2-B413-E5B2C2D62234}
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{084CE0BA-28EE-4ABB-8E95-F5243F897922}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{084CE0BA-28EE-4ABB-8E95-F5243F897922}.Debug|Any CPU.Build.0 = Debug|Any CPU
{084CE0BA-28EE-4ABB-8E95-F5243F897922}.Release|Any CPU.ActiveCfg = Release|Any CPU
{084CE0BA-28EE-4ABB-8E95-F5243F897922}.Release|Any CPU.Build.0 = Release|Any CPU
{7B67544C-F50B-4EE1-A3E1-DD0A394BAF1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7B67544C-F50B-4EE1-A3E1-DD0A394BAF1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7B67544C-F50B-4EE1-A3E1-DD0A394BAF1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7B67544C-F50B-4EE1-A3E1-DD0A394BAF1C}.Release|Any CPU.Build.0 = Release|Any CPU
{A2A333D8-A8CE-467A-B854-24C7E0A103E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A2A333D8-A8CE-467A-B854-24C7E0A103E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A2A333D8-A8CE-467A-B854-24C7E0A103E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -31,12 +24,19 @@ Global
{ECD0E8F9-65BF-44DA-A8EC-2475A56E97A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ECD0E8F9-65BF-44DA-A8EC-2475A56E97A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ECD0E8F9-65BF-44DA-A8EC-2475A56E97A8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
{7B67544C-F50B-4EE1-A3E1-DD0A394BAF1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7B67544C-F50B-4EE1-A3E1-DD0A394BAF1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7B67544C-F50B-4EE1-A3E1-DD0A394BAF1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7B67544C-F50B-4EE1-A3E1-DD0A394BAF1C}.Release|Any CPU.Build.0 = Release|Any CPU
{084CE0BA-28EE-4ABB-8E95-F5243F897922}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{084CE0BA-28EE-4ABB-8E95-F5243F897922}.Debug|Any CPU.Build.0 = Debug|Any CPU
{084CE0BA-28EE-4ABB-8E95-F5243F897922}.Release|Any CPU.ActiveCfg = Release|Any CPU
{084CE0BA-28EE-4ABB-8E95-F5243F897922}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7307B03D-798E-47A2-B413-E5B2C2D62234}
EndGlobalSection
EndGlobal
Loading