Merge pull request #161 from dependabot/v1.2.1-release-notes

V1.2.1 release notes
This commit is contained in:
Barry Gordon
2022-02-22 19:39:17 +00:00
committed by GitHub
3 changed files with 31 additions and 3 deletions

28
bin/bump-version Executable file
View File

@@ -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
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "dependabot-pull-request-action",
"version": "1.1.1",
"version": "1.2.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "dependabot-pull-request-action",
"version": "1.1.1",
"version": "1.2.1",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.6.0",

View File

@@ -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": {