Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

run danger

gabcoelho edited this page Jan 7, 2021 · 3 revisions

This process is responsible for validating all PRs opened for Beagle. The purpose of this lane is verify if the pull request complies with all established rules to collaborate with Beagle.

You can see it more detailed in the Fastfile.

Fastlane

This lane will be executed every time a pull request event occurs in master branch.

Overview

The lane executes the action danger, passing the path to the Dangerfile, according to the context of the pull request.

For every pull request the Dangerfile:

  • Checks if the title contains the text [WIP] or if any PR label contains the text WIP. In this case, it issues an alert saying: PR is classed as Work in Progress
  • Checks the number of lines changed in the PR. If the number of lines is greater than 300, it issues an alert saying: Big PR
  • Checks if the number of lines changed in the PR is greater than 10 and if the description of the PR is less than two characters. In this case, issue an alert: Please provide a summary in the Pull Request description
  • Checks whether the PR title follows the semantic specification of Conventional Commits. If not, it fails with the following message: The title of PR does not follow the rules of: https://www.conventionalcommits.org/en/v1.0.0/