Skip to content

Commit ae5c27e

Browse files
author
zl0ty
committed
prettier changes
1 parent 546bc32 commit ae5c27e

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

index.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
const bunyan = require('bunyan');
22
const got = require('got');
33

4-
const { BITBUCKET_USERNAME, BITBUCKET_PASSWORD, BITBUCKET_WORKSPACE, RENOVATE_BOT_USER } =
5-
process.env;
4+
const {
5+
BITBUCKET_USERNAME,
6+
BITBUCKET_PASSWORD,
7+
BITBUCKET_WORKSPACE,
8+
RENOVATE_BOT_USER,
9+
} = process.env;
610
const MANUAL_MERGE_MESSAGE = 'merge this manually';
711
const AUTO_MERGE_MESSAGE = '**Automerge**: Enabled.';
812

@@ -74,7 +78,12 @@ function approvePullRequest(prHref) {
7478
}
7579

7680
async function main() {
77-
if (!BITBUCKET_USERNAME || !BITBUCKET_PASSWORD || !BITBUCKET_WORKSPACE || !RENOVATE_BOT_USER) {
81+
if (
82+
!BITBUCKET_USERNAME ||
83+
!BITBUCKET_PASSWORD ||
84+
!BITBUCKET_WORKSPACE ||
85+
!RENOVATE_BOT_USER
86+
) {
7887
log.fatal(
7988
'At least one of BITBUCKET_USERNAME, BITBUCKET_PASSWORD, BITBUCKET_WORKSPACE, RENOVATE_BOT_USER environement variables is not set.'
8089
);

0 commit comments

Comments
 (0)