Skip to content

Commit

Permalink
Merge pull request #46 from Assassyn/release/0.12.1
Browse files Browse the repository at this point in the history
Release/0.12.1
  • Loading branch information
Assassyn committed Jul 15, 2023
2 parents b1a9dfa + d57cad4 commit 35403f9
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 43 deletions.
2 changes: 1 addition & 1 deletion build/build.yml
Expand Up @@ -14,7 +14,7 @@ trigger:
pool:
vmImage: ubuntu-latest

name: 0.12.0
name: 0.12.1

stages:
- stage: BuildAndTest
Expand Down
3 changes: 3 additions & 0 deletions src/Functional.UniversalBot.Core/PrimitiveValues/String.fs
Expand Up @@ -22,3 +22,6 @@ let generateRandomString numebrOfCharacters =
let chars = "0123456789abcdefghijklmnopqrstuvwxyz".ToCharArray()
let sz = Array.length chars in
String(Array.init numebrOfCharacters (fun _ -> chars.[randomizer.Next sz])).ToString()

let toLower (input: string) =
input.ToLower()
8 changes: 4 additions & 4 deletions src/Functional.UniversalBot.Hive/Actions/WritePost.fs
Expand Up @@ -12,10 +12,10 @@ open FSharp.Control
let ModuleName = "WritePost"

let private createPost username body title (tags: string array) =
let tags = String.Join("\",\"", tags)
let metadata = $"""{{"app":"universalbot/0.12.0", "tags": ["{tags}"]}}"""
let permlink = title |> String.replace ' ' '-'
Hive.createComment username body metadata "" "" permlink title
let tagsList = String.Join("\",\"", tags)
let metadata = $"""{{"app":"universalbot/0.12.0", "tags": ["{tagsList}"]}}"""
let permlink = title |> String.replace ' ' '-' |> String.toLower
Hive.createComment username body metadata "" tags.[0] permlink title

let private getTemplate templateId (entity: PipelineProcessData<UniversalHiveBotResutls>) =
(Map.getValueWithDefault entity.properties templateId ("" :> obj)).ToString()
Expand Down
@@ -1,46 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<BaseOutputPath>..\..\build\debugBuild</BaseOutputPath>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<BaseOutputPath>..\..\build\debugBuild</BaseOutputPath>
</PropertyGroup>

<ItemGroup>
<Compile Include="Template.fs" />
<Compile Include="Hive.Types.fs" />
<Compile Include="HttpQuery.fs" />
<Compile Include="Hive.fs" />
<Compile Include="CondenserApi.Types.fs" />
<Compile Include="CondenserApi.fs" />
<Compile Include="BridgeAPI.Types.fs" />
<Compile Include="BridgeAPI.fs" />
<Compile Include="TemplateAPI.fs" />
<Compile Include="PostId.fs" />
<Compile Include="Actions\WritePosts.fs" />
<Compile Include="Actions\Variable.fs" />
<Compile Include="Actions\ReadPosts.fs" />
<Compile Include="Actions\ReadUserComments.fs" />
<Compile Include="Actions\GetCommentedPosts.fs" />
<Compile Include="Actions\VoteOnPosts.fs" />
<Compile Include="Actions\LoadTemplate.fs" />
<Compile Include="Actions\CommentOnPosts.fs" />
<Compile Include="Actions\WritePost.fs" />
<Compile Include="Actions\FlushTokens.fs" />
<Compile Include="Actions\ActionRegistry.fs" />
</ItemGroup>
<ItemGroup>
<Compile Include="Template.fs" />
<Compile Include="Hive.Types.fs" />
<Compile Include="HttpQuery.fs" />
<Compile Include="Hive.fs" />
<Compile Include="CondenserApi.Types.fs" />
<Compile Include="CondenserApi.fs" />
<Compile Include="BridgeAPI.Types.fs" />
<Compile Include="BridgeAPI.fs" />
<Compile Include="TemplateAPI.fs" />
<Compile Include="PostId.fs" />
<Compile Include="Actions\WritePosts.fs" />
<Compile Include="Actions\Variable.fs" />
<Compile Include="Actions\ReadPosts.fs" />
<Compile Include="Actions\ReadUserComments.fs" />
<Compile Include="Actions\GetCommentedPosts.fs" />
<Compile Include="Actions\VoteOnPosts.fs" />
<Compile Include="Actions\LoadTemplate.fs" />
<Compile Include="Actions\CommentOnPosts.fs" />
<Compile Include="Actions\WritePost.fs" />
<Compile Include="Actions\FlushTokens.fs" />
<Compile Include="Actions\ActionRegistry.fs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="HiveAPI" Version="0.3.0" />
<PackageReference Include="Nettle" Version="3.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="HiveAPI" Version="0.3.0" />
<PackageReference Include="Nettle" Version="3.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Functional.UniversalBot.Core\Functional.UniversalBot.Core.fsproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Functional.UniversalBot.Core\Functional.UniversalBot.Core.fsproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="FSharp.Core" Version="7.0.300" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="FSharp.Core" Version="7.0.300" />
</ItemGroup>

</Project>

0 comments on commit 35403f9

Please sign in to comment.