-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3be3c49
commit 780e677
Showing
15 changed files
with
328 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Code Quality | ||
|
||
on: | ||
pull_request: | ||
branches: [master, development] | ||
push: | ||
branches: [master, development, java-8] | ||
|
||
jobs: | ||
code_scan: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK 10 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 10 | ||
- name: Scan on SonarCloud.io | ||
run: mvn verify sonar:sonar -Psonar --file superfields/pom.xml | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONARCLOUD_IO_LOGIN_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Make Release | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- id: variables | ||
run: | | ||
echo "::set-output name=version::`head -1 superfields/release-notes.md | cut -d' ' -f2`" | ||
echo "::set-output name=title::`head -1 superfields/release-notes.md | sed -n -e 's/^.* - //p'`" | ||
export NOTES=`cat superfields/release-notes.md | sed -e '0,/^# /d;/^# /,$d'` | ||
export NOTES="${NOTES//'%'/'%25'}" | ||
export NOTES="${NOTES//$'\n'/'%0A'}" | ||
export NOTES="${NOTES//$'\r'/'%0D'}" | ||
echo "::set-output name=notes::$NOTES" | ||
- name: Create Release | ||
uses: fleskesvor/create-release@feature/support-target-commitish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: "v${{ steps.variables.outputs.version }}" | ||
commitish: "master" | ||
release_name: "${{ steps.variables.outputs.version }} - ${{ steps.variables.outputs.title }}" | ||
body: | | ||
${{ steps.variables.outputs.notes }} | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Release branch on milestone close | ||
|
||
on: | ||
milestone: | ||
types: [closed] | ||
|
||
jobs: | ||
make-branch: | ||
runs-on: ubuntu-latest | ||
if: ${{ startsWith(github.event.milestone.title, '0.') || startsWith(github.event.milestone.title, '1.') || startsWith(github.event.milestone.title, '2.') || startsWith(github.event.milestone.title, '3.') || startsWith(github.event.milestone.title, '4.') || startsWith(github.event.milestone.title, '5.') || startsWith(github.event.milestone.title, '6.') || startsWith(github.event.milestone.title, '7.') || startsWith(github.event.milestone.title, '8.') || startsWith(github.event.milestone.title, '9.') }} | ||
steps: | ||
- id: version | ||
run: | | ||
set -x | ||
echo "::set-output name=version::`echo '${{ github.event.milestone.title }}' | cut -d' ' -f1`" | ||
- name: Push release branch | ||
uses: UnforgivenPL/push-branch@v2 | ||
with: | ||
repository: ${{ github.repository }} | ||
token: ${{ secrets.ACTIONS_PAT }} | ||
source: development | ||
target: release-${{ steps.version.outputs.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Version and Release Notes | ||
|
||
on: create | ||
|
||
jobs: | ||
set-version: | ||
if: ${{ (github.event.ref_type == 'branch') && startsWith(github.event.ref, 'release-') }} | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 10 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 10 | ||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||
settings-path: ${{ github.workspace }} # location for the settings.xml file | ||
- id: what-version | ||
name: Determine version | ||
run: | | ||
set -x | ||
export VERSION="`echo ${{ github.event.ref }} | sed -e s/release-//g`" | ||
echo "::set-output name=version::$VERSION" | ||
- name: Set version and update readme | ||
run: | | ||
set -x | ||
export VERSION="${{ steps.what-version.outputs.version }}" | ||
mvn versions:set -DnewVersion=$VERSION --file pom.xml | ||
mvn versions:set -DnewVersion=$VERSION --file superfields/pom.xml | ||
sed -i -e s/{VERSION}/$VERSION/g ./README.md | ||
- name: Create milestone notes | ||
uses: UnforgivenPL/milestone-notes@v1 | ||
with: | ||
match-milestone: "^${{ steps.what-version.outputs.version }} " | ||
repository: ${{ github.repository }} | ||
labels: "enhancement, api, bug" | ||
- name: Format milestone notes | ||
run: | | ||
sed -i -e "s/## enhancement/## New features and enhancements/g" milestone-notes.md | ||
sed -i -e "s/## api/## Changes to API/g" milestone-notes.md | ||
sed -i -e "s/## bug/## Bug fixes/g" milestone-notes.md | ||
sed -i -e "s/^$/(nothing reported)/g" milestone-notes.md | ||
- name: Update release notes | ||
run: | | ||
echo -e "\n" | cat milestone-notes.md - superfields/release-notes.md > superfields/release-notes.md.new | ||
mv superfields/release-notes.md.new superfields/release-notes.md | ||
- name: Remove milestone notes | ||
run: rm milestone-notes.md | ||
- name: Push changes | ||
uses: stefanzweifel/git-auto-commit-action@v4.1.6 | ||
with: | ||
commit_message: "(bot) version and release notes updated to ${{ steps.what-version.outputs.version }}" | ||
branch: ${{ github.event.ref }} | ||
- name: Create PR | ||
uses: UnforgivenPL/pull-request@v1 | ||
with: | ||
source: ${{ github.event.ref }} | ||
target: master | ||
repository: ${{ github.repository }} | ||
token: ${{ secrets.ACTIONS_PAT }} | ||
pr-title: Release ${{ steps.what-version.outputs.version }} ready | ||
pr-body: Automatically created release ${{ steps.what-version.outputs.version }}. | ||
pr-assignees: ${{ github.actor }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
<settings> | ||
<servers> | ||
<server> | ||
<id>github</id> | ||
<username>${env.GITHUB_ACTOR}</username> | ||
<password>${env.GITHUB_TOKEN}</password> | ||
</server> | ||
</servers> | ||
</settings> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# 0.6.1 - Release process improvement | ||
## New features and enhancements | ||
* \#107 - [Generate release notes from a milestone](https://api.github.com/repos/vaadin-miki/super-fields/issues/107) | ||
## Changes to API | ||
(nothing reported) | ||
## Bug fixes | ||
* \#105 - [Removing date (time) picker and adding it back in the dom resets the display pattern](https://api.github.com/repos/vaadin-miki/super-fields/issues/105) | ||
|
||
# 0.6 - ComponentObserver and UnloadObserver | ||
## New features and enhancements | ||
* \#66 - [A field that changes value on becoming shown and hidden](https://api.github.com/repos/vaadin-miki/super-fields/issues/66) | ||
* \#69 - [ComponentObserver - reusing client-side IntersectionObserver as a server-side component](https://api.github.com/repos/vaadin-miki/super-fields/issues/69) | ||
* \#75 - [Component for encapsulating beforeunload events](https://api.github.com/repos/vaadin-miki/super-fields/issues/75) | ||
* \#80 - [Expand SuperTabs to work also with removing tab contents](https://api.github.com/repos/vaadin-miki/super-fields/issues/80) | ||
* \#82 - [Allow overriding default container in SuperTabs](https://api.github.com/repos/vaadin-miki/super-fields/issues/82) | ||
## Changes to API | ||
* \#76 - [Make Vaadin dependencies not transitive](https://api.github.com/repos/vaadin-miki/super-fields/issues/76) | ||
* \#85 - [Add WithItems also to ItemGrid](https://api.github.com/repos/vaadin-miki/super-fields/issues/85) | ||
* \#86 - [Create WithValue to allow chaining setValue calls](https://api.github.com/repos/vaadin-miki/super-fields/issues/86) | ||
* \#89 - [Expose DatePicker and TimePicker in SuperDateTimePicker](https://api.github.com/repos/vaadin-miki/super-fields/issues/89) | ||
* \#92 - [Add WithIdMixin to all components](https://api.github.com/repos/vaadin-miki/super-fields/issues/92) | ||
## Bug fixes | ||
* \#81 - [Setting date display pattern does not work out-of-the-box](https://api.github.com/repos/vaadin-miki/super-fields/issues/81) | ||
* \#83 - [SuperTabs should implement HasItems](https://api.github.com/repos/vaadin-miki/super-fields/issues/83) | ||
* \#90 - [SuperTabs should be using removing handler by default](https://api.github.com/repos/vaadin-miki/super-fields/issues/90) | ||
* \#93 - ["this.observer is undefined" after ObservedField is removed from dom and added again](https://api.github.com/repos/vaadin-miki/super-fields/issues/93) | ||
* \#98 - [Vaadin production mode not included](https://api.github.com/repos/vaadin-miki/super-fields/issues/98) | ||
# 0.5.1 - Fix maven dependencies | ||
## New features and enhancements | ||
(nothing reported) | ||
## Changes to API | ||
(nothing reported) | ||
## Bug fixes | ||
* \#70 - [Parent pom unavailable for Directory downloads](https://api.github.com/repos/vaadin-miki/super-fields/issues/70) | ||
# 0.5 - LazyLoad | ||
## New features and enhancements | ||
* \#50 - [Investigate lazy loading for ItemGrid](https://api.github.com/repos/vaadin-miki/super-fields/issues/50) | ||
* \#51 - [Custom date formatting for date components](https://api.github.com/repos/vaadin-miki/super-fields/issues/51) | ||
## Changes to API | ||
(nothing reported) | ||
## Bug fixes | ||
* \#56 - [Set width to full in number fields](https://api.github.com/repos/vaadin-miki/super-fields/issues/56) | ||
# 0.4 - ItemGrid | ||
## New features and enhancements | ||
* \#34 - [Basic version of `ItemGrid`](https://api.github.com/repos/vaadin-miki/super-fields/issues/34) | ||
## Changes to API | ||
(nothing reported) | ||
## Bug fixes | ||
(nothing reported) | ||
# 0.3 - SuperTabs | ||
## New features and enhancements | ||
* \#26 - [SuperTabs](https://api.github.com/repos/vaadin-miki/super-fields/issues/26) | ||
## Changes to API | ||
* \#30 - [Add .withXYZ methods to all fields](https://api.github.com/repos/vaadin-miki/super-fields/issues/30) | ||
## Bug fixes | ||
(nothing reported) | ||
# 0.2 - Date components | ||
## New features and enhancements | ||
* \#12 - [SuperDatePicker](https://api.github.com/repos/vaadin-miki/super-fields/issues/12) | ||
* \#20 - [SuperDateTimePicker](https://api.github.com/repos/vaadin-miki/super-fields/issues/20) | ||
## Changes to API | ||
(nothing reported) | ||
## Bug fixes | ||
(nothing reported) | ||
# 0.1 - Number fields | ||
## New features and enhancements | ||
* \#2 - [SuperDoubleField](https://api.github.com/repos/vaadin-miki/super-fields/issues/2) | ||
* \#4 - [SuperIntegerField and SuperLongField](https://api.github.com/repos/vaadin-miki/super-fields/issues/4) | ||
* \#5 - [SuperBigDecimalField](https://api.github.com/repos/vaadin-miki/super-fields/issues/5) | ||
## Changes to API | ||
(nothing reported) | ||
## Bug fixes | ||
* \#10 - [Max integer length does not work if it is a multiplication of grouping size](https://api.github.com/repos/vaadin-miki/super-fields/issues/10) |
Oops, something went wrong.