File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Functional.UniversalBot.Core/PrimitiveValues
Functional.UniversalBot.Hive/Actions Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ trigger:
14
14
pool :
15
15
vmImage : ubuntu-latest
16
16
17
- name : 0.12.0
17
+ name : 0.12.1
18
18
19
19
stages :
20
20
- stage : BuildAndTest
Original file line number Diff line number Diff line change @@ -22,3 +22,6 @@ let generateRandomString numebrOfCharacters =
22
22
let chars = " 0123456789abcdefghijklmnopqrstuvwxyz" .ToCharArray()
23
23
let sz = Array.length chars in
24
24
String( Array.init numebrOfCharacters ( fun _ -> chars.[ randomizer.Next sz])) .ToString()
25
+
26
+ let toLower ( input : string ) =
27
+ input.ToLower()
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ open FSharp.Control
12
12
let ModuleName = " WritePost"
13
13
14
14
let private createPost username body title ( tags : string array ) =
15
- let tags = String.Join( " \" ,\" " , tags)
16
- let metadata = $""" {{"app":"universalbot/0.12.0", "tags": ["{tags }"]}}"""
17
- let permlink = title |> String.replace ' ' '-'
18
- Hive.createComment username body metadata " " " " permlink title
15
+ let tagsList = String.Join( " \" ,\" " , tags)
16
+ let metadata = $""" {{"app":"universalbot/0.12.0", "tags": ["{tagsList }"]}}"""
17
+ let permlink = title |> String.replace ' ' '-' |> String.toLower
18
+ Hive.createComment username body metadata " " tags .[ 0 ] permlink title
19
19
20
20
let private getTemplate templateId ( entity : PipelineProcessData < UniversalHiveBotResutls >) =
21
21
( Map.getValueWithDefault entity.properties templateId ( " " :> obj)) .ToString()
You can’t perform that action at this time.
0 commit comments