From 6f63c6f68f3d55b36b36355f7708eb557cf162fb Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 03:08:19 +0200 Subject: [PATCH 01/33] fix meta --- .test/include/test.cpp | 4 ++-- .test/install/test.cpp | 4 ++-- meta.yaml | 14 +++++++++----- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.test/include/test.cpp b/.test/include/test.cpp index 69159822..668e852a 100644 --- a/.test/include/test.cpp +++ b/.test/include/test.cpp @@ -15,7 +15,7 @@ #include "hypercomplex/Hypercomplex.hpp" int main(void){ - double A[] = {1.0, 2.0, 0.0, -1.0}; - Hypercomplex h(A); + double A[] = {0.0}; + Hypercomplex h(A); return 0; } diff --git a/.test/install/test.cpp b/.test/install/test.cpp index 77eb2c88..95092dee 100644 --- a/.test/install/test.cpp +++ b/.test/install/test.cpp @@ -15,7 +15,7 @@ #include int main(void){ - double A[] = {1.0, 2.0, 0.0, -1.0}; - Hypercomplex h(A); + double A[] = {0.0}; + Hypercomplex h(A); return 0; } diff --git a/meta.yaml b/meta.yaml index 422c1121..a8431523 100644 --- a/meta.yaml +++ b/meta.yaml @@ -19,17 +19,21 @@ package: source: path: . +build: + noarch: generic + script: | + mkdir -p $PREFIX/include + cp -r $SRC_DIR/hypercomplex $PREFIX/include/Hypercomplex + requirements: + # Hypercomplex is a library + # we do not build it thus no 'build' and 'host' sections, + # only 'run', which will be compilation of users program run: - compilers - mpfr - sysroot_linux-64=2.28 -build: - script: | - mkdir -p $PREFIX/include - cp -r $SRC_DIR/hypercomplex $PREFIX/include/Hypercomplex - about: home: https://github.com/AngryMaciek/hypercomplex summary: | From 3f1a31fa9cdc7ce2d3f7521e527241fca3932a03 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 03:09:40 +0200 Subject: [PATCH 02/33] Maciek --- LICENSE | 4 ++-- hypercomplex/Hypercomplex.hpp | 30 +++++++++++++++--------------- hypercomplex/Makefile | 4 ++-- hypercomplex/Polynomial.hpp | 10 +++++----- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/LICENSE b/LICENSE index 9055785d..00b8b0e9 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2020 Maciej Bak + Copyright 2020 Maciek Bak Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -198,4 +198,4 @@ 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. \ No newline at end of file + limitations under the License. diff --git a/hypercomplex/Hypercomplex.hpp b/hypercomplex/Hypercomplex.hpp index f20f4aef..3d03c9a1 100644 --- a/hypercomplex/Hypercomplex.hpp +++ b/hypercomplex/Hypercomplex.hpp @@ -1,11 +1,11 @@ -// Copyright 2020 +// Copyright 2020 /*! \file */ /* ############################################################################### # # Hypercomplex header-only library. # -# AUTHOR: Maciej_Bak +# AUTHOR: Maciek_Bak # AFFILIATION: Department_of_Mathematics_City_University_of_London # CONTACT: wsciekly.maciek@gmail.com # CREATED: 22-10-2020 @@ -118,7 +118,7 @@ class Hypercomplex { /** \brief This is the main constructor * \param [in] ARR array of numbers - * + * * Template parameters are: * * base type of numbers in the argument array * * dimensionality of the algebra @@ -127,7 +127,7 @@ class Hypercomplex { /** \brief This is the copy constructor * \param [in] H existing class instance - * + * * Template parameters are: * * base type of numbers in the argument array * * dimensionality of the algebra @@ -145,7 +145,7 @@ class Hypercomplex { /** \brief Calculate Euclidean norm of a number * \return calculated norm - * + * * Note that the return type is the same as * template parameter. */ @@ -158,7 +158,7 @@ class Hypercomplex { /** \brief Cast a number into a higher dimension * \return new class instance - * + * * New dimension is passed as a function template parameter, * as the return class is not the same as the caller's class. */ @@ -184,7 +184,7 @@ class Hypercomplex { /** \brief Access operator (const) * \param [in] i index for the element to access * \return i-th element of the number - * + * * Note that the return type is the same as * template parameter. */ @@ -193,7 +193,7 @@ class Hypercomplex { /** \brief Access operator (non-const) * \param [in] i index for the element to access * \return i-th element of the number - * + * * Note that the return type is the same as * template parameter. */ @@ -785,7 +785,7 @@ class Hypercomplex { /** \brief This is the main constructor * \param [in] ARR array of MPFR numbers - * + * * Template parameters are: * * dimensionality of the algebra */ @@ -806,7 +806,7 @@ class Hypercomplex { /** \brief This is the copy constructor * \param [in] H existing class instance - * + * * Template parameters are: * * dimensionality of the algebra */ @@ -832,7 +832,7 @@ class Hypercomplex { /** \brief Calculate Euclidean norm of a number * \param [in,out] norm MPFR variable for the calculated norm * \return exit status - * + * * Note that the interface of this method is different * than for the fully template class. * Following the MPFR logic: function takes as an @@ -884,7 +884,7 @@ class Hypercomplex { /** \brief Cast a number into a higher dimension * \return new class instance - * + * * New dimension is passed as a function template parameter, * as the return class is not the same as the caller's class. */ @@ -1362,7 +1362,7 @@ class Hypercomplex, dim> { /** \brief This is the main constructor * \param [in] ARR array of Polynomial instances - * + * * Template parameters are: * * dimensionality of the algebra */ @@ -1380,7 +1380,7 @@ class Hypercomplex, dim> { /** \brief This is the copy constructor * \param [in] H existing class instance - * + * * Template parameters are: * * dimensionality of the algebra */ @@ -1416,7 +1416,7 @@ class Hypercomplex, dim> { /** \brief Cast a number into a higher dimension * \return new class instance - * + * * New dimension is passed as a function template parameter, * as the return class is not the same as the caller's class. */ diff --git a/hypercomplex/Makefile b/hypercomplex/Makefile index ae8c2866..21c5509d 100644 --- a/hypercomplex/Makefile +++ b/hypercomplex/Makefile @@ -1,7 +1,7 @@ # # Makefile for installation & development of the library. # -# Maciej Bak +# Maciek Bak # Department of Mathematics, City University of London # 22.10.2019 # @@ -84,7 +84,7 @@ lint: # Docs # ========================================================= -# Generate doxygen documentation +# Generate doxygen documentation docs: cd ..; \ doxygen Doxyfile diff --git a/hypercomplex/Polynomial.hpp b/hypercomplex/Polynomial.hpp index 7c7f433f..3f3a7890 100644 --- a/hypercomplex/Polynomial.hpp +++ b/hypercomplex/Polynomial.hpp @@ -1,11 +1,11 @@ -// Copyright 2022 +// Copyright 2022 /*! \file */ /* ############################################################################### # # Polynomial helper class and functions for the cryptosystems. # -# AUTHOR: Maciej_Bak +# AUTHOR: Maciek_Bak # AFFILIATION: Department_of_Mathematics_City_University_of_London # CONTACT: wsciekly.maciek@gmail.com # CREATED: 02-12-2022 @@ -45,7 +45,7 @@ class Polynomial { public: /** \brief This is the main constructor * \param [in] arr array of integers - * + * * Template parameters are: * * maximum degree of the polynomial */ @@ -55,7 +55,7 @@ class Polynomial { /** \brief This is the copy constructor * \param [in] P existing class instance - * + * * Template parameters are: * * maximum degree of the polynomial */ @@ -64,7 +64,7 @@ class Polynomial { } /** \brief This is the default constructor - * + * * Template parameters are: * * maximum degree of the polynomial */ From e852de83bfccff8a309378f5c8e5d4c343fa1a21 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 03:12:19 +0200 Subject: [PATCH 03/33] move version file --- .github/workflows/publish.yml | 2 +- VERSION => hypercomplex/VERSION | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename VERSION => hypercomplex/VERSION (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d5c8092f..6337f37c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -81,7 +81,7 @@ jobs: - name: Render version into the build recipe shell: bash -l {0} run: | - VERSION=$( Date: Thu, 3 Aug 2023 03:19:51 +0200 Subject: [PATCH 04/33] fix publish --- .github/workflows/publish.yml | 6 +++--- hypercomplex/VERSION | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6337f37c..b75ab390 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,8 @@ name: publish on: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' + release: + types: [published] jobs: @@ -111,6 +110,7 @@ jobs: run: | repo_name="hypercomplex" tag=${GITHUB_REF##*/} + tag="${tag:1}" docker build -t angrymaciek/${repo_name}:latest . docker tag angrymaciek/${repo_name} angrymaciek/${repo_name}:${tag} echo $docker_password | docker login -u $docker_username --password-stdin diff --git a/hypercomplex/VERSION b/hypercomplex/VERSION index 52dbd825..12be384c 100644 --- a/hypercomplex/VERSION +++ b/hypercomplex/VERSION @@ -1 +1 @@ -v2.0.6 \ No newline at end of file +v2.0.7 \ No newline at end of file From 0353dbfe0bc5987fd1c1953cca6906ce7a0e8557 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 03:20:55 +0200 Subject: [PATCH 05/33] fix publish --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5654b1bf..8f45544e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - id: end-of-file-fixer name: "[07/09] Ensure 1 newline at the end of each file" - exclude: VERSION + exclude: hypercomplex/VERSION always_run: true - id: mixed-line-ending From 68ecbc6cbe2049f76dd7af118b1b3f9d1bc680c2 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 03:22:40 +0200 Subject: [PATCH 06/33] add valgrind --- environment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/environment.yml b/environment.yml index 00868ee3..398f03ab 100644 --- a/environment.yml +++ b/environment.yml @@ -23,5 +23,6 @@ - make=4.3 - mpfr=4.2.0 - pre-commit=3.2.1 + - valgrind=3.20.0 ... From 877887ea9bcf03580000bcfc8c9477d8077bd2c9 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 03:45:13 +0200 Subject: [PATCH 07/33] add pr ci workflow --- .github/workflows/pr.yml | 71 +++++++++++++++++++++++++++++++++++ .github/workflows/publish.yml | 1 - 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 00000000..2f0f2fcd --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,71 @@ +name: pr + +on: + # By default, a workflow only runs when a pull_request's activity type + # is opened, synchronize, or reopened. We explicity override here so that + # PR titles are re-linted when the PR text content is edited. + # _target applies to PR from forks. + pull_request_target: + types: [opened, edited, reopened, synchronize] + +jobs: + + size-label: + runs-on: ubuntu-22.04 + + steps: + + - uses: pascalgn/size-label-action@v0.4.3 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + with: + sizes: > + { + "0": "XS", + "25": "S", + "150": "M", + "500": "L", + "1000": "XL" + } + + conventional-title: + runs-on: ubuntu-22.04 + + steps: + + - uses: morrisoncole/pr-lint-action@v1.7.0 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + title-regex: "^(feat|fix|docs|style|refactor|perf|test|build|ci|chore): .{1,}" + on-failed-regex-fail-action: true + on-failed-regex-create-review: true + on-failed-regex-request-changes: true + on-failed-regex-comment: + "Please stick to Conventional Commits syntax for PR titles ;)" + on-succeeded-regex-dismiss-review-comment: + "Thank you <3" + + version-bump-label: + runs-on: ubuntu-22.04 + + steps: + + - name: Checkout Code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + token: ${{ secrets.CODECOV_TOKEN }} + + - name: Check version bump + run: | + GIT='git --git-dir='$PWD'/.git' + NEW_COMMIT_VERSION="$(grep -E '__version__ = ".+"' hypercomplex/VERSION | grep -oE '[0-9.]+')" + $GIT checkout HEAD~1 + PREVIOUS_COMMIT_VERSION="$(grep -E '__version__ = ".+"' hypercomplex/VERSION | grep -oE '[0-9.]+')" + $GIT checkout - + if [[ "$NEW_COMMIT_VERSION" != "$PREVIOUS_COMMIT_VERSION" ]] + then + echo 123 + fi + echo $NEW_COMMIT_VERSION + echo $PREVIOUS_COMMIT_VERSION diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b75ab390..6dac14cd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,6 @@ on: jobs: gh-pages: - runs-on: ubuntu-22.04 env: test-directory: .test/docs From 456b162d33769b8c637695be7c5296e8c1993c40 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 03:50:04 +0200 Subject: [PATCH 08/33] adjust trigger --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 2f0f2fcd..71a4a258 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -5,7 +5,7 @@ on: # is opened, synchronize, or reopened. We explicity override here so that # PR titles are re-linted when the PR text content is edited. # _target applies to PR from forks. - pull_request_target: + pull_request: types: [opened, edited, reopened, synchronize] jobs: From f396558753c2f6a99713f7a1b8474ee1337cc15b Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 04:00:44 +0200 Subject: [PATCH 09/33] fix token --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 71a4a258..5b0c7bda 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -54,7 +54,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.CHANGELOG_TOKEN }} - name: Check version bump run: | From 1e850fbeba3db4741992feaa8a9f654b9bb7ad6f Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 04:25:29 +0200 Subject: [PATCH 10/33] fix ci syntax --- .github/workflows/pr.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5b0c7bda..74c385e0 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -65,7 +65,18 @@ jobs: $GIT checkout - if [[ "$NEW_COMMIT_VERSION" != "$PREVIOUS_COMMIT_VERSION" ]] then - echo 123 + $GIT tag v$NEW_COMMIT_VERSION fi echo $NEW_COMMIT_VERSION echo $PREVIOUS_COMMIT_VERSION + + + + + + + + #- name: add label + # uses: actions-ecosystem/action-add-labels@v1 + # with: + # labels: bug From f05805e0353679a2699696ed42b153b2c32437ed Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 04:26:55 +0200 Subject: [PATCH 11/33] fix ci syntax --- .github/workflows/pr.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 74c385e0..4cc5256a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -63,10 +63,10 @@ jobs: $GIT checkout HEAD~1 PREVIOUS_COMMIT_VERSION="$(grep -E '__version__ = ".+"' hypercomplex/VERSION | grep -oE '[0-9.]+')" $GIT checkout - - if [[ "$NEW_COMMIT_VERSION" != "$PREVIOUS_COMMIT_VERSION" ]] - then - $GIT tag v$NEW_COMMIT_VERSION - fi + # if [[ "$NEW_COMMIT_VERSION" != "$PREVIOUS_COMMIT_VERSION" ]] + # then + # $GIT tag v$NEW_COMMIT_VERSION + # fi echo $NEW_COMMIT_VERSION echo $PREVIOUS_COMMIT_VERSION From 00517c8cc718d10c31ec1087c4c58bde92dcd5ce Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 04:28:50 +0200 Subject: [PATCH 12/33] fix ci syntax --- .github/workflows/pr.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4cc5256a..b41e4d9e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -59,14 +59,14 @@ jobs: - name: Check version bump run: | GIT='git --git-dir='$PWD'/.git' - NEW_COMMIT_VERSION="$(grep -E '__version__ = ".+"' hypercomplex/VERSION | grep -oE '[0-9.]+')" + NEW_COMMIT_VERSION="$(cat hypercomplex/VERSION | grep -oE '[0-9.]+')" $GIT checkout HEAD~1 - PREVIOUS_COMMIT_VERSION="$(grep -E '__version__ = ".+"' hypercomplex/VERSION | grep -oE '[0-9.]+')" + PREVIOUS_COMMIT_VERSION="$(cat hypercomplex/VERSION | grep -oE '[0-9.]+')" $GIT checkout - - # if [[ "$NEW_COMMIT_VERSION" != "$PREVIOUS_COMMIT_VERSION" ]] - # then - # $GIT tag v$NEW_COMMIT_VERSION - # fi + if [[ "$NEW_COMMIT_VERSION" != "$PREVIOUS_COMMIT_VERSION" ]] + then + $GIT tag v$NEW_COMMIT_VERSION + fi echo $NEW_COMMIT_VERSION echo $PREVIOUS_COMMIT_VERSION From 3f525a559aaf280ee058cbbda5a827da7a31c99f Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 04:29:50 +0200 Subject: [PATCH 13/33] fix ci syntax --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b41e4d9e..6cfbe34a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -61,7 +61,7 @@ jobs: GIT='git --git-dir='$PWD'/.git' NEW_COMMIT_VERSION="$(cat hypercomplex/VERSION | grep -oE '[0-9.]+')" $GIT checkout HEAD~1 - PREVIOUS_COMMIT_VERSION="$(cat hypercomplex/VERSION | grep -oE '[0-9.]+')" + PREVIOUS_COMMIT_VERSION="$(cat VERSION | grep -oE '[0-9.]+')" $GIT checkout - if [[ "$NEW_COMMIT_VERSION" != "$PREVIOUS_COMMIT_VERSION" ]] then From e35c7024e4cff91b7549b105561a4d2e4fab1eb2 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 04:35:00 +0200 Subject: [PATCH 14/33] test ci --- .github/workflows/pr.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6cfbe34a..4965aa85 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -65,11 +65,17 @@ jobs: $GIT checkout - if [[ "$NEW_COMMIT_VERSION" != "$PREVIOUS_COMMIT_VERSION" ]] then - $GIT tag v$NEW_COMMIT_VERSION + IFS='.' read -r NEW_MAJOR NEW_MINOR NEW_PATCH <<< "$NEW_COMMIT_VERSION" + IFS='.' read -r PREVIOUS_MAJOR PREVIOUS_MINOR PREVIOUS_PATCH <<< "$PREVIOUS_COMMIT_VERSION" fi echo $NEW_COMMIT_VERSION echo $PREVIOUS_COMMIT_VERSION - + echo $NEW_MAJOR + echo $NEW_MINOR + echo $NEW_PATCH + echo $PREVIOUS_MAJOR + echo $PREVIOUS_MINOR + echo $PREVIOUS_PATCH From 1cb18013f03f3f372e9d6ec1be77e02f69f23f3e Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 04:38:00 +0200 Subject: [PATCH 15/33] test ci --- .github/workflows/pr.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4965aa85..af3199b6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -67,15 +67,22 @@ jobs: then IFS='.' read -r NEW_MAJOR NEW_MINOR NEW_PATCH <<< "$NEW_COMMIT_VERSION" IFS='.' read -r PREVIOUS_MAJOR PREVIOUS_MINOR PREVIOUS_PATCH <<< "$PREVIOUS_COMMIT_VERSION" + if [[ "$NEW_MAJOR" != "$PREVIOUS_MAJOR" ]] + then + LABEL="release:major" + fi + if [[ "$NEW_MINOR" != "$PREVIOUS_MINOR" ]] + then + LABEL="release:minor" + fi + if [[ "$NEW_PATCH" != "$PREVIOUS_PATCH" ]] + then + LABEL="release:patch" + fi fi echo $NEW_COMMIT_VERSION echo $PREVIOUS_COMMIT_VERSION - echo $NEW_MAJOR - echo $NEW_MINOR - echo $NEW_PATCH - echo $PREVIOUS_MAJOR - echo $PREVIOUS_MINOR - echo $PREVIOUS_PATCH + echo $LABEL From 1fbed2c54101dc62cee3590ed2a690bde9bb11da Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 04:47:30 +0200 Subject: [PATCH 16/33] test ci --- .github/workflows/pr.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index af3199b6..7a4e6e3b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -69,27 +69,20 @@ jobs: IFS='.' read -r PREVIOUS_MAJOR PREVIOUS_MINOR PREVIOUS_PATCH <<< "$PREVIOUS_COMMIT_VERSION" if [[ "$NEW_MAJOR" != "$PREVIOUS_MAJOR" ]] then - LABEL="release:major" + export LABEL="release:major" fi if [[ "$NEW_MINOR" != "$PREVIOUS_MINOR" ]] then - LABEL="release:minor" + export LABEL="release:minor" fi if [[ "$NEW_PATCH" != "$PREVIOUS_PATCH" ]] then - LABEL="release:patch" + export LABEL="release:patch" fi fi - echo $NEW_COMMIT_VERSION - echo $PREVIOUS_COMMIT_VERSION - echo $LABEL - - - - - - #- name: add label - # uses: actions-ecosystem/action-add-labels@v1 - # with: - # labels: bug + - name: Add version bump label + if: env.LABEL + uses: actions-ecosystem/action-add-labels@v1 + with: + labels: $LABEL From 514563e1125dc4df9721a0f414e0a1e6461ee12c Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 12:05:47 +0200 Subject: [PATCH 17/33] test ci --- .github/workflows/pr.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 7a4e6e3b..a4f683bd 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -80,9 +80,11 @@ jobs: export LABEL="release:patch" fi fi + echo $LABEL - name: Add version bump label if: env.LABEL - uses: actions-ecosystem/action-add-labels@v1 - with: - labels: $LABEL + #uses: actions-ecosystem/action-add-labels@v1 + #with: + # labels: $LABEL + run: echo $LABEL From 16bc5206405c330cd98baf1f43ff7fd922a23e8a Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 12:07:10 +0200 Subject: [PATCH 18/33] test ci --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a4f683bd..b96c2e85 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -83,7 +83,7 @@ jobs: echo $LABEL - name: Add version bump label - if: env.LABEL + #if: env.LABEL #uses: actions-ecosystem/action-add-labels@v1 #with: # labels: $LABEL From 3f322d9bd5751a372fc2890f83d37d36d08f5a5e Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 12:09:40 +0200 Subject: [PATCH 19/33] test ci --- .github/workflows/pr.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b96c2e85..248e80b5 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -47,6 +47,8 @@ jobs: version-bump-label: runs-on: ubuntu-22.04 + env: + LABEL: "" steps: @@ -69,15 +71,15 @@ jobs: IFS='.' read -r PREVIOUS_MAJOR PREVIOUS_MINOR PREVIOUS_PATCH <<< "$PREVIOUS_COMMIT_VERSION" if [[ "$NEW_MAJOR" != "$PREVIOUS_MAJOR" ]] then - export LABEL="release:major" + LABEL="release:major" fi if [[ "$NEW_MINOR" != "$PREVIOUS_MINOR" ]] then - export LABEL="release:minor" + LABEL="release:minor" fi if [[ "$NEW_PATCH" != "$PREVIOUS_PATCH" ]] then - export LABEL="release:patch" + LABEL="release:patch" fi fi echo $LABEL From 94e731b94c6413a6d399d6d60803801f4b734198 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 12:11:58 +0200 Subject: [PATCH 20/33] test ci --- .github/workflows/pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 248e80b5..5fbaef8d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -71,15 +71,15 @@ jobs: IFS='.' read -r PREVIOUS_MAJOR PREVIOUS_MINOR PREVIOUS_PATCH <<< "$PREVIOUS_COMMIT_VERSION" if [[ "$NEW_MAJOR" != "$PREVIOUS_MAJOR" ]] then - LABEL="release:major" + export LABEL="release:major" fi if [[ "$NEW_MINOR" != "$PREVIOUS_MINOR" ]] then - LABEL="release:minor" + export LABEL="release:minor" fi if [[ "$NEW_PATCH" != "$PREVIOUS_PATCH" ]] then - LABEL="release:patch" + export LABEL="release:patch" fi fi echo $LABEL From 2a1d44579e2b0e0d3a46d7973c2848c1c1944299 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 12:16:42 +0200 Subject: [PATCH 21/33] test ci --- .github/workflows/pr.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5fbaef8d..0b4d215b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -59,6 +59,7 @@ jobs: token: ${{ secrets.CHANGELOG_TOKEN }} - name: Check version bump + id: verbump run: | GIT='git --git-dir='$PWD'/.git' NEW_COMMIT_VERSION="$(cat hypercomplex/VERSION | grep -oE '[0-9.]+')" @@ -71,22 +72,23 @@ jobs: IFS='.' read -r PREVIOUS_MAJOR PREVIOUS_MINOR PREVIOUS_PATCH <<< "$PREVIOUS_COMMIT_VERSION" if [[ "$NEW_MAJOR" != "$PREVIOUS_MAJOR" ]] then - export LABEL="release:major" + echo "::set-output name=LABEL::release:major" fi if [[ "$NEW_MINOR" != "$PREVIOUS_MINOR" ]] then - export LABEL="release:minor" + echo "::set-output name=LABEL::release:minor" fi if [[ "$NEW_PATCH" != "$PREVIOUS_PATCH" ]] then - export LABEL="release:patch" + echo "::set-output name=LABEL::release:patch" fi fi echo $LABEL - name: Add version bump label + needs: verbump #if: env.LABEL #uses: actions-ecosystem/action-add-labels@v1 #with: # labels: $LABEL - run: echo $LABEL + run: echo ${{ needs.verbump.outputs.LABEL }}" From e1cc1f6f54980b35ddbbe7fa1152932b466855c8 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 12:18:07 +0200 Subject: [PATCH 22/33] test ci --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0b4d215b..22d42fa6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -91,4 +91,4 @@ jobs: #uses: actions-ecosystem/action-add-labels@v1 #with: # labels: $LABEL - run: echo ${{ needs.verbump.outputs.LABEL }}" + run: echo "${{ needs.verbump.outputs.LABEL }}" From 1ce9810afcf855e2ed31818497f98fdfb07d925f Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 12:24:23 +0200 Subject: [PATCH 23/33] test ci --- .github/workflows/pr.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 22d42fa6..a335f024 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -84,11 +84,3 @@ jobs: fi fi echo $LABEL - - - name: Add version bump label - needs: verbump - #if: env.LABEL - #uses: actions-ecosystem/action-add-labels@v1 - #with: - # labels: $LABEL - run: echo "${{ needs.verbump.outputs.LABEL }}" From 419b3f6ffcf60bf06ad4a667c3ee039f38d77320 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 12:27:43 +0200 Subject: [PATCH 24/33] test ci --- .github/workflows/pr.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a335f024..648ab373 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -72,15 +72,23 @@ jobs: IFS='.' read -r PREVIOUS_MAJOR PREVIOUS_MINOR PREVIOUS_PATCH <<< "$PREVIOUS_COMMIT_VERSION" if [[ "$NEW_MAJOR" != "$PREVIOUS_MAJOR" ]] then - echo "::set-output name=LABEL::release:major" + echo "LABEL=release:major" >> $GITHUB_OUTPUT fi if [[ "$NEW_MINOR" != "$PREVIOUS_MINOR" ]] then - echo "::set-output name=LABEL::release:minor" + echo "LABEL=release:minor" >> $GITHUB_OUTPUT fi if [[ "$NEW_PATCH" != "$PREVIOUS_PATCH" ]] then - echo "::set-output name=LABEL::release:patch" + echo "LABEL=release:patch" >> $GITHUB_OUTPUT fi fi echo $LABEL + + - name: Add version bump label + needs: verbump + #if: env.LABEL + #uses: actions-ecosystem/action-add-labels@v1 + #with: + # labels: $LABEL + run: echo $LABEL From 2ca6c78919f5a12d7cb90371bf30a52c5a84864d Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 13:08:54 +0200 Subject: [PATCH 25/33] test ci --- .github/workflows/pr.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 648ab373..eeb1329a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -59,7 +59,6 @@ jobs: token: ${{ secrets.CHANGELOG_TOKEN }} - name: Check version bump - id: verbump run: | GIT='git --git-dir='$PWD'/.git' NEW_COMMIT_VERSION="$(cat hypercomplex/VERSION | grep -oE '[0-9.]+')" @@ -86,7 +85,6 @@ jobs: echo $LABEL - name: Add version bump label - needs: verbump #if: env.LABEL #uses: actions-ecosystem/action-add-labels@v1 #with: From 72d22eb08cd374e1fcd4ea68ae4979cba9f5765c Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 13:12:56 +0200 Subject: [PATCH 26/33] test ci --- .github/workflows/pr.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index eeb1329a..a7fb8d0f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -71,15 +71,15 @@ jobs: IFS='.' read -r PREVIOUS_MAJOR PREVIOUS_MINOR PREVIOUS_PATCH <<< "$PREVIOUS_COMMIT_VERSION" if [[ "$NEW_MAJOR" != "$PREVIOUS_MAJOR" ]] then - echo "LABEL=release:major" >> $GITHUB_OUTPUT + echo "LABEL=release:major" >> $GITHUB_ENV fi if [[ "$NEW_MINOR" != "$PREVIOUS_MINOR" ]] then - echo "LABEL=release:minor" >> $GITHUB_OUTPUT + echo "LABEL=release:minor" >> $GITHUB_ENV fi if [[ "$NEW_PATCH" != "$PREVIOUS_PATCH" ]] then - echo "LABEL=release:patch" >> $GITHUB_OUTPUT + echo "LABEL=release:patch" >> $GITHUB_ENV fi fi echo $LABEL @@ -89,4 +89,4 @@ jobs: #uses: actions-ecosystem/action-add-labels@v1 #with: # labels: $LABEL - run: echo $LABEL + run: echo "${{ env.LABEL }}" From 5c6db12d802b5165b03bc4c608598047027cb794 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 13:16:15 +0200 Subject: [PATCH 27/33] test ci --- .github/workflows/pr.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a7fb8d0f..e9ae94cc 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -82,11 +82,9 @@ jobs: echo "LABEL=release:patch" >> $GITHUB_ENV fi fi - echo $LABEL - name: Add version bump label - #if: env.LABEL - #uses: actions-ecosystem/action-add-labels@v1 - #with: - # labels: $LABEL - run: echo "${{ env.LABEL }}" + if: ${{env.LABEL != ''}} + uses: actions-ecosystem/action-add-labels@v1 + with: + labels: "${{ env.LABEL }}" From 06221df8b4a397fdc980c4e190dfb8b3df2cf11c Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 13:18:32 +0200 Subject: [PATCH 28/33] test ci --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e9ae94cc..b8d4b0a7 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -65,7 +65,7 @@ jobs: $GIT checkout HEAD~1 PREVIOUS_COMMIT_VERSION="$(cat VERSION | grep -oE '[0-9.]+')" $GIT checkout - - if [[ "$NEW_COMMIT_VERSION" != "$PREVIOUS_COMMIT_VERSION" ]] + if [[ "$NEW_COMMIT_VERSION" == "$PREVIOUS_COMMIT_VERSION" ]] then IFS='.' read -r NEW_MAJOR NEW_MINOR NEW_PATCH <<< "$NEW_COMMIT_VERSION" IFS='.' read -r PREVIOUS_MAJOR PREVIOUS_MINOR PREVIOUS_PATCH <<< "$PREVIOUS_COMMIT_VERSION" From e29f505913b6da9799db1aff14d8ce610cbc8a19 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 13:21:03 +0200 Subject: [PATCH 29/33] fix ci --- .github/workflows/pr.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b8d4b0a7..fd4660b7 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -5,7 +5,7 @@ on: # is opened, synchronize, or reopened. We explicity override here so that # PR titles are re-linted when the PR text content is edited. # _target applies to PR from forks. - pull_request: + pull_request_target: types: [opened, edited, reopened, synchronize] jobs: @@ -63,23 +63,23 @@ jobs: GIT='git --git-dir='$PWD'/.git' NEW_COMMIT_VERSION="$(cat hypercomplex/VERSION | grep -oE '[0-9.]+')" $GIT checkout HEAD~1 - PREVIOUS_COMMIT_VERSION="$(cat VERSION | grep -oE '[0-9.]+')" + PREVIOUS_COMMIT_VERSION="$(cat hypercomplex/VERSION | grep -oE '[0-9.]+')" $GIT checkout - - if [[ "$NEW_COMMIT_VERSION" == "$PREVIOUS_COMMIT_VERSION" ]] + if [[ "$NEW_COMMIT_VERSION" !== "$PREVIOUS_COMMIT_VERSION" ]] then IFS='.' read -r NEW_MAJOR NEW_MINOR NEW_PATCH <<< "$NEW_COMMIT_VERSION" IFS='.' read -r PREVIOUS_MAJOR PREVIOUS_MINOR PREVIOUS_PATCH <<< "$PREVIOUS_COMMIT_VERSION" - if [[ "$NEW_MAJOR" != "$PREVIOUS_MAJOR" ]] + if [[ "$NEW_PATCH" != "$PREVIOUS_PATCH" ]] then - echo "LABEL=release:major" >> $GITHUB_ENV + echo "LABEL=release:patch" >> $GITHUB_ENV fi if [[ "$NEW_MINOR" != "$PREVIOUS_MINOR" ]] then echo "LABEL=release:minor" >> $GITHUB_ENV fi - if [[ "$NEW_PATCH" != "$PREVIOUS_PATCH" ]] + if [[ "$NEW_MAJOR" != "$PREVIOUS_MAJOR" ]] then - echo "LABEL=release:patch" >> $GITHUB_ENV + echo "LABEL=release:major" >> $GITHUB_ENV fi fi From 130ea8c808b45bf9390d43498a72f6d7edf66c29 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 13:29:49 +0200 Subject: [PATCH 30/33] gitignore --- .gitignore | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 274ca907..d0e938a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,9 @@ -# Mac directory config +# macOS directory config .DS_Store # local documentation docs/html docs/latex -# Sage notebooks -Hypercomplex.html -Hypercomplex.ipynb +# compiled binaries +test From 5b4b172e54dd8ae056f188cc6a798a9da5a0b256 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 14:04:02 +0200 Subject: [PATCH 31/33] gitattributes --- .gitattributes | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..8cfed98e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,58 @@ +# Normalise line endings automatically for files detected as text by default. +# That is: let the git installation on a user's machine decide +# which line ending to use when a repository is checked out. +# Subsequent lines may override this setting. +* text=auto + +# recognise file syntax during diff +*.hpp text diff=cpp +*.cpp text diff=cpp +*.tex text diff=tex +*.bib text diff=bibtex +*.md text diff=markdown +*.sh text diff=bash + +# force batch scripts to always use CRLF +*.cmd text eol=crlf +*.bat text eol=crlf + +# force bash scripts & Makefile to always use LF +*.sh text eol=lf +Makefile text eol=lf + +# mark binary files explicitly +# (Git does not try to merge these files) +# binary is a built-in macro attribute == -diff -merge -text +*.png binary + +# specify which files/dirs to ignore on [download ZIP] (not a git repo) +.github export-ignore +.test export-ignore +.docs export-ignore +img export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.gitpod.dockerfile export-ignore +.gitpod.yml export-ignore +.pre-commit-config.yaml export-ignore +CODE_OF_CONDUCT.md export-ignore +codecov.yml export-ignore +CODEOWNERS export-ignore +CONTRIBUTING.md export-ignore +Doxyfile export-ignore +environment.yml export-ignore +meta.yaml export-ignore +paper.bib export-ignore +paper.md export-ignore + +# linguist settings: +# +# Gitpod configuration files +.gitpod.dockerfile -linguist-detectable +.gitpod.yml -linguist-detectable +# Dev Docker/env +Dockerfile -linguist-detectable +entrypoint.sh -linguist-detectable +environment.yml -linguist-detectable +# Catch2 test framework +.test/unit/catch.hpp -linguist-detectable From 2d657351b367100fd309fcbd0b57a88047d167d7 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 15:33:27 +0200 Subject: [PATCH 32/33] templates --- .github/ISSUE_TEMPLATE/BLANK_TEMPLATE.yml | 5 + .../ISSUE_TEMPLATE/BUG_REPORT_TEMPLATE.yml | 92 +++++++++++++++++++ .../FEATURE_REQUEST_TEMPLATE.yml | 71 ++++++++++++++ .github/ISSUE_TEMPLATE/bug_report.md | 38 -------- .github/ISSUE_TEMPLATE/config.yml | 4 + .github/ISSUE_TEMPLATE/feature_request.md | 20 ---- .github/PULL_REQUEST_TEMPLATE.md | 32 +++++++ .pre-commit-config.yaml | 2 +- PULL_REQUEST_TEMPLATE.md | 24 ----- 9 files changed, 205 insertions(+), 83 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/BLANK_TEMPLATE.yml create mode 100644 .github/ISSUE_TEMPLATE/BUG_REPORT_TEMPLATE.yml create mode 100644 .github/ISSUE_TEMPLATE/FEATURE_REQUEST_TEMPLATE.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE/BLANK_TEMPLATE.yml b/.github/ISSUE_TEMPLATE/BLANK_TEMPLATE.yml new file mode 100644 index 00000000..a5a05bd3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/BLANK_TEMPLATE.yml @@ -0,0 +1,5 @@ +--- +name: "Blank Template ๐Ÿ’ฌ" +about: Empty template for special occasions only +labels: +--- diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT_TEMPLATE.yml b/.github/ISSUE_TEMPLATE/BUG_REPORT_TEMPLATE.yml new file mode 100644 index 00000000..4c2a2bbd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT_TEMPLATE.yml @@ -0,0 +1,92 @@ +name: Bug Report ๐Ÿ› +description: Create a bug report +title: "" +labels: [bug] +body: + - type: markdown + attributes: + value: | + Thank you for your interest in this project! + + Please read the following instructions carefully. + Having detailed, yet not overcomplicated feedback will help us resolve the issue efficiently ๐Ÿš€ + + **Before reporting a bug, please search for a similar problem in the issues section** + - type: checkboxes + id: checks + attributes: + label: Initial check. + description: Please go through the options carefully. + options: + - label: I added a very descriptive title above. + required: true + - label: I searched through the issues in this repository to find a similar problem, but didn't find any. + required: true + - label: I searched the documentation and found no explanation. + required: true + - label: I searched through Google (including the 2nd page of results) and didn't find any relevant information. + required: true + - label: I asked ChatGPT for help but did not get any meaningful response. + required: false + - type: textarea + id: description + attributes: + label: Please describe what triggered the error. + description: Add a self-contained, [minimal, reproducible, example](https://stackoverflow.com/help/minimal-reproducible-example) with your use case. + placeholder: If you can copy it, run it, and see it right away, there's a much higher chance someone will be able to help you. + validations: + required: true + - type: textarea + id: expected + attributes: + label: What did you expect to happen? + description: How should the program behave without the bug? + placeholder: Describe the ideal outcome. + validations: + required: true + - type: textarea + id: error + attributes: + label: What went wrong? + description: What kind of error message did you get? + placeholder: You should add terminal logs. + validations: + required: true + - type: input + id: gpp_version + attributes: + label: Please specify your compiler's version. + placeholder: g++ --version + validations: + required: true + - type: dropdown + id: os_version + attributes: + label: Operating System + options: + - Linux + - macOS + - Microsoft Windows + - Other + validations: + required: true + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + options: + - label: I agree to follow this project's [Code of Conduct](https://github.com/AngryMaciek/hypercomplex/blob/master/CODE_OF_CONDUCT.md) + required: true + - type: textarea + id: context + attributes: + label: Additional information + description: Add any additional context or screenshots you think might be useful or helpful. + validations: + required: false + - type: markdown + attributes: + value: | + + + *Thank you for your contribution!* diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST_TEMPLATE.yml b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST_TEMPLATE.yml new file mode 100644 index 00000000..88670b3e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST_TEMPLATE.yml @@ -0,0 +1,71 @@ +name: Feature Request ๐Ÿ’ก +description: Suggest an idea for improvement +title: "" +labels: + - enhancement +body: + - type: markdown + attributes: + value: | + Thank you for your interest in this project! + + Please read the following instructions carefully. + Having detailed, yet not overcomplicated feedback will help us implement the idea efficiently ๐Ÿš€ + + **Before suggesting an idea, please search for a similar feature request in the issues section** + - type: checkboxes + id: checks + attributes: + label: Initial check. + description: Please go through the options carefully. + options: + - label: I added a very descriptive title above. + required: true + - label: I searched the documentation and found no similar feature. + required: true + - label: I searched through the issues in this repository to find a similar request, but didn't find any. + required: true + - type: textarea + id: description + attributes: + label: Describe briefly the idea behind the improvement. + description: When would it be useful? What problem would it solve? + placeholder: Try to come up with a use case + validations: + required: true + - type: textarea + id: ideas + attributes: + label: Please specify what would you like to add/change. + description: How would you make your idea come true? + placeholder: You may inclue code snippets + validations: + required: true + - type: textarea + id: alternatives + attributes: + label: Please add other solutions if you considered them. + description: Alternative ways to bring your idea to life. + placeholder: First thought best thought? + validations: + required: false + - type: textarea + id: supplement + attributes: + label: Feel free to provide additional information or more context for your idea. + description: Screenshots or other information you find worth sharing; anything the developers might find useful. + placeholder: + validations: + required: false + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this feature request, you agree to follow our Code of Conduct. + options: + - label: I agree to follow this project's [Code of Conduct](https://github.com/AngryMaciek/hypercomplex/blob/master/CODE_OF_CONDUCT.md) + required: true + - type: markdown + attributes: + value: | + *Keep the ideas coming!* diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index dd84ea78..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..a58a4397 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,4 @@ +blank_issues_enabled: false +contact_links: + - name: Security or Code of Conduct violation + about: Please report security or behaviour issues to wsciekly.maciek@gmail.com diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index bbcbbe7d..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: '' -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..8496d9f6 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,32 @@ +## Proposed changes โคด๏ธ + +Describe the big picture of your changes, add relevant motivation and context. + +**If it fixes a bug or resolves a feature request, please link a corresponding issue:** +Fixes # + +## Types of changes ๐Ÿ”ง + +What type of changes does your code introduce to the project? + +- [ ] Bugfix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) +- [ ] Other + +## Checklist โœ… + +If you're unsure about any of those below, ask explicitly. +This is simply a reminder of what needs to be checked before merging your code. + +- [ ] I have read the [CONTRIBUTING](https://github.com/AngryMaciek/hypercomplex/blob/master/CONTRIBUTING.md). +- [ ] I have performed a self-review of my own code. +- [ ] Tests specified with the 'make' framework do not raise any errors. +- [ ] I have added tests that prove my fix is effective or that my feature works. +- [ ] I have added necessary documentation (if appropriate). +- [ ] My changes generate no new warnings. +- [ ] I have commented my code, particularly in hard-to-understand areas. + +## Further comments ๐Ÿง  + +If this is a relatively large or complex change feel free to provide additional information or explanation. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8f45544e..ea427438 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,5 +43,5 @@ repos: - id: check-yaml name: "[09/09] Check YAML files syntax" files: \.ya?ml$ - exclude: ^meta.yaml + exclude: "^meta.yaml|.github/ISSUE_TEMPLATE/BLANK_TEMPLATE.yml" always_run: true diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 7728aa4c..00000000 --- a/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,24 +0,0 @@ -## Description - -Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - -Fixes # (issue) - -## Type of change - -Please delete options that are not relevant. - -- [ ] Bug fix (non-breaking change which fixes an issue) -- [ ] New feature (non-breaking change which adds functionality) -- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) -- [ ] Documentation updated - -## Checklist: - -- [ ] My code follows the style guidelines of this project -- [ ] I have performed a self-review of my own code -- [ ] I have commented my code, particularly in hard-to-understand areas -- [ ] My changes generate no new warnings -- [ ] I have added tests that prove my fix is effective or that my feature works -- [ ] New and existing unit tests pass locally with my changes -- [ ] I have not reduced the existing code coverage \ No newline at end of file From 9f4fb2a4dc1ccc3df4a20e85fd4a16da795c2727 Mon Sep 17 00:00:00 2001 From: Maciej Bak Date: Thu, 3 Aug 2023 15:36:02 +0200 Subject: [PATCH 33/33] shield --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 259b2f07..d972b3a5 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![CodeFactor](https://www.codefactor.io/repository/github/angrymaciek/hypercomplex/badge)](https://www.codefactor.io/repository/github/angrymaciek/hypercomplex) [![publish](https://github.com/AngryMaciek/hypercomplex/workflows/publish/badge.svg)](https://github.com/AngryMaciek/hypercomplex/actions?query=workflow%3Apublish) [![conda](https://anaconda.org/angrymaciek/hypercomplex/badges/version.svg)](https://anaconda.org/AngryMaciek/hypercomplex) -[![DockerHub](https://badgen.net/badge/icon/2.0.6/docker?icon=docker&label=DockerHub&color=blue)](https://hub.docker.com/r/angrymaciek/capsule) +[![DockerHub](https://badgen.net/badge/icon/2.0.7/docker?icon=docker&label=DockerHub&color=blue)](https://hub.docker.com/r/angrymaciek/capsule) [![DOI](https://joss.theoj.org/papers/10.21105/joss.05272/status.svg)](https://doi.org/10.21105/joss.05272) drawing