JSPM

bitbucket-translate-bot

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q21724F
  • License MIT

Bot to run on CI server to post missing translatable strings on Bitbucket PRs

Package Exports

  • bitbucket-translate-bot

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bitbucket-translate-bot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Bitbucket Translate Bot

Bot to run on CI server to post missing translations on Bitbucket PRs

Install

yarn add bitbucket-translate-bot --dev or npm install bitbucket-translate-bot --save-dev

Config

Most configs can be passed as command line options/env vars

- bitbucketUrl/BITBUCKET_URL - Base URL of bitbucket to POST to eg https://bitbucket.test.com
- jobName/JOB_NAME - auto injected Jenkins job name - can extract repository + pullRequestID if setup correctly
- password/BITBUCKET_PASSWORD - Bitbucket password for user to post comments. Be careful. 
- project/BITBUCKET_PROJECT - Bitbucket project name eg 'APP'
- pullRequestID/PULL_REQUEST_ID - Numeric ID of pull request in Bitbucket
- repository/BITBUCKET_REPOSITORY - Bitbucket repository name eg 'test-project'
- userBITBUCKET_USER - Bitbucket user to post comments eg 'tabrindle'

- debug - Print console statements before POSTs 

Example