Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ github:
- id: jdaugherty
type: User
wait_timer: 0
description: "Apache Grails (incubating) - GitHub Actions"
description: "Apache Grails - GitHub Actions"
homepage: https://grails.apache.org/
labels:
- github-actions
Expand Down
149 changes: 149 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name-template: $RESOLVED_VERSION
tag-template: v$RESOLVED_VERSION
pull-request:
title-templates:
fix: '🐛 $TITLE (#$NUMBER)'
feat: '🚀 $TITLE (#$NUMBER)'
default: '$TITLE (#$NUMBER)'
autolabeler:
- label: 'bug'
branch:
- '/fix\/.+/'
title:
- '/fix/i'
- label: 'improvement'
branch:
- '/improv\/.+/'
title:
- '/improv/i'
- label: 'feature'
branch:
- '/feature\/.+/'
title:
- '/feat/i'
- label: 'documentation'
branch:
- '/docs\/.+/'
title:
- '/docs/i'
- label: 'maintenance'
branch:
- '/(chore|refactor|style|test|ci|perf|build)\/.+/'
title:
- '/(chore|refactor|style|test|ci|perf|build)/i'
- label: 'chore'
branch:
- '/chore\/.+/'
title:
- '/chore/i'
- label: 'refactor'
branch:
- '/refactor\/.+/'
title:
- '/refactor/i'
- label: 'style'
branch:
- '/style\/.+/'
title:
- '/style/i'
- label: 'test'
branch:
- '/test\/.+/'
title:
- '/test/i'
- label: 'ci'
branch:
- '/ci\/.+/'
title:
- '/ci/i'
- label: 'perf'
branch:
- '/perf\/.+/'
title:
- '/perf/i'
- label: 'build'
branch:
- '/build\/.+/'
title:
- '/build/i'
- label: 'deps'
branch:
- '/deps\/.+/'
title:
- '/deps/i'
- label: 'revert'
branch:
- '/revert\/.+/'
title:
- '/revert/i'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- "type: enhancement"
- "type: new feature"
- "type: major"
- "type: minor"
- title: '💡 Improvements'
labels:
- 'improvement'
- "type: improvement"

- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bug'
- "type: bug"
- title: '📚 Documentation'
labels:
- 'docs'
- title: '🔧 Maintenance'
labels:
- 'maintenance'
- 'chore'
- 'refactor'
- 'style'
- 'test'
- 'ci'
- 'perf'
- 'build'
- "type: ci"
- "type: build"
- title: '⏪ Reverts'
labels:
- 'revert'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
version-resolver:
major:
labels:
- 'type: major'
minor:
labels:
- 'type: minor'
patch:
labels:
- 'type: patch'
default: patch
template: |
## What's Changed

$CHANGES

## Contributors

$CONTRIBUTORS
6 changes: 3 additions & 3 deletions .github/scripts/releaseDistributions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ RELEASE_TAG="$1"
RELEASE_VERSION="${RELEASE_TAG#v}"
SVN_USER="$2"
SVN_PASS="$3"
RELEASE_ROOT="https://dist.apache.org/repos/dist/release/incubator/grails/actions"
DEV_ROOT="https://dist.apache.org/repos/dist/dev/incubator/grails/actions"
RELEASE_ROOT="https://dist.apache.org/repos/dist/release/grails/actions"
DEV_ROOT="https://dist.apache.org/repos/dist/dev/grails/actions"

if [[ -z "${RELEASE_TAG}" ]]; then
echo "❌ ERROR: Release Tag must not be empty." >&2
Expand Down Expand Up @@ -79,5 +79,5 @@ if svn_exists "${RELEASE_VERSION_URL}"; then
fi

echo "🚀 Promoting ${DEV_VERSION_URL} -> ${RELEASE_VERSION_URL}"
svn mv "${svn_flags[@]}" -m "Promote Apache Grails (incubating) ${RELEASE_VERSION} from dev to release" "${DEV_VERSION_URL}" "${RELEASE_VERSION_URL}"
svn mv "${svn_flags[@]}" -m "Promote Apache Grails GitHub Actions ${RELEASE_VERSION} from dev to release" "${DEV_VERSION_URL}" "${RELEASE_VERSION_URL}"
echo "✅ Promoted"
4 changes: 2 additions & 2 deletions .github/vote_templates/announce.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The Apache Grails (incubating) community is pleased to announce the release of Apache Grails (incubating) GitHub Actions ${VERSION}.
The Apache Grails community is pleased to announce the release of Apache Grails GitHub Actions ${VERSION}.

These actions assist with automating common publishing tasks in Grails Projects.

Expand All @@ -18,4 +18,4 @@ Grails Resources:
- Mailing lists: https://grails.apache.org/community.html

Happy Coding,
The Apache Grails (incubating) Team
The Apache Grails Team
30 changes: 0 additions & 30 deletions .github/vote_templates/groovy_pmc.txt

This file was deleted.

12 changes: 6 additions & 6 deletions .github/vote_templates/staged.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Hi Everyone,

I am happy to start the VOTE thread for an Apache Grails (incubating) GitHub Actions release of version ${VERSION}!
I am happy to start the VOTE thread for an Apache Grails GitHub Actions release of version ${VERSION}!

Pre-release discussion thread is here:
<Thread Link>
Expand All @@ -13,12 +13,12 @@ https://github.com/apache/grails-github-actions/releases/tag/v${VERSION}
Tag commit id: ${VERSION_COMMIT_ID}

The artifacts to be voted on are located as follows (r${DIST_SVN_REVISION}):
Source release: https://dist.apache.org/repos/dist/dev/incubator/grails/actions/${VERSION}/sources
Source release: https://dist.apache.org/repos/dist/dev/grails/actions/${VERSION}/sources

Release artifacts are signed with a key from the following file:
https://dist.apache.org/repos/dist/release/incubator/grails/KEYS
https://dist.apache.org/repos/dist/release/grails/KEYS

Please vote on releasing this package as: Apache Grails (incubating) GitHub Actions ${VERSION}.
Please vote on releasing this package as: Apache Grails GitHub Actions ${VERSION}.

Reminder on ASF release approval requirements for PPMC members:
https://www.apache.org/legal/release-policy.html#release-approval
Expand All @@ -29,9 +29,9 @@ https://www.apache.org/info/verification.html
The vote is open for a minimum of 72 hours and passes if a majority of at least
three +1 PPMC votes are cast.

[ ] +1 Release Apache Grails (incubating) GitHub Actions ${VERSION}
[ ] +1 Release Apache Grails GitHub Actions ${VERSION}
[ ] 0 I don't have a strong opinion about this, but I assume it's ok
[ ] -1 Do not release Apache Grails (incubating) GitHub Actions ${VERSION} because...
[ ] -1 Do not release Apache Grails GitHub Actions ${VERSION} because...

Here is my vote:

Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: "Release - Drafter"
on:
issues:
types: [ closed,reopened ]
push:
pull_request:
types: [ opened, reopened, synchronize ]
pull_request_target:
types: [ opened, reopened, synchronize ]
workflow_dispatch:
# queue jobs and only allow 1 run per branch due to the likelihood of hitting GitHub resource limits
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: "📝 Update Release Draft"
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading