-
Notifications
You must be signed in to change notification settings - Fork 585
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
Migrate Fake.Api.Slack to NET Core #1648
Conversation
Thanks for this it looks really nice! Currently master is "green" (there is still a transient error from time to time). Please try to rebase/merge to get this green. About the namespace: |
9386a05
to
4685cc3
Compare
@matthid thanks for fixing the build! About the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, sorry for the late review. I left some comments but leaving the namespace called Fake.Api
is probably fine.
/// Contains a task to send notification messages to a [Slack](https://slack.com/) webhook | ||
module Slack = | ||
/// The Slack notification attachment field parameter type | ||
[<CLIMutable>] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kind of removed [<CLIMutable>]
when porting records - it had historical reasons, but was not actually used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, removed.
} | ||
|
||
/// The Slack notification attachment parameter type | ||
[<CLIMutable>] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
/// The title of the attachment | ||
Title: string | ||
/// Content to which the title should link | ||
Title_Link: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm should we really use _
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
} | ||
|
||
/// The Slack notification parameter type | ||
[<CLIMutable>] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
/// - `setParams` - Function used to override the default notification parameters | ||
let SendNotification (webhookURL : string) (setParams: NotificationParams -> NotificationParams) = | ||
let sendNotification param = | ||
#if NETSTANDARD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't indent compiler directives
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
@matthid thanks for the review. |
Migrate Fake.Api.Slack to NET Core
Files:
SlackNotificationHelper.fs
New namespace:
Fake.Api
New module name:
Slack
New *.fsx script example:
Tested on: