This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/.circleci/PR_changelong

35 lines
980 B
Text
Raw Normal View History

2019-04-03 04:23:55 +00:00
#!/usr/bin/env bash
## This script ensures that changelog file was updated.
##
## Copyright (c) 2012-2014 Sylvain Benner
## Copyright (c) 2014-2018 Sylvain Benner & Contributors
##
## Author: Eugene Yaremenko
## URL: https://github.com/syl20bnr/spacemacs
##
## This file is not part of GNU Emacs.
##
## License: GPLv3
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${DIR}/shared"
2020-03-05 10:27:24 +00:00
## This seems to bug out when someone has a CircleCI setup at the source fork.
# if [[ -z "${CIRCLE_PR_NUMBER// }" ]]; then
# echo "Skipping changelogs check for branch update."
# exit 0
# fi
2019-04-03 04:23:55 +00:00
if [[ "$CIRCLE_PR_USERNAME" == "emacspace" ]]; then
echo "Fun fact. Bots can't climb stairs or update CHANGELOG.develop"
exit 0
fi
2019-04-03 04:23:55 +00:00
if grep -q CHANGELOG.develop /tmp/changed_files; then
echo "CHANGELOG.develop was updated as required"
else
2019-04-25 23:05:56 +00:00
echo "Please mention your contribution in CHANGELOG.develop"
2019-04-03 04:23:55 +00:00
echo "See CONTRIBUTING.org for the details."
exit 1
fi