feat: add a plugin bitbucket#2458
Conversation
|
Actually, you can convert a pr to a draft pr in the right pannel. 😁 |
8e8ac6f to
3d3f5e7
Compare
66c51f7 to
1d31ac2
Compare
|
Good work. Make sure you add e2e tests as well. |
thanks,I will add |
f615ba0 to
979b491
Compare
| } | ||
| } | ||
| // refdiff | ||
| if refdiffRules, ok := transformationRules["refdiff"]; ok { |
There was a problem hiding this comment.
I'd make "refdiff" a global constant and put it in some shared package. The Github and Gitlab plugins also use it
There was a problem hiding this comment.
more generally, much of this transformation logic seems to be the same as those plugins. Would be good if you can refactor it into a common function. Otherwise, just the global constant will do as well.
There was a problem hiding this comment.
got it , thanks for your remind.
|
Hi @thenicetgp, could you give an overall status update on this PR? Are there more changes you are working on? |
Hi @keon94 , thank for your comment, this PR just add a plugin bitbucket, it can currently collect issues,pullrequests,accounts,repos,issue_comments and pr_comments. Domainlayer table accounts,repos,issue,pull_requests,issue_comments and pull_request_comments are filled. These tables have basically all the data they should have. |
PreChecklist
firstly you should create a app_password for your account
https://bitbucket.org/account/settings/app-passwords/
bitbucket.go run configuration example
go run bitbucket.go -c 1 -o thenicetgp -r lake
Summary
add bitbucket connection repo pr issue issue_comments pr_comments
add e2e tests: issue_test, pr_test, comment_test, account_test, repo_test, etc.
Does this close any open issues?
#2100
Screenshots
table "repos"
table "accounts"
table "issues"
table "pull_requests"
table "pull_request_comments"
table "issue_comments"
Other information
Thanks to @mindlesscloud for his guidance on my work.