From 7d640f84c6905dd7a2e68fd8c4c5c8c13027d4f5 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 14 Mar 2024 09:22:32 +0100 Subject: [PATCH] ci: autoblack is now a github workflow --- .gitlab/ci/bot.gitlab-ci.yml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.gitlab/ci/bot.gitlab-ci.yml b/.gitlab/ci/bot.gitlab-ci.yml index fe178eeb9..b92c9fe0b 100644 --- a/.gitlab/ci/bot.gitlab-ci.yml +++ b/.gitlab/ci/bot.gitlab-ci.yml @@ -26,26 +26,6 @@ generate-helpers-doc: only: - tags -black: - stage: bot - image: "before-install" - needs: [] - before_script: - - git config --global user.email "yunohost@yunohost.org" - - git config --global user.name "$GITHUB_USER" - - hub clone --branch ${CI_COMMIT_REF_NAME} "https://$GITHUB_TOKEN:x-oauth-basic@github.com/YunoHost/yunohost.git" github_repo - - cd github_repo - script: - # create a local branch that will overwrite distant one - - git checkout -b "ci-format-${CI_COMMIT_REF_NAME}" --no-track - - tox -e py311-black-run - - '[ $(git diff | wc -l) != 0 ] || exit 0' # stop if there is nothing to commit - - git commit -am "[CI] Format code with Black" || true - - git push -f origin "ci-format-${CI_COMMIT_REF_NAME}":"ci-format-${CI_COMMIT_REF_NAME}" - - hub pull-request -m "[CI] Format code with Black" -b Yunohost:dev -p || true # GITHUB_USER and GITHUB_TOKEN registered here https://gitlab.com/yunohost/yunohost/-/settings/ci_cd - only: - - tags - autofix-translated-strings: stage: bot image: "before-install"