Microsoft Teams Integration Test is not relevant to Triggers specified
Summary
Microsoft Teams Integration "testing and save" fails when there is no commit in the target project and Push/Pipelines are not checked in Triggers of Microsoft Teams Integration settings.
Steps to reproduce
- Prepare a new project without any Git commit and push.
- Move "Settings" > "Integrations" to click and, click "Microsoft Teams Notification"
- Configure Microsoft Teams Notification leaving "Notify only default branch" as checked.
- Click "Save changes" to see "Test failed. false Save Anyway" error message.
Example Project
n/a
What is the current bug behavior?
Always using Push trigger for testing the changes before saving them in Microsoft Teams Notification Integration, and so users will see test error when there is no commit in the target project Git.
What is the expected correct behavior?
Use one of corresponding triggers specified in the settings for testing the changes before saving them in Microsoft Teams Notification Integration.
Relevant logs and/or screenshots
Output of checks
GitLab Enterprise Edition 11.1.4-ee d17962f9 without EE license.
Possible fixes
Use one of corresponding triggers specified in the settings for testing the changes before saving them in Microsoft Teams Notification Integration.