From 1ad9d0daee3bf008acb7751575d956c09f666cc5 Mon Sep 17 00:00:00 2001 From: Petro Kurbatskyi <67897517+ibexa-yuna@users.noreply.github.com> Date: Tue, 13 Apr 2021 16:24:49 +0200 Subject: [PATCH 1/3] IBX-105: Added automatic release creation on tag push (#92) --- .github/workflows/release.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..980c6701 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,46 @@ +name: Automatic Changelog Generator for tag + +on: + push: + tags: + - 'v*' + - '!v*-alpha*' + - '!v*-beta*' + - '!v*-rc*' + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - name: Set Environment + run: | + echo "BUILD_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + + - name: Get previous release tag based on type + id: prevrelease + uses: ibexa/version-logic-action@master + with: + currentTag: ${{ env.BUILD_TAG }} + + - name: Generate changelog + id: changelog + uses: ibexa/changelog-generator-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + currentTag: ${{ env.BUILD_TAG }} + previousTag: ${{ steps.prevrelease.outputs.previousTag }} + + - name: Print the changelog + run: echo "${{ steps.changelog.outputs.changelog }}" + + - name: Create Release + id: create_release + uses: zendesk/action-create-release@v1 + with: + tag_name: ${{ env.BUILD_TAG }} + body: | + ${{ steps.changelog.outputs.changelog }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 1282ce5e88864dd95043d20b12364fa71f26653e Mon Sep 17 00:00:00 2001 From: Petro Kurbatskyi Date: Thu, 6 May 2021 08:56:25 +0200 Subject: [PATCH 2/3] IBX-261: Updated changelog generator --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 980c6701..ab450b39 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,8 +5,6 @@ on: tags: - 'v*' - '!v*-alpha*' - - '!v*-beta*' - - '!v*-rc*' jobs: release: @@ -26,9 +24,10 @@ jobs: - name: Generate changelog id: changelog - uses: ibexa/changelog-generator-action@master + uses: ibexa/changelog-generator-action@v2 with: github_token: ${{ secrets.GITHUB_TOKEN }} + jira_token: ${{ secrets.JIRA_TOKEN }} currentTag: ${{ env.BUILD_TAG }} previousTag: ${{ steps.prevrelease.outputs.previousTag }} From f309573d973b4748fe0b5ff8fdd5a42a0ed722bf Mon Sep 17 00:00:00 2001 From: Konrad Oboza Date: Fri, 28 May 2021 12:58:35 +0200 Subject: [PATCH 3/3] IBX-385: Fixed error handling when composer files are corrupted (#94) --- Resources/translations/dashboard.en.xlf | 4 +- .../themes/admin/dashboard/block/ez.html.twig | 2 +- .../Collector/EzSystemInfoCollector.php | 3 +- .../JsonComposerLockSystemInfoCollector.php | 9 + .../ComposerFileValidationException.php | 19 + .../ComposerJsonFileNotFoundException.php | 2 +- .../ComposerLockFileNotFoundException.php | 2 +- SystemInfo/Exception/SystemInfoException.php | 11 + SystemInfo/Value/InvalidSystemInfo.php | 22 ++ ...sonComposerLockSystemInfoCollectorTest.php | 35 +- .../_fixtures/corrupted_composer.json | 147 +++++++ .../_fixtures/corrupted_composer.lock | 372 ++++++++++++++++++ View/SystemInfoViewBuilder.php | 11 +- 13 files changed, 629 insertions(+), 10 deletions(-) create mode 100644 SystemInfo/Exception/ComposerFileValidationException.php create mode 100644 SystemInfo/Exception/SystemInfoException.php create mode 100644 SystemInfo/Value/InvalidSystemInfo.php create mode 100644 Tests/SystemInfo/Collector/_fixtures/corrupted_composer.json create mode 100644 Tests/SystemInfo/Collector/_fixtures/corrupted_composer.lock diff --git a/Resources/translations/dashboard.en.xlf b/Resources/translations/dashboard.en.xlf index 1e5e8143..70018151 100644 --- a/Resources/translations/dashboard.en.xlf +++ b/Resources/translations/dashboard.en.xlf @@ -73,9 +73,9 @@ key: dashboard.ez_version.non_stable_ee - composer.lock file. It's needed to determine information about + composer.lock or composer.json file, or the files are invalid. They are needed to determine information about your eZ install, and recommended to be kept on project development to make sure same package versions are used across all environments.]]> - composer.lock file. It's needed to determine information about + composer.lock or composer.json file or it's not valid. It's needed to determine information about your eZ install, and recommended to be kept on project development to make sure same package versions are used across all environments.]]> key: dashboard.ez_version.release_not_determined diff --git a/Resources/views/themes/admin/dashboard/block/ez.html.twig b/Resources/views/themes/admin/dashboard/block/ez.html.twig index c9a4598f..7d8e6078 100644 --- a/Resources/views/themes/admin/dashboard/block/ez.html.twig +++ b/Resources/views/themes/admin/dashboard/block/ez.html.twig @@ -16,7 +16,7 @@ {% set severity = 1 %}