Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/danger
AgeCommit message (Collapse)Author
2018-11-16Make the table of tech writers and stages more compactAchilleas Pipinellis
2018-11-12Proper markdown table in docs DangerfileAchilleas Pipinellis
2018-11-09Edits to docs DangerfileMike Lewis
2018-11-09Dangerbot: mention tech writers based on DevOps stageAchilleas Pipinellis
2018-11-07Warn when MR titles are too longYorick Peterse
This adds a Danger check to produce a warning for MR titles greater than 72 characters. This is necessary because when squash on merge is used, the MR title will be used for the commit message (at least by default). This in turn leads to commit messages that violate our commit message guidelines. For more information, refer to https://gitlab.com/gitlab-org/release/framework/issues/24.
2018-10-23Also count specs in new files in Danger checkSean McGivern
We have a Danger check that warns if you made changes in app/ but not in spec/. However, this only checked for changed files - not new files. If you added an app file with no specs, it wouldn't warn; and it would warn erroneously if you added a missing spec file while changing a file in app/.
2018-10-22Create helper to get all changed filesLukas Eipert
Danger apparently has three different objects which could contain files you often want to check: - git.added_files - git.modified_files - git.renamed_files The problem: If a file is renamed, `modified_files` contains the file path before the rename. In some Danger checks we use `added_files` + `modified_files`, which might contain the deleted paths of renamed files, but missing the new paths of renamed files. So we need to consider `renamed_files` as well.
2018-09-29Danger check for ignored eslint rulesLukas Eipert
We disabled a lot of eslint rules on a per-file basis. This checks touched files for those and reminds you to re-enable the rules and fix them.
2018-09-28Danger check for unprettified JavaScriptLukas Eipert
This adds a Dangerfile which executes `prettier` to find out if someone touched Frontend files and forgot to run it on their current branch.
2018-09-19Relax the subject line requirements for commitsYorick Peterse
This changes the hard limit of 50 to a soft limit of 50, with the new hard limit being 72 characters. This gives people a bit more space, while still (hopefully) guiding them towards subject lines that are roughly 50 characters long. Fixes https://gitlab.com/gitlab-org/release/framework/issues/16
2018-09-18Improve Emoji detection in commit messagesYorick Peterse
This changes our Danger integration so that it is smarter about detecting GitLab emoji in commit messages. This is done using a two step process: 1. We use the old regular expression to determine if a commit message _might_ include an emoji. 2. If this regular expression matches, we then check for all existing emoji names in the commit message. This might be a wee bit expensive, but because we couple it with the previous step it should be rarely executed. This ensures we don't trigger an error when a commit message includes text such as `:foo:bar:`, which is not a valid Emoji. Fixes https://gitlab.com/gitlab-org/release/framework/issues/15
2018-09-14Merge branch 'danger-commit-count' into 'master'Robert Speicher
Relax Danger requirements about changed lines Closes gitlab-org/release/framework#13 See merge request gitlab-org/gitlab-ce!21739
2018-09-14Fix typo in Danger messageLukas Eipert
2018-09-14Relax Danger requirements about changed linesYorick Peterse
This relaxes the commit rules regarding the number of changed lines. Previously we required a detailed description if 20 or more lines were changed. Starting with this commit we change the rules so Danger only notifies you about writing a detailed description if: 1. A commit changes more than 3 files 2. The same commit changes more than 30 lines This should make it easier to do a find replace to fix a typo, without having to repeat what the subject line already says, while still reminding developers to write a detailed description for new features and other larger changes. Fixes https://gitlab.com/gitlab-org/release/framework/issues/13
2018-09-10Added Danger file to lint commit messagesYorick Peterse
This Dangerfile ensures that commit authors write good commit messages. We also prevent the use of Emoji, since these add no value and may not always be displayed properly. Merge commits are currently ignored. In the future we most likely want to stop using these, but this is a separate discussion, hence we ignore them for the time being. The rules enforced by this Dangerfile are based on the article found at https://chris.beams.io/posts/git-commit/. For more information, refer to https://gitlab.com/gitlab-org/gitlab-ce/issues/50003. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/50003
2018-09-08Merge branch 'docs/dangerfile' into 'master'Mike Lewis
Add Documentation Dangerfile See merge request gitlab-org/gitlab-ce!21395
2018-09-06Add Documentation DangerfileAchilleas Pipinellis
Every time a doc change is made, a comment to ping the @gl-docsteam is added.
2018-09-04Fix wording in Danger warning about MRs to non-masterSean McGivern
If it's most of the time, then it's not all.
2018-08-24Drop WIP from changelog command in Danger commentWinnie Hellmann
2018-07-26Merge branch '49631-fix-dangerfile-schema-rb' into 'master'Rémy Coutable
Resolve "Dangerfile reporting that db/schema.rb wasn't updated" Closes #49631 See merge request gitlab-org/gitlab-ce!20852
2018-07-26Fix regexp for detected `db/schema.rb` and `ee/db/geo/schema.rb`Thong Kuah
2018-07-26Make the frozen_string Danger check more resilientRobert Speicher
It's possible for a Ruby file to be empty and thus `gets` returns `nil`. Also indents the Markdown since we're using `<<~` and removes an unneeded variable.
2018-07-24Add Dangerfile for frozen_string_literalgfyoung
Checks that new Ruby files will enable frozen string literal. Partially addresses #47424.
2018-07-17Improve danger/specs/Dangerfile by not requiring new specs if specific ↵Rémy Coutable
labels are applied Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-07-17Improve danger/changelog/Dangerfile to include the title in the ↵Rémy Coutable
bin/changelog command Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-07-13Use the correct exceptions to look for invalid YAML in ChangelogsGabriel Mazetto
2018-07-12Fix DangerfileStan Hu
2018-07-11Autocorrect RuboCop violations in danger/**/DangerfileRobert Speicher
2018-07-11Wrap DB paths in backticks in the Danger checkRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-07-11Fix "Database Team" typo for DangerYorick Peterse
2018-07-11Tweak the Danger settings for DB changesYorick Peterse
Instead of only checking for migrations, we now check for a variety of files and directories that require a database review. We also include some steps on how to make sure changes are reviewed.
2018-07-11Improve Danger files after first reviewRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-07-11Start to use Danger for automating MR reviewsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>