danger / danger/danger

BitbucketServerCommit does not have 'title' property

Open
#1,490 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
5.7k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

# Report

## What did you do?

I am porting a danger file from Gitlab to Bitbucket and was trying to parse commits by title

## What did you expect to happen?

I expected danger to be able to parse commits from bitbucket by title

## What happened instead?

I get the following property error:

`Property 'title' does not exist on type 'BitBucketServerCommit'.`

## Your Environment

Using bamboo CI for Bitbucket, running version 11.2.6

```typescript

const notableCommits = danger.bitbucket_server.commits.filter(
(commit: BitBucketServerCommit) => tags.some(tag => commit.title.startsWith(`${tag}: `))
);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.