Skip to content

Commit be6cdf2

Browse files
authored
Merge pull request #58 from moderation-api/speakeasy/regenerate
feat: v3.1.0, API changes
2 parents 5e2e9ce + fa1544e commit be6cdf2

144 files changed

Lines changed: 16635 additions & 1362 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/publish-gem.yml‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Maintained in moderation-api/sdk-generator (custom/ruby). Edits here are overwritten.
22
# Every push to main whose package version has no release tag yet publishes
3-
# that version and creates the GitHub release (notes: .github/release-notes/vX.Y.Z.md
4-
# if present, otherwise generated from the merged pull requests).
3+
# that version and creates the GitHub release (notes: the CHANGELOG.md entry).
54
name: Publish Gem
65
on:
76
push:
@@ -44,8 +43,14 @@ jobs:
4443
env:
4544
GH_TOKEN: ${{ github.token }}
4645
run: |
47-
notes=".github/release-notes/v${VERSION}.md"
48-
if [ -f "$notes" ]; then
46+
# Notes: the CHANGELOG.md entry of this version, then the release notes file,
47+
# then the merged pull requests.
48+
notes="$RUNNER_TEMP/notes.md"
49+
awk -v v="$VERSION" 'index($0, "## " v " (") == 1 {f = 1; next} f && /^## / {exit} f' CHANGELOG.md > "$notes" || true
50+
if [ ! -s "$notes" ] && [ -f ".github/release-notes/v${VERSION}.md" ]; then
51+
cp ".github/release-notes/v${VERSION}.md" "$notes"
52+
fi
53+
if [ -s "$notes" ]; then
4954
gh release create "v${VERSION}" --target "$GITHUB_SHA" --title "v${VERSION}" --notes-file "$notes"
5055
else
5156
gh release create "v${VERSION}" --target "$GITHUB_SHA" --title "v${VERSION}" --generate-notes

‎.speakeasy/gen.lock‎

Lines changed: 162 additions & 120 deletions
Large diffs are not rendered by default.

‎.speakeasy/gen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ generation:
3232
generateNewTests: true
3333
skipResponseBodyAssertions: false
3434
ruby:
35-
version: 3.0.0
35+
version: 3.1.0
3636
additionalDependencies:
3737
development: {}
3838
runtime: {}

0 commit comments

Comments
 (0)