/
githubmirror
/
fastlane
Обзор
Документация
Войти
/
githubmirror
/
fastlane
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Dangerfile
29 строк
2 KB
Connor Tumbleson
[ci] drop CircleCI for GHA (#30108)
04 июл 2026, 22:24
Не верифицирован
04 июл 2026, 22:24
2fc4196
Код
Авторство
О чём код?
# We generally try to avoid big PRs warn("Big PR") if git.lines_of_code > 500 # Show a warning for PRs that are Work In Progress if (github.pr_body + github.pr_title).include?("WIP") warn("Pull Request is Work in Progress") end # Contributors should always provide a changelog when submitting a PR if github.pr_body.length < 5 warn("Please provide a changelog summary in the Pull Request description @#{github.pr_author}") end if git.modified_files.include?("snapshot/lib/assets/SnapshotHelper.swift") warn("You modified `SnapshotHelper.swift`, make sure to update the version number at the bottom of the file to notify users about the new helper file.") end if git.modified_files.include?("snapshot/lib/assets/SnapshotHelperXcode8.swift") warn("You modified `SnapshotHelperXcode8.swift`, make sure to update the version number at the bottom of the file to notify users about the new helper file.") end # PRs being made on a branch from a different owner should warn to allow maintainers access to modify head_owner = github.pr_json["head"]["repo"]["owner"]["login"] base_owner = github.pr_json["base"]["repo"]["owner"]["login"] if !github.pr_json["maintainer_can_modify"] && head_owner != base_owner warn("If you would allow the maintainers access to make changes to your branch that would be 💯 " \ "This allows maintainers to help move pull requests through quicker if there are any changes that they can help with 😊 " \ "See more info at https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork") end