Compare commits

...

3 Commits

Author SHA1 Message Date
Raghav 65018053d4
Update scm version 1.27.0 (#206) 2 years ago
Shubham Agrawal 2e3f1a56c8
Merge pull request #205 from drone/azure_issue_comment_version_fix
Using resource version 2.0 for Azure
2 years ago
raghavharness 9b81b04a4d using resource version 2.0 for Azure 2 years ago

@ -1,5 +1,13 @@
# Changelog
## [v1.27.0](https://github.com/drone/go-scm/tree/v1.27.0) (2022-07-18)
[Full Changelog](https://github.com/drone/go-scm/compare/v1.26.0...v1.27.0)
**Merged pull requests:**
- Using resource version 2.0 for Azure [\#205](https://github.com/drone/go-scm/pull/205) ([raghavharness](https://github.com/raghavharness))
## [v1.26.0](https://github.com/drone/go-scm/tree/v1.26.0) (2022-07-01)
[Full Changelog](https://github.com/drone/go-scm/compare/v1.25.0...v1.26.0)
@ -15,7 +23,6 @@
**Merged pull requests:**
- Update scm version 1.26.0 [\#203](https://github.com/drone/go-scm/pull/203) ([rutvijmehta-harness](https://github.com/rutvijmehta-harness))
- Fixed formatting in README.md [\#199](https://github.com/drone/go-scm/pull/199) ([hemanthmantri](https://github.com/hemanthmantri))
## [v1.25.0](https://github.com/drone/go-scm/tree/v1.25.0) (2022-06-16)

@ -109,6 +109,10 @@ func (s *RepositoryService) CreateHook(ctx context.Context, repo string, input *
if input.SkipVerify {
in.ConsumerInputs.AcceptUntrustedCerts = "enabled"
}
// with version 1.0, azure provides incomplete data for issue-comment
if in.EventType == "ms.vss-code.git-pullrequest-comment-event" {
in.ResourceVersion = "2.0"
}
out := new(subscription)
res, err := s.client.do(ctx, "POST", endpoint, in, out)
return convertHook(out), res, err

Loading…
Cancel
Save