Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: rename file should trigger creating issue (#8980)

h3n4laee40ff49c40
diff --git a/backend/plugin/vcs/bitbucket/bitbucket.go b/backend/plugin/vcs/bitbucket/bitbucket.go
index bbca6c9658..6550337055 100644
--- a/backend/plugin/vcs/bitbucket/bitbucket.go
+++ b/backend/plugin/vcs/bitbucket/bitbucket.go
@@ -223,6 +223,9 @@ func (p *Provider) GetDiffFileList(ctx context.Context, oauthCtx common.OauthCon
diff.Type = vcs.FileDiffTypeModified
case "removed":
diff.Type = vcs.FileDiffTypeRemoved
+ // To be consistent with GitLab, we treat renamed as added.
+ case "renamed":
+ diff.Type = vcs.FileDiffTypeAdded
default:
// Skip because we don't care about file diff in other status
continue