From 65b0a2cc8f6e842df541cc223bff17acb5165758 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Mon, 23 Aug 2021 15:20:34 +0100 Subject: [PATCH] ci: Automate milestone closing & commenting (#627) --- .github/workflows/milestone-closed.yml | 22 ++++++++++++++++++++++ .github/workflows/release.yml | 1 + .goreleaser.yml | 4 ++++ 3 files changed, 27 insertions(+) create mode 100644 .github/workflows/milestone-closed.yml diff --git a/.github/workflows/milestone-closed.yml b/.github/workflows/milestone-closed.yml new file mode 100644 index 00000000..0c649ba7 --- /dev/null +++ b/.github/workflows/milestone-closed.yml @@ -0,0 +1,22 @@ +name: Closed Milestones + +on: + milestone: + types: [closed] + +permissions: + issues: write + pull-requests: write + +jobs: + Comment: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: bflad/action-milestone-comment@v1 + with: + body: | + This functionality has been released in [${{ github.event.milestone.title }} of the language server](https://github.com/${{ github.repository }}/blob/${{ github.event.milestone.title }}/CHANGELOG.md). + If you use the official Terraform VS Code extension, it will prompt you to upgrade to this version automatically upon next launch or within the next 24 hours. + + For further feature requests or bug reports with this functionality, please create a [new GitHub issue](https://github.com/${{ github.repository }}/issues/new/choose) following the template. Thank you! diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 835b8be6..de45ba08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,7 @@ on: permissions: contents: write + issues: write env: GOPROXY: https://proxy.golang.org/ diff --git a/.goreleaser.yml b/.goreleaser.yml index 96859bcf..da0c2188 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -118,5 +118,9 @@ publishers: - AWS_SESSION_TOKEN={{ .Env.AWS_SESSION_TOKEN }} cmd: hc-releases upload-file {{ abs .ArtifactPath }} +milestones: + - name_template: "{{ .Tag }}" + close: true + changelog: skip: true