Skip to content

Commit

Permalink
Merge pull request #161 from dependabot/v1.2.1-release-notes
Browse files Browse the repository at this point in the history
V1.2.1 release notes
  • Loading branch information
brrygrdn committed Feb 22, 2022
2 parents 8e0cbe5 + cf742d5 commit 2354b3f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
28 changes: 28 additions & 0 deletions bin/bump-version
@@ -0,0 +1,28 @@
#!/bin/bash

usage() { echo "Usage: $0 -p [major | minor | patch]" 1>&2; exit 1; }

while getopts "p:" o; do
case "${o}" in
p)
patch_level=${OPTARG}
(( patch_level == 'major' || patch_level == 'minor' || patch_level == 'patch'))
;;
*)
usage
;;
esac
done

echo "$patch_level"

if [[ -z "${patch_level}" ]]; then
usage
fi

new_version=$(npm version "${patch_level}" --no-git-tag-version)
git checkout -b "${new_version}"-release-notes
git add package.json package-lock.json
git commit -m "${new_version}"

echo "Branch prepared for ${new_version}"
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "dependabot-pull-request-action",
"version": "1.1.1",
"version": "1.2.1",
"description": "Parse Dependabot commit metadata to automate PR handling",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 2354b3f

Please sign in to comment.