-
Clone this repository
git clone https://github.com/drone/drone-ui.git
-
Install dependencies
npm install
-
Copy .env.example and rename it into .env
cp .env.example .env.development.local
-
Fill required variables. For example:
REACT_APP_DRONE_SERVER=https://drone.company.com REACT_APP_DRONE_TOKEN=<your_drone_token>
npm run start
npm run build
npm run serve
npm run lint
npm run lint:fix
npm run test
We use Conventional Commits for commit messages. You can read more about Conventional Commits here. Here you can find a useful Conventional Commits Cheat Sheet.
We try to make our commits "atomic". Here and here you can read more about Atomic commits.
Run the changelog generator.
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone -p drone-ui -t <secret github token>
You can generate a token by logging into your GitHub account and going to Settings -> Personal access tokens.
Next we tag the PR's with the fixes or enhancements labels. If the PR does not fufil the requirements, do not add a label.
** Before moving on make sure to update the version in package.json
. **
Run the changelog generator again with the future version according to semver.
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone -p drone-ui -t <secret token> --future-release v1.0.0
Create your pull request for the release. Get it merged then tag the release.
Please reference the updated changelog in your PR to update Drone
with the latest UI SHA.