Skip to content

Slack webhook username not from - #2360

Merged
matthid merged 4 commits into
fsprojects:release/nextfrom
mastion:slack-webhook-username-not-from
Jul 27, 2019
Merged

matthid merged 4 commits into
fsprojects:release/nextfrom
mastion:slack-webhook-username-not-from

Conversation

@mastion

@mastion mastion commented Jul 26, 2019

Copy link
Copy Markdown
Contributor

Description

Setting the username of an incoming slack message was not working. It was due to an incorrectly named field. Instead of From the field should be Username.
Also modified the documentation

No issue for this. I brought it up in the gitter.

TODO

Feel free to open the PR and ask for help

  • New (API-)documentation for new features exist (Note: API-docs are enough, additional docs are in help/markdown)

  • unit or integration test exists (or short reasoning why it doesn't make sense)

    Note: Consider using the CreateProcess API which can be tested more easily, see https://github.com/fsharp/FAKE/pull/2131/files#diff-4fb4a77e110fbbe8210205dfe022389b for an example (the changes in the DotNet.Testing.NUnit module)

  • boy scout rule: "leave the code behind in a better state than you found it" (fix warnings, obsolete members or code-style in the places you worked in)

  • (if new module) the module has been linked from the "Modules" menu, edit help/templates/template.cshtml, linking to the API-reference is fine.

  • (if new module) the module is in the correct namespace

  • (if new module) the module is added to Fake.sln (dotnet sln Fake.sln add src/app/Fake.*/Fake.*.fsproj)

  • Fake 5 API guideline is honored

matthid and others added 4 commits July 16, 2019 20:24
Changed the namespace because the script I was testing with already had
Fake added and I wasn't sure if #r-ing SlackNotification.fs into the
script would mess up if they were in the same namespace. So I changed
it and now I am deleting it.
@mastion

mastion commented Jul 26, 2019

Copy link
Copy Markdown
Contributor Author

I didn't see any integration tests for this ( probably because you don't have a slack server hanging around for testing ). I tested this manually and it worked. I am not sure what other information you might need for this.
I assumed I shouldn't delete SlackNotificationHelper.fs even though all of it is obsolete. But happy too if you want.
Sorry if I missed something obvious!

@matthid

matthid commented Jul 27, 2019

Copy link
Copy Markdown
Member

@mastion thanks looks good to me. Usually we add unit-tests for bugfixes but in this case I'm not sure what we could test so...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants