Skip to content

Commit c874b80

Browse files
committed
Added docs properly
1 parent 6028aa1 commit c874b80

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

docs/usage/bitbucket_server.html.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ order: 4
66
blurb: An overview of using Danger with BitBucket Server, and some examples
77
---
88

9-
To use Danger JS with BitBucket Server: you'll need to create a new account for Danger to use,
10-
then set the following environment variables on your CI:
9+
To use Danger JS with BitBucket Server: you'll need to create a new account for Danger to use, then set the following
10+
environment variables on your CI:
1111

1212
* `DANGER_BITBUCKETSERVER_HOST` = The root URL for your server, e.g. `https://bitbucket.mycompany.com`.
1313
* `DANGER_BITBUCKETSERVER_USERNAME` = The username for the account used to comment.
@@ -23,8 +23,7 @@ if (danger.bitbucket_server.pr.title.includes("WIP")) {
2323
}
2424
```
2525

26-
The DSL is expansive, you can see all the details inside the [Danger JS Reference][ref],
27-
but the TLDR is:
26+
The DSL is expansive, you can see all the details inside the [Danger JS Reference][ref], but the TLDR is:
2827

2928
```ts
3029
danger.bitbucket_server.
@@ -72,6 +71,19 @@ if (hasGIF) {
7271
}
7372
```
7473

75-
Plus any other example you can find that uses GitHub, will probably work in BitBucket Server, with a bit of DSL translation.
74+
Plus any other example you can find that uses GitHub, will probably work in BitBucket Server, with a bit of DSL
75+
translation.
7676

77-
Our BitBucket Server support is still pretty new, so we'd love to see improvements and PRs to help make it work for everyone.
77+
Our BitBucket Server support is still pretty new, so we'd love to see improvements and PRs to help make it work for
78+
everyone.
79+
80+
In addition, it is possible to specify a proxy to be used for the requests using environmental variables. This is useful
81+
for debugging:
82+
83+
```ts
84+
export NODE_TLS_REJECT_UNAUTHORIZED=0 # Avoid certificate error
85+
86+
export http_proxy=http://127.0.0.1:8080
87+
or
88+
export https_proxy=https://127.0.0.1:8080
89+
```

0 commit comments

Comments
 (0)