From dcf62ce064f9b7cb18cb8f2b4345489c10418f19 Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Mon, 8 Aug 2022 15:47:16 -0500 Subject: [PATCH 1/6] init push for adding changie to redshift --- .changes/0.0.0.md | 5 + .changes/1.3.0-b1.md | 4 + .../1.3.0/Under the Hood-20220808-154422.yaml | 7 ++ .changes/README.md | 3 + .changes/header.tpl.md | 6 + .changes/unreleased/.gitkeep | 0 .../unreleased/Fixes-20220808-154635.yaml | 7 ++ .changie.yaml | 60 ++++++++++ .github/pull_request_template.md | 2 +- .github/workflows/bot-changelog.yml | 62 ++++++++++ .github/workflows/changelog-existence.yml | 41 +++++++ CHANGELOG.md | 111 ++---------------- CONTRIBUTING.MD | 9 ++ prev-CHANGELOG.md | 10 ++ 14 files changed, 228 insertions(+), 99 deletions(-) create mode 100644 .changes/0.0.0.md create mode 100644 .changes/1.3.0-b1.md create mode 100644 .changes/1.3.0/Under the Hood-20220808-154422.yaml create mode 100644 .changes/README.md create mode 100644 .changes/header.tpl.md create mode 100644 .changes/unreleased/.gitkeep create mode 100644 .changes/unreleased/Fixes-20220808-154635.yaml create mode 100644 .changie.yaml create mode 100644 .github/workflows/bot-changelog.yml create mode 100644 .github/workflows/changelog-existence.yml create mode 100644 prev-CHANGELOG.md diff --git a/.changes/0.0.0.md b/.changes/0.0.0.md new file mode 100644 index 000000000..53bfa7f5f --- /dev/null +++ b/.changes/0.0.0.md @@ -0,0 +1,5 @@ +## Previous Releases +For information on prior major and minor releases, see their changelogs: +- [1.2](https://github.com/dbt-labs/dbt-redshift/blob/1.2.latest/CHANGELOG.md) +- [1.1](https://github.com/dbt-labs/dbt-redshift/blob/1.1.latest/CHANGELOG.md) +- [1.0](https://github.com/dbt-labs/dbt-redshift/blob/1.0.latest/CHANGELOG.md) diff --git a/.changes/1.3.0-b1.md b/.changes/1.3.0-b1.md new file mode 100644 index 000000000..11f0539d9 --- /dev/null +++ b/.changes/1.3.0-b1.md @@ -0,0 +1,4 @@ +## dbt-redshift 1.3.0-b1 - August 08, 2022 +### Under the Hood +- Rename compiled_sql to compiled_code. ([#150](https://github.com/dbt-labs/dbt-redshift/issues/150), [#145](https://github.com/dbt-labs/dbt-redshift/pull/145)) + diff --git a/.changes/1.3.0/Under the Hood-20220808-154422.yaml b/.changes/1.3.0/Under the Hood-20220808-154422.yaml new file mode 100644 index 000000000..eae550186 --- /dev/null +++ b/.changes/1.3.0/Under the Hood-20220808-154422.yaml @@ -0,0 +1,7 @@ +kind: Under the Hood +body: Rename compiled_sql to compiled_code. +time: 2022-08-08T15:44:22.161657-05:00 +custom: + Author: jtcohen6 + Issue: "150" + PR: "145" diff --git a/.changes/README.md b/.changes/README.md new file mode 100644 index 000000000..6fd5866b8 --- /dev/null +++ b/.changes/README.md @@ -0,0 +1,3 @@ +# CHANGELOG + +To view information about the changelog operation we suggest reading this [README](https://github.com/dbt-labs/dbt-redshift/blob/main/.changes/README.md) found in `dbt-redshift`. diff --git a/.changes/header.tpl.md b/.changes/header.tpl.md new file mode 100644 index 000000000..d77a00b69 --- /dev/null +++ b/.changes/header.tpl.md @@ -0,0 +1,6 @@ +# dbt-redshift Changelog + +- This file provides a full account of all changes to `dbt-redshift`. +- Changes are listed under the (pre)release in which they first appear. Subsequent releases include changes from previous releases. +- "Breaking changes" listed under a version may require action from end users or external maintainers when upgrading to that version. +- Do not edit this file directly. This file is auto-generated using [changie](https://github.com/miniscruff/changie). For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-redshift/blob/main/CONTRIBUTING.md#adding-changelog-entry) diff --git a/.changes/unreleased/.gitkeep b/.changes/unreleased/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/.changes/unreleased/Fixes-20220808-154635.yaml b/.changes/unreleased/Fixes-20220808-154635.yaml new file mode 100644 index 000000000..996951570 --- /dev/null +++ b/.changes/unreleased/Fixes-20220808-154635.yaml @@ -0,0 +1,7 @@ +kind: Fixes +body: Avoid truncating Redshift model names with more than 63 characters +time: 2022-08-08T15:46:35.850848-05:00 +custom: + Author: Goodkat + Issue: "5586" + PR: "147" diff --git a/.changie.yaml b/.changie.yaml new file mode 100644 index 000000000..5b9f48626 --- /dev/null +++ b/.changie.yaml @@ -0,0 +1,60 @@ +changesDir: .changes +unreleasedDir: unreleased +headerPath: header.tpl.md +versionHeaderPath: "" +changelogPath: CHANGELOG.md +versionExt: md +versionFormat: '## dbt-redshift {{.Version}} - {{.Time.Format "January 02, 2006"}}' +kindFormat: '### {{.Kind}}' +changeFormat: '- {{.Body}} ([#{{.Custom.Issue}}](https://github.com/dbt-labs/dbt-redshift/issues/{{.Custom.Issue}}), [#{{.Custom.PR}}](https://github.com/dbt-labs/dbt-redshift/pull/{{.Custom.PR}}))' +kinds: +- label: Breaking Changes +- label: Features +- label: Fixes +- label: Under the Hood +- label: Dependencies +- label: Security +custom: +- key: Author + label: GitHub Username(s) (separated by a single space if multiple) + type: string + minLength: 3 +- key: Issue + label: GitHub Issue Number + type: int + minLength: 4 +- key: PR + label: GitHub Pull Request Number + type: int + minLength: 4 +footerFormat: | + {{- $contributorDict := dict }} + {{- /* any names added to this list should be all lowercase for later matching purposes */}} + {{- $core_team := list "emmyoop" "nathaniel-may" "gshank" "leahwicz" "chenyulinx" "stu-k" "iknox-fa" "versusfacit" "mcknight-42" "jtcohen6" "dependabot[bot]" "snyk-bot" }} + {{- range $change := .Changes }} + {{- $authorList := splitList " " $change.Custom.Author }} + {{- /* loop through all authors for a PR */}} + {{- range $author := $authorList }} + {{- $authorLower := lower $author }} + {{- /* we only want to include non-core team contributors */}} + {{- if not (has $authorLower $core_team)}} + {{- $pr := $change.Custom.PR }} + {{- /* check if this contributor has other PRs associated with them already */}} + {{- if hasKey $contributorDict $author }} + {{- $prList := get $contributorDict $author }} + {{- $prList = append $prList $pr }} + {{- $contributorDict := set $contributorDict $author $prList }} + {{- else }} + {{- $prList := list $change.Custom.PR }} + {{- $contributorDict := set $contributorDict $author $prList }} + {{- end }} + {{- end}} + {{- end}} + {{- end }} + {{- /* no indentation here for formatting so the final markdown doesn't have unneeded indentations */}} + {{- if $contributorDict}} + ### Contributors + {{- range $k,$v := $contributorDict }} + - [@{{$k}}](https://github.com/{{$k}}) ({{ range $index, $element := $v }}{{if $index}}, {{end}}[#{{$element}}](https://github.com/dbt-labs/dbt-redshift/pull/{{$element}}){{end}}) + {{- end }} + {{- end }} diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index b99e90e57..db2d8cb75 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -18,4 +18,4 @@ resolves # - [ ] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [ ] I have run this code in development and it appears to resolve the stated issue - [ ] This PR includes tests, or tests are not required/relevant for this PR -- [ ] I have updated the `CHANGELOG.md` and added information about my change to the "dbt-redshift next" section. +- [ ] I have run `changie new` to [create a changelog entry](https://github.com/dbt-labs/dbt-redshift/blob/main/CONTRIBUTING.md#Adding-CHANGELOG-Entry) diff --git a/.github/workflows/bot-changelog.yml b/.github/workflows/bot-changelog.yml new file mode 100644 index 000000000..e9cf7f961 --- /dev/null +++ b/.github/workflows/bot-changelog.yml @@ -0,0 +1,62 @@ +# **what?** +# When bots create a PR, this action will add a corresponding changie yaml file to that +# PR when a specific label is added. +# +# The file is created off a template: +# +# kind: +# body: +# time: +# custom: +# Author: +# Issue: 4904 +# PR: +# +# **why?** +# Automate changelog generation for more visability with automated bot PRs. +# +# **when?** +# Once a PR is created, label should be added to PR before or after creation. You can also +# manually trigger this by adding the appropriate label at any time. +# +# **how to add another bot?** +# Add the label and changie kind to the include matrix. That's it! +# + +name: Bot Changelog + +on: + pull_request: + # catch when the PR is opened with the label or when the label is added + types: [opened, labeled] + +permissions: + contents: write + pull-requests: read + +jobs: + generate_changelog: + strategy: + matrix: + include: + - label: "dependencies" + changie_kind: "Dependency" + - label: "snyk" + changie_kind: "Security" + runs-on: ubuntu-latest + + steps: + + - name: Create and commit changelog on bot PR + if: "contains(github.event.pull_request.labels.*.name, ${{ matrix.label }})" + id: bot_changelog + uses: emmyoop/changie_bot@v1.0 + with: + GITHUB_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} + commit_author_name: "Github Build Bot" + commit_author_email: "" + commit_message: "Add automated changelog yaml from template for bot PR" + changie_kind: ${{ matrix.changie_kind }} + label: ${{ matrix.label }} + custom_changelog_string: "custom:\n Author: ${{ github.event.pull_request.user.login }}\n Issue: 216\n PR: ${{ github.event.pull_request.number }}\n" + \ No newline at end of file diff --git a/.github/workflows/changelog-existence.yml b/.github/workflows/changelog-existence.yml new file mode 100644 index 000000000..10b5a497a --- /dev/null +++ b/.github/workflows/changelog-existence.yml @@ -0,0 +1,41 @@ +# **what?** +# Checks that a file has been committed under the /.changes directory +# as a new CHANGELOG entry. Cannot check for a specific filename as +# it is dynamically generated by change type and timestamp. +# This workflow should not require any secrets since it runs for PRs +# from forked repos. +# By default, secrets are not passed to workflows running from +# a forked repo. + +# **why?** +# Ensure code change gets reflected in the CHANGELOG. + +# **when?** +# This will run for all PRs going into main and *.latest. It will +# run when they are opened, reopened, when any label is added or removed +# and when new code is pushed to the branch. The action will then get +# skipped if the 'Skip Changelog' label is present is any of the labels. + +name: Check Changelog Entry + +on: + pull_request: + types: [opened, reopened, labeled, unlabeled, synchronize] + workflow_dispatch: + +defaults: + run: + shell: bash + +permissions: + contents: read + pull-requests: write + + +jobs: + changelog: + uses: dbt-labs/actions/.github/workflows/changelog-existence.yml@main + with: + changelog_comment: 'Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the [dbt-redshift contributing guide](https://github.com/dbt-labs/dbt-redshift/blob/main/CONTRIBUTING.MD).' + skip_label: 'Skip Changelog' + secrets: inherit # this is only acceptable because we own the action we're calling diff --git a/CHANGELOG.md b/CHANGELOG.md index d4dee5d56..09b1d92f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,102 +1,17 @@ -## dbt-redshift 1.3.0b2 (Release TBD) +# dbt-redshift Changelog -### Fixes -- Avoid truncating Redshift model names with more than 63 characters([#147](https://github.com/dbt-labs/dbt-redshift/pull/147)) +- This file provides a full account of all changes to `dbt-redshift`. +- Changes are listed under the (pre)release in which they first appear. Subsequent releases include changes from previous releases. +- "Breaking changes" listed under a version may require action from end users or external maintainers when upgrading to that version. +- Do not edit this file directly. This file is auto-generated using [changie](https://github.com/miniscruff/changie). For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-redshift/blob/main/CONTRIBUTING.md#adding-changelog-entry) -## dbt-redshift 1.3.0b1 (July 29, 2022) +## dbt-redshift 1.3.0-b1 - July 29 2022 -### Under the hood -- Rename compiled_sql to compiled_code ([#145](https://github.com/dbt-labs/dbt-redshift/pull/145)) +### Under the Hood +- Rename compiled_sql to compiled_code. ([#150](https://github.com/dbt-labs/dbt-redshift/issues/150), [#145](https://github.com/dbt-labs/dbt-redshift/pull/145)) -## dbt-redshift 1.2.0b1 (July 12, 2022) - -### Features -- Add grants to materializations ([#128](https://github.com/dbt-labs/dbt-redshift/issues/128), [#131](https://github.com/dbt-labs/dbt-redshift/pull/131)) - -## dbt-redshift 1.2.0b1 (June 24, 2022) - -### Under the hood -- Lift + shift for cross-db macros ([#120](https://github.com/dbt-labs/dbt-redshift/pull/120)) -- Remove duplicated parts of unit test ([#100](https://github.com/dbt-labs/dbt-redshift/pull/100)) - -### Contributors -- [@dbeatty10](https://github.com/dbeatty10) ([#120](https://github.com/dbt-labs/dbt-redshift/pull/120)) - -## dbt-redshift 1.1.0 (April 28, 2022) - -### Under the hood -- Add precommits for this repo ([#72](https://github.com/dbt-labs/dbt-redshift/issues/72), [#106](https://github.com/dbt-labs/dbt-redshift/pull/106)) - -## dbt-redshift 1.0.1 (April 19, 2022) - -### Fixes -- Fix table creation statement ordering when including both the BACKUP parameter as well as the dist/sort keys ([#60](https://github.com/dbt-labs/dbt-redshift/issues/60), [#63](https://github.com/dbt-labs/dbt-redshift/pull/63)) - -### Under the hood -- Install compatible branch of dbt-core in unit/integration tests based on merge target ([#80](https://github.com/dbt-labs/dbt-redshift/pull/80)) -- Fix test related to preventing coercion of boolean values (True,False) to numeric values (0,1) in query results ([#58](https://github.com/dbt-labs/dbt-redshift/pull/58)) - -### Contributors -- [@SMeltser](https://github.com/SMeltser) ([#63](https://github.com/dbt-labs/dbt-redshift/pull/63)) - -## dbt-redshift 1.1.0rc1 (April 13, 2022) - -### Under the hood -- Use dbt.tests.adapter.basic in test suite ([#78](https://github.com/dbt-labs/dbt-redshift/issues/78), [#81](https://github.com/dbt-labs/dbt-redshift/pull/81)) - -## dbt-redshift 1.0.1rc1 (April 6, 2022) - -### Fixes -- Fix table creation statement ordering when including both the BACKUP parameter as well as the dist/sort keys ([#60](https://github.com/dbt-labs/dbt-redshift/issues/60), [#63](https://github.com/dbt-labs/dbt-redshift/pull/63)) - -### Under the hood -- Install compatible branch of dbt-core in unit/integration tests based on merge target ([#80](https://github.com/dbt-labs/dbt-redshift/pull/80)) -- Fix test related to preventing coercion of boolean values (True,False) to numeric values (0,1) in query results ([#58](https://github.com/dbt-labs/dbt-redshift/pull/58)) - -### Contributors -- [@SMeltser](https://github.com/SMeltser) ([#63](https://github.com/dbt-labs/dbt-redshift/pull/63)) - -## dbt-redshift 1.1.0b1 (March 23, 2022) - -### Fixes -- Fix test related to preventing coercion of boolean values (True,False) to numeric values (0,1) in query results ([#58](https://github.com/dbt-labs/dbt-redshift/pull/58)) -- Fix table creation statement ordering when including both the BACKUP parameter as well as the dist/sort keys ([#23](https://github.com/dbt-labs/dbt-redshift/issues/60)),([#63](https://github.com/dbt-labs/dbt-redshift/pull/63)) -- Add unique\_id field to docs generation test catalogs; a follow-on PR to core PR ([#4168](https://github.com/dbt-labs/dbt-core/pull/4618)) and core PR ([#4701](https://github.com/dbt-labs/dbt-core/pull/4701)) - -### Under the hood -- Removes unused installs of dbt-core outside of tox env as it clutters up gha and can lead to misunderstanding of which version of dbt-core is being installed.([#90](https://github.com/dbt-labs/dbt-redshift/pull/90)) -- Add stale pr/issue github action ([#65](https://github.com/dbt-labs/dbt-redshift/pull/65)) -- Add env example file ([#69](https://github.com/dbt-labs/dbt-redshift/pull/69)) - -### Contributors -- [@SMeltser](https://github.com/SMeltser)([#63](https://github.com/dbt-labs/dbt-redshift/pull/63)) - -## dbt-redshift 1.0.0 (December 3, 2021) - -## dbt-redshift 1.0.0rc2 (November 24, 2021) - -### Under the hood -- Add optional Redshift parameter to create tables with BACKUP NO set, to exclude them from snapshots. ([#18](https://github.com/dbt-labs/dbt-redshift/issues/18), [#42](https://github.com/dbt-labs/dbt-redshift/pull/42)) - -### Contributors -- [@dlb8685](https://github.com/dlb8685) ([#42](https://github.com/dbt-labs/dbt-redshift/pull/42)) - -## dbt-redshift 1.0.0rc1 (November 10, 2021) - -### Under the hood -- Remove official support for python 3.6, which is reaching end of life on December 23, 2021 ([dbt-core#4134](https://github.com/dbt-labs/dbt-core/issues/4134), [#38](https://github.com/dbt-labs/dbt-redshift/pull/38)) -- Add support for structured logging [#34](https://github.com/dbt-labs/dbt-redshift/pull/34) - -## dbt-redshift v1.0.0b2 (October 25, 2021) - -### Under the hood -- Replace `sample_profiles.yml` with `profile_template.yml`, for use with new `dbt init` ([#29](https://github.com/dbt-labs/dbt-redshift/pull/29)) - -### Contributors -- [@NiallRees](https://github.com/NiallRees) ([#29](https://github.com/dbt-labs/dbt-redshift/pull/29)) - -## dbt-redshift v1.0.0b1 (October 11, 2021) - -### Under the hood - -- Initial adapter split out +## Previous Releases +For information on prior major and minor releases, see their changelogs: +- [1.2](https://github.com/dbt-labs/dbt-redshift/blob/1.2.latest/CHANGELOG.md) +- [1.1](https://github.com/dbt-labs/dbt-redshift/blob/1.1.latest/CHANGELOG.md) +- [1.0](https://github.com/dbt-labs/dbt-redshift/blob/1.0.latest/CHANGELOG.md) diff --git a/CONTRIBUTING.MD b/CONTRIBUTING.MD index b27a34cf0..b33972697 100644 --- a/CONTRIBUTING.MD +++ b/CONTRIBUTING.MD @@ -95,6 +95,15 @@ Many changes will require an update to the `dbt-redshift` docs. If so, here are - The changes made are likely to impact one or both of [Redshift Profile](https://docs.getdbt.com/reference/warehouse-profiles/redshift-profile), or [Redshift Configs](https://docs.getdbt.com/reference/resource-configs/redshift-configs). - We ask every community member who makes a user-facing change to open an issue or PR regarding doc changes. +## Adding CHANGELOG Entry + +We use [changie](https://changie.dev) to generate `CHANGELOG` entries. **Note:** Do not edit the `CHANGELOG.md` directly. Your modifications will be lost. + +Follow the steps to [install `changie`](https://changie.dev/guide/installation/) for your system. + +Once changie is installed and your PR is created, simply run `changie new` and changie will walk you through the process of creating a changelog entry. Commit the file that's created and your changelog entry is complete! + +You don't need to worry about which `dbt-redshift` version your change will go into. Just create the changelog entry with `changie`, and open your PR against the `main` branch. All merged changes will be included in the next minor version of `dbt-redshift`. The Core maintainers _may_ choose to "backport" specific changes in order to patch older minor versions. In that case, a maintainer will take care of that backport after merging your PR, before releasing the new version of `dbt-redshift`. ## Submitting a Pull Request diff --git a/prev-CHANGELOG.md b/prev-CHANGELOG.md new file mode 100644 index 000000000..1217f4ce9 --- /dev/null +++ b/prev-CHANGELOG.md @@ -0,0 +1,10 @@ +## dbt-redshift 1.3.0b2 (Release TBD) + +### Fixes +- Avoid truncating Redshift model names with more than 63 characters([#147](https://github.com/dbt-labs/dbt-redshift/pull/147)) + +## dbt-redshift 1.3.0b1 (July 29, 2022) + +### Under the hood +- Rename compiled_sql to compiled_code ([#145](https://github.com/dbt-labs/dbt-redshift/pull/145)) + From d9663c728e96af331bccee31b1cbf59fc97c4dd1 Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Mon, 8 Aug 2022 15:50:34 -0500 Subject: [PATCH 2/6] add changelog and run pre-commit --- .changes/1.3.0-b1.md | 1 - .changes/unreleased/Features-20220808-154918.yaml | 7 +++++++ .github/workflows/bot-changelog.yml | 1 - prev-CHANGELOG.md | 1 - 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .changes/unreleased/Features-20220808-154918.yaml diff --git a/.changes/1.3.0-b1.md b/.changes/1.3.0-b1.md index 11f0539d9..c8b5b2997 100644 --- a/.changes/1.3.0-b1.md +++ b/.changes/1.3.0-b1.md @@ -1,4 +1,3 @@ ## dbt-redshift 1.3.0-b1 - August 08, 2022 ### Under the Hood - Rename compiled_sql to compiled_code. ([#150](https://github.com/dbt-labs/dbt-redshift/issues/150), [#145](https://github.com/dbt-labs/dbt-redshift/pull/145)) - diff --git a/.changes/unreleased/Features-20220808-154918.yaml b/.changes/unreleased/Features-20220808-154918.yaml new file mode 100644 index 000000000..e83a96e02 --- /dev/null +++ b/.changes/unreleased/Features-20220808-154918.yaml @@ -0,0 +1,7 @@ +kind: Features +body: Add changie to dbt-redshift +time: 2022-08-08T15:49:18.191673-05:00 +custom: + Author: mcknight-42 + Issue: "151" + PR: "152" diff --git a/.github/workflows/bot-changelog.yml b/.github/workflows/bot-changelog.yml index e9cf7f961..2a141f849 100644 --- a/.github/workflows/bot-changelog.yml +++ b/.github/workflows/bot-changelog.yml @@ -59,4 +59,3 @@ jobs: changie_kind: ${{ matrix.changie_kind }} label: ${{ matrix.label }} custom_changelog_string: "custom:\n Author: ${{ github.event.pull_request.user.login }}\n Issue: 216\n PR: ${{ github.event.pull_request.number }}\n" - \ No newline at end of file diff --git a/prev-CHANGELOG.md b/prev-CHANGELOG.md index 1217f4ce9..8077a85e7 100644 --- a/prev-CHANGELOG.md +++ b/prev-CHANGELOG.md @@ -7,4 +7,3 @@ ### Under the hood - Rename compiled_sql to compiled_code ([#145](https://github.com/dbt-labs/dbt-redshift/pull/145)) - From c87f140c225bef73a3b873a096c255a171abbee1 Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Tue, 9 Aug 2022 10:23:30 -0500 Subject: [PATCH 3/6] change ref for no issue to #150 and add condtional logic for kinds dependency and security --- .changie.yaml | 2 ++ .github/workflows/bot-changelog.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.changie.yaml b/.changie.yaml index 5b9f48626..a11349c72 100644 --- a/.changie.yaml +++ b/.changie.yaml @@ -13,7 +13,9 @@ kinds: - label: Fixes - label: Under the Hood - label: Dependencies + changeFormat: '- {{.Body}} ({{if ne .Custom.Issue ""}}[#{{.Custom.Issue}}](https://github.com/dbt-labs/dbt-redshift/issues/{{.Custom.Issue}}), {{end}}[#{{.Custom.PR}}](https://github.com/dbt-labs/dbt-redshift/pull/{{.Custom.PR}}))' - label: Security + changeFormat: '- {{.Body}} ({{if ne .Custom.Issue ""}}[#{{.Custom.Issue}}](https://github.com/dbt-labs/dbt-redshift/issues/{{.Custom.Issue}}), {{end}}[#{{.Custom.PR}}](https://github.com/dbt-labs/dbt-redshift/pull/{{.Custom.PR}}))' custom: - key: Author label: GitHub Username(s) (separated by a single space if multiple) diff --git a/.github/workflows/bot-changelog.yml b/.github/workflows/bot-changelog.yml index 2a141f849..1df5573bb 100644 --- a/.github/workflows/bot-changelog.yml +++ b/.github/workflows/bot-changelog.yml @@ -58,4 +58,4 @@ jobs: commit_message: "Add automated changelog yaml from template for bot PR" changie_kind: ${{ matrix.changie_kind }} label: ${{ matrix.label }} - custom_changelog_string: "custom:\n Author: ${{ github.event.pull_request.user.login }}\n Issue: 216\n PR: ${{ github.event.pull_request.number }}\n" + custom_changelog_string: "custom:\n Author: ${{ github.event.pull_request.user.login }}\n Issue: 150\n PR: ${{ github.event.pull_request.number }}\n" From 28b0055b7f0fcd8411dba0d11d12349266464c70 Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Wed, 10 Aug 2022 10:05:51 -0500 Subject: [PATCH 4/6] try to fix spacing issue From f8e728dc05abebab126d4e030125bd4327839f6b Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Wed, 10 Aug 2022 14:06:28 -0500 Subject: [PATCH 5/6] remove original changelog --- prev-CHANGELOG.md | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 prev-CHANGELOG.md diff --git a/prev-CHANGELOG.md b/prev-CHANGELOG.md deleted file mode 100644 index 8077a85e7..000000000 --- a/prev-CHANGELOG.md +++ /dev/null @@ -1,9 +0,0 @@ -## dbt-redshift 1.3.0b2 (Release TBD) - -### Fixes -- Avoid truncating Redshift model names with more than 63 characters([#147](https://github.com/dbt-labs/dbt-redshift/pull/147)) - -## dbt-redshift 1.3.0b1 (July 29, 2022) - -### Under the hood -- Rename compiled_sql to compiled_code ([#145](https://github.com/dbt-labs/dbt-redshift/pull/145)) From 3973a2adb4ad446716a674b31d1bbae0d3517f69 Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Wed, 10 Aug 2022 14:11:01 -0500 Subject: [PATCH 6/6] remove original changelog --- prev-CHANGELOG.md | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 prev-CHANGELOG.md diff --git a/prev-CHANGELOG.md b/prev-CHANGELOG.md deleted file mode 100644 index 8077a85e7..000000000 --- a/prev-CHANGELOG.md +++ /dev/null @@ -1,9 +0,0 @@ -## dbt-redshift 1.3.0b2 (Release TBD) - -### Fixes -- Avoid truncating Redshift model names with more than 63 characters([#147](https://github.com/dbt-labs/dbt-redshift/pull/147)) - -## dbt-redshift 1.3.0b1 (July 29, 2022) - -### Under the hood -- Rename compiled_sql to compiled_code ([#145](https://github.com/dbt-labs/dbt-redshift/pull/145))