Skip to content

Commit

Permalink
2.1.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
karamem0 committed Aug 24, 2023
1 parent 395245a commit 87a2ec9
Show file tree
Hide file tree
Showing 37 changed files with 1,270 additions and 332 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- develop

env:
BUILD_VERSION: 2.1.0.${{github.run_number}}
BUILD_VERSION: 2.1.1.${{github.run_number}}
BUILD_CONFIGURATION: Release

jobs:
Expand Down Expand Up @@ -70,6 +70,9 @@ jobs:
with:
name: commistant-bot
path: source/server/Karamem0.Commistant.Bot/build
- name: Test func
run: dotnet test --filter TestCategory=Karamem0.Commistant.Functions
working-directory: source/server
- name: Build func
run: |
dotnet publish `
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- v*.*.*

env:
BUILD_VERSION: 2.1.0.${{github.run_number}}
BUILD_VERSION: 2.1.1.${{github.run_number}}
BUILD_CONFIGURATION: Release

jobs:
Expand Down Expand Up @@ -72,6 +72,9 @@ jobs:
with:
name: commistant-bot
path: source/server/Karamem0.Commistant.Bot/build
- name: Test func
run: dotnet test --filter TestCategory=Karamem0.Commistant.Functions
working-directory: source/server
- name: Build func
run: |
dotnet publish `
Expand Down
6 changes: 6 additions & 0 deletions source/server/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"derivitec-ltd.vscode-dotnet-adapter",
"hbenl.vscode-test-explorer"
]
}
37 changes: 37 additions & 0 deletions source/server/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Bot",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/Karamem0.Commistant.Bot/bin/Debug/net7.0/Karamem0.Commistant.Bot.dll",
"args": [],
"cwd": "${workspaceFolder}/Karamem0.Commistant.Bot",
"stopAtEntry": false,
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
{
"name": "Launch Functions",
"type": "coreclr",
"request": "attach",
"processId": "${command:azureFunctions.pickProcess}"
},
{
"name": "Launch Web",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/Karamem0.Commistant.Web/bin/Debug/net7.0/Karamem0.Commistant.Web.dll",
"args": [],
"cwd": "${workspaceFolder}/Karamem0.Commistant.Web",
"stopAtEntry": false,
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
]
}
8 changes: 8 additions & 0 deletions source/server/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"azurite.location": ".azurite",
"azureFunctions.preDeployTask": "publish function",
"azureFunctions.projectLanguage": "C#",
"azureFunctions.projectRuntime": "~4",
"dotnetCoreExplorer.searchpatterns": "**/bin/**/*.Tests.dll",
"testExplorer.useNativeTesting": true
}
File renamed without changes.
18 changes: 0 additions & 18 deletions source/server/Karamem0.Commistant.Bot/.vscode/launch.json

This file was deleted.

12 changes: 8 additions & 4 deletions source/server/Karamem0.Commistant.Bot/Bots/ActivityBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ protected override async Task OnMembersAddedAsync(IList<ChannelAccount> membersA
"Commistant は Microsoft Teams 会議によるコミュニティ イベントをサポートするアシスタント ボットです。" +
"会議の開始時、終了時、または会議中に定型のメッセージ通知を送信します。" +
"通知にはテキストおよび QR コードつきの URL を添付することができます。",
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
}
await base.OnMembersAddedAsync(membersAdded, turnContext, cancellationToken);
Expand Down Expand Up @@ -118,22 +119,25 @@ protected override async Task OnMessageActivityAsync(ITurnContext<IMessageActivi
{
_ = await turnContext.SendActivityAsync(
"認識できないコマンドです。",
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
}
else
{
_ = await turnContext.SendActivityAsync(
"新しいコマンドを開始する前に中断されたコマンドを完了させてください。",
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
}
}
else
{
_ = await turnContext.SendActivityAsync(
"開催者のみがコマンドを実行できます。",
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
await this.conversationState.SaveChangesAsync(turnContext, cancellationToken: cancellationToken);
}
Expand Down
15 changes: 10 additions & 5 deletions source/server/Karamem0.Commistant.Bot/Dialogs/EndMeetingDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ protected override async Task OnInitializeAsync(DialogContext dc)
{
this.BeforeConfirmAsync,
this.AfterConrifmAsync
}));
}
));
_ = this.AddDialog(new TextPrompt(nameof(this.BeforeConfirmAsync), AdaptiveCardvalidator.Validate));
await base.OnInitializeAsync(dc);
}
Expand Down Expand Up @@ -154,7 +155,8 @@ private async Task<DialogTurnResult> BeforeConfirmAsync(WaterfallStepContext ste
{
Prompt = (Activity)activity
},
cancellationToken);
cancellationToken
);
}

private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken)
Expand All @@ -174,14 +176,16 @@ private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext step
this.logger.SettingsUpdated(stepContext.Context.Activity);
_ = await stepContext.Context.SendActivityAsync(
"設定を変更しました。",
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
if (value.Value<string>("Button") == "Cancel")
{
this.logger.SettingsCancelled(stepContext.Context.Activity);
_ = await stepContext.Context.SendActivityAsync(
"キャンセルしました。設定は変更されていません。",
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
if (stepContext.Context.Activity.ReplyToId is not null)
{
Expand Down Expand Up @@ -238,7 +242,8 @@ private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext step
activity.Id = stepContext.Context.Activity.ReplyToId;
_ = await stepContext.Context.UpdateActivityAsync(
activity,
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
return await stepContext.EndDialogAsync(cancellationToken: cancellationToken);
}
Expand Down
12 changes: 8 additions & 4 deletions source/server/Karamem0.Commistant.Bot/Dialogs/InMeetingDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ protected override async Task OnInitializeAsync(DialogContext dc)
{
this.BeforeConfirmAsync,
this.AfterConrifmAsync
}));
}
));
_ = this.AddDialog(new TextPrompt(nameof(this.BeforeConfirmAsync), AdaptiveCardvalidator.Validate));
await base.OnInitializeAsync(dc);
}
Expand Down Expand Up @@ -159,7 +160,8 @@ private async Task<DialogTurnResult> BeforeConfirmAsync(WaterfallStepContext ste
{
Prompt = (Activity)activity
},
cancellationToken);
cancellationToken
);
}

private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken)
Expand All @@ -179,7 +181,8 @@ private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext step
this.logger.SettingsUpdated(stepContext.Context.Activity);
_ = await stepContext.Context.SendActivityAsync(
"設定を変更しました。",
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
if (stepContext.Context.Activity.ReplyToId is not null)
{
Expand Down Expand Up @@ -235,7 +238,8 @@ private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext step
activity.Id = stepContext.Context.Activity.ReplyToId;
_ = await stepContext.Context.UpdateActivityAsync(
activity,
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
return await stepContext.EndDialogAsync(cancellationToken: cancellationToken);
}
Expand Down
12 changes: 8 additions & 4 deletions source/server/Karamem0.Commistant.Bot/Dialogs/ResetDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ protected override async Task OnInitializeAsync(DialogContext dc)
{
this.BeforeConfirmAsync,
this.AfterConrifmAsync
}));
}
));
_ = this.AddDialog(new TextPrompt(nameof(this.BeforeConfirmAsync), AdaptiveCardvalidator.Validate));
await base.OnInitializeAsync(dc);
}
Expand Down Expand Up @@ -99,7 +100,8 @@ private async Task<DialogTurnResult> BeforeConfirmAsync(WaterfallStepContext ste
{
Prompt = (Activity)activity
},
cancellationToken);
cancellationToken
);
}

private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken)
Expand All @@ -115,7 +117,8 @@ private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext step
await this.conversationState.ClearStateAsync(stepContext.Context, cancellationToken);
_ = await stepContext.Context.SendActivityAsync(
"設定を初期化しました。",
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
if (value.Value<string>("Button") == "No")
{
Expand Down Expand Up @@ -147,7 +150,8 @@ private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext step
activity.Id = stepContext.Context.Activity.ReplyToId;
_ = await stepContext.Context.UpdateActivityAsync(
activity,
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
return await stepContext.EndDialogAsync(cancellationToken: cancellationToken);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ protected override async Task OnInitializeAsync(DialogContext dc)
{
this.BeforeConfirmAsync,
this.AfterConrifmAsync
}));
}
));
_ = this.AddDialog(new TextPrompt(nameof(this.BeforeConfirmAsync), AdaptiveCardvalidator.Validate));
await base.OnInitializeAsync(dc);
}
Expand Down Expand Up @@ -153,7 +154,8 @@ private async Task<DialogTurnResult> BeforeConfirmAsync(WaterfallStepContext ste
{
Prompt = (Activity)activity
},
cancellationToken);
cancellationToken
);
}

private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken)
Expand All @@ -173,14 +175,16 @@ private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext step
this.logger.SettingsUpdated(stepContext.Context.Activity);
_ = await stepContext.Context.SendActivityAsync(
"設定を変更しました。",
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
if (value.Value<string>("Button") == "Cancel")
{
this.logger.SettingsCancelled(stepContext.Context.Activity);
_ = await stepContext.Context.SendActivityAsync(
"キャンセルしました。設定は変更されていません。",
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
if (stepContext.Context.Activity.ReplyToId is not null)
{
Expand Down Expand Up @@ -237,7 +241,8 @@ private async Task<DialogTurnResult> AfterConrifmAsync(WaterfallStepContext step
activity.Id = stepContext.Context.Activity.ReplyToId;
_ = await stepContext.Context.UpdateActivityAsync(
activity,
cancellationToken: cancellationToken);
cancellationToken: cancellationToken
);
}
return await stepContext.EndDialogAsync(cancellationToken: cancellationToken);
}
Expand Down
28 changes: 0 additions & 28 deletions source/server/Karamem0.Commistant.Common/.vscode/tasks.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public static async Task SetObjectAsync<T>(this BlobClient target, BlobContent<T
{
IfMatch = value.ETag
}
});
}
);
}

}
Expand Down
Loading

0 comments on commit 87a2ec9

Please sign in to comment.