Skip to content

Commit

Permalink
Merge pull request #1379 from cloudflare/bump-deps
Browse files Browse the repository at this point in the history
Bump deps
  • Loading branch information
jacobbednarz authored Jan 13, 2022
2 parents cccf340 + 12dfbed commit 0a82a00
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/1380.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:dependency
`github.com/cloudflare/cloudflare-go` v0.29.0 => v0.30.0
```
4 changes: 4 additions & 0 deletions docs/changelog-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ Use resource/datasource/provider prefixes where appropriate.
```release-note:note
resource/cloudflare_example: Example resource now does X slightly differently
```

```release-note:dependency
`cloudflare-go` v0.1.0 => v0.1.1
```
``````

#### Changes that should _not_ have a CHANGELOG entry
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/aws/aws-sdk-go v1.40.35 // indirect
github.com/bflad/tfproviderlint v0.27.1
github.com/client9/misspell v0.3.4
github.com/cloudflare/cloudflare-go v0.29.0
github.com/cloudflare/cloudflare-go v0.30.0
github.com/fatih/color v1.13.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golangci/golangci-lint v1.43.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5P
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cloudflare/cloudflare-go v0.29.0 h1:fSu7zk3SDjBZOG7BKmIX+SYacYKWuQuALao67vsnofA=
github.com/cloudflare/cloudflare-go v0.29.0/go.mod h1:B55yGpU9NdzhWPYu0CDq8smftKrqB/PSDQAdIBEKApw=
github.com/cloudflare/cloudflare-go v0.30.0 h1:ho2ObQ1iZfjMqP9RcovvT1Jwp/ZW4Ji5baWVwl2T//A=
github.com/cloudflare/cloudflare-go v0.30.0/go.mod h1:B55yGpU9NdzhWPYu0CDq8smftKrqB/PSDQAdIBEKApw=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
Expand Down
8 changes: 8 additions & 0 deletions scripts/changelog.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@ BUG FIXES:
{{ template "note" . }}
{{ end -}}
{{- end -}}

{{- if .NotesByType.dependency }}
DEPENDENCIES:

{{range .NotesByType.dependency | sort -}}
{{ template "note" . }}
{{ end -}}
{{- end -}}
36 changes: 36 additions & 0 deletions scripts/generate-changelog-entry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
#
# Generate a changelog entry for a proposed PR by grabbing the next available
# auto incrementing ID in GitHub.

if ! command -v curl &> /dev/null
then
echo "jq not be found"
exit 1
fi

if ! command -v jq &> /dev/null
then
echo "jq not be found"
exit 1
fi

current_pr=$(curl -s "https://api.github.com/repos/cloudflare/terraform-provider-cloudflare/issues?state=all&per_page=1" | jq -r ".[].number")
next_pr=$(($current_pr + 1))
changelog_path=".changelog/$next_pr.txt"

echo "==> What type of change is this? (enhancement, bug, breaking-change, new-resource, new-data-source, new-guide)"
read entry_type

echo "==> What is the summary of this change? Example: resource/example: made a change to CRUD operations"
read entry_summary

touch $(pwd)/$changelog_path
cat > $(pwd)/$changelog_path <<EOF
\`\`\`release-note:$entry_type
$entry_summary
\`\`\`
EOF

echo
echo "Successfully created $changelog_path. Don't forget to commit it and open the PR!"

0 comments on commit 0a82a00

Please sign in to comment.