Skip to content

Commit ba06345

Browse files
committed
Organize some comment
1 parent 64e0568 commit ba06345

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# go-bitbucket-server
2-
go-bitbucket-server is a Go client library for accessing the Bitbucket Server API v1.
32

4-
> This client is under development , I started with endpoints that is important to me. The goal eventually is to cover the all endpoints. Pull requests are welcomed to implement missed endpoints or fix bugs.
3+
go-bitbucket-server is a [Go](https://golang.orgs) client library for accessing the
4+
[Bitbucket](https://www.atlassian.com/software/bitbucket) Server API v1.
5+
6+
> This client is under development , I started with endpoints that is important to me.
7+
> The goal eventually is to cover the all endpoints.
8+
> Pull requests are welcomed to implement missed endpoints or fix bugs.
9+
10+
The interface design of this package was inspired by [google/go-github](https://github.com/google/go-github)
11+
and [andygrunwald/go-jira](https://github.com/andygrunwald/go-jira).
12+
13+
14+
## Usage
515

6-
## Usage
7-
816
```go
917
import "github.com/suhaibmujahid/go-bitbucket-server/bitbucket"
1018

bitbucket/event_types.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ package bitbucket
22

33
import "time"
44

5+
// todo: the following are the missed event types:
6+
// * mirror:repo_synchronized
7+
// * pr:comment:added
8+
// * pr:comment:edited
9+
// * pr:comment:deleted
10+
// * repo:comment:added
11+
// * repo:comment:edited
12+
// * repo:comment:deleted
13+
514
const (
615
EventKeyRepositoryPush = "repo:refs_changed"
716
EventKeyRepositoryModified = "repo:modified"
@@ -175,12 +184,3 @@ type PullRequestReviewerEvent struct {
175184
Participant *PullRequestUser `json:"participant"`
176185
PreviousStatus string `json:"previousStatus"`
177186
}
178-
179-
// todo: the following are the missed event types:
180-
// * mirror:repo_synchronized
181-
// * pr:comment:added
182-
// * pr:comment:edited
183-
// * pr:comment:deleted
184-
// * repo:comment:added
185-
// * repo:comment:edited
186-
// * repo:comment:deleted

bitbucket/messages.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// This file provides functions for validating payloads from Bitbucket Server Webhooks.
2+
// Doc: https://confluence.atlassian.com/bitbucketserver070/managing-webhooks-in-bitbucket-server-996644364.html
3+
14
package bitbucket
25

36
import (

0 commit comments

Comments
 (0)