diff --git a/.github/config.yml b/.github/config.yml deleted file mode 100644 index 04e92f6e6..000000000 --- a/.github/config.yml +++ /dev/null @@ -1,16 +0,0 @@ -# Comment to be posted on PRs from first-time contributors in your repository -newPRWelcomeComment: | - Thank you for opening this pull request! 🙌 - - These tips will help get your PR across the finish line: - - - Most of the repos have a PR template; if not, fill it out to the best of your knowledge. - - Sign off your commits (Reference: [DCO Guide](https://github.com/src-d/guide/blob/master/developer-community/fix-DCO.md)). - -# Comment to be posted to on pull requests merged by a first time user -firstPRMergeComment: > - Congrats on merging your first pull request! 🎉 - -# Comment to be posted on first-time issues -newIssueWelcomeComment: > - Thank you for opening your first issue here! 🛠 diff --git a/boilerplate/flyte/welcome_bot/Readme.rst b/boilerplate/flyte/welcome_bot/Readme.rst deleted file mode 100644 index 7b2ee0a21..000000000 --- a/boilerplate/flyte/welcome_bot/Readme.rst +++ /dev/null @@ -1,8 +0,0 @@ -Config File -- Welcome Bot -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Provides a ``config.yml`` file. - -**To Enable:** - -Add ``flyte/config.yml`` to your ``boilerplate/update.cfg`` file. diff --git a/boilerplate/flyte/welcome_bot/config.yml b/boilerplate/flyte/welcome_bot/config.yml deleted file mode 100644 index 04e92f6e6..000000000 --- a/boilerplate/flyte/welcome_bot/config.yml +++ /dev/null @@ -1,16 +0,0 @@ -# Comment to be posted on PRs from first-time contributors in your repository -newPRWelcomeComment: | - Thank you for opening this pull request! 🙌 - - These tips will help get your PR across the finish line: - - - Most of the repos have a PR template; if not, fill it out to the best of your knowledge. - - Sign off your commits (Reference: [DCO Guide](https://github.com/src-d/guide/blob/master/developer-community/fix-DCO.md)). - -# Comment to be posted to on pull requests merged by a first time user -firstPRMergeComment: > - Congrats on merging your first pull request! 🎉 - -# Comment to be posted on first-time issues -newIssueWelcomeComment: > - Thank you for opening your first issue here! 🛠 diff --git a/boilerplate/flyte/welcome_bot/update.sh b/boilerplate/flyte/welcome_bot/update.sh deleted file mode 100755 index a763d607b..000000000 --- a/boilerplate/flyte/welcome_bot/update.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. -# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: -# -# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst - -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" - -# Clone the config.yml file -echo " - copying ${DIR}/config.yml to the root directory." -cp "${DIR}"/config.yml "${DIR}"/../../../.github/config.yml diff --git a/boilerplate/update.cfg b/boilerplate/update.cfg deleted file mode 100644 index 58c9094fd..000000000 --- a/boilerplate/update.cfg +++ /dev/null @@ -1 +0,0 @@ -flyte/welcome_bot diff --git a/boilerplate/update.sh b/boilerplate/update.sh deleted file mode 100755 index 199bb1a77..000000000 --- a/boilerplate/update.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env bash - -# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. -# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: -# -# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst - -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" - -OUT="$(mktemp -d)" -trap 'rm -fr $OUT' EXIT - -git clone https://github.com/flyteorg/boilerplate.git "${OUT}" - -echo "Updating the update.sh script." -cp "${OUT}/boilerplate/update.sh" "${DIR}/update.sh" - -CONFIG_FILE="${DIR}/update.cfg" -README="https://github.com/flyteorg/boilerplate/blob/master/Readme.rst" - -if [ ! -f "$CONFIG_FILE" ]; then - echo "$CONFIG_FILE not found." - echo "This file is required in order to select which features to include." - echo "See $README for more details." - exit 1 -fi - -if [ -z "$REPOSITORY" ]; then - echo "$REPOSITORY is required to run this script" - echo "See $README for more details." - exit 1 -fi - -while read -r directory junk; do - # Skip comment lines (which can have leading whitespace) - if [[ "$directory" == '#'* ]]; then - continue - fi - # Skip blank or whitespace-only lines - if [[ "$directory" == "" ]]; then - continue - fi - # Lines like - # valid/path other_junk - # are not acceptable, unless `other_junk` is a comment - if [[ "$junk" != "" ]] && [[ "$junk" != '#'* ]]; then - echo "Invalid config! Only one directory is allowed per line. Found '$junk'" - exit 1 - fi - - dir_path="${OUT}/boilerplate/${directory}" - # Make sure the directory exists - if ! [[ -d "$dir_path" ]]; then - echo "Invalid boilerplate directory: '$directory'" - exit 1 - fi - - echo "***********************************************************************************" - echo "$directory is configured in update.cfg." - echo "-----------------------------------------------------------------------------------" - echo "syncing files from source." - rm -rf "${DIR:?}/${directory}" - mkdir -p "$(dirname "${DIR}"/"${directory}")" - cp -r "$dir_path" "${DIR}/${directory}" - if [ -f "${DIR}/${directory}/update.sh" ]; then - echo "executing ${DIR}/${directory}/update.sh" - "${DIR}/${directory}/update.sh" - fi - echo "***********************************************************************************" - echo "" -done < "$CONFIG_FILE"