diff --git a/.github/workflows/release-changelog.yml b/.github/workflows/release-changelog.yml new file mode 100644 index 0000000000..cb4f300cf7 --- /dev/null +++ b/.github/workflows/release-changelog.yml @@ -0,0 +1,32 @@ +name: Release Changelog + +on: + pull_request: + branches: + - master + types: [opened, synchronize] + +jobs: + release-changelog: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 # Important pour s'assurer que tous les commits sont récupérés + + - name: Generate changelog + id: generate_changelog + run: | + npm install -g conventional-changelog-cli + conventional-changelog -p angular -i CHANGELOG.md -s -r 0 + cat CHANGELOG.md > changelog.txt + echo "CHANGELOG_CONTENT=$(cat changelog.txt)" >> $GITHUB_ENV + + - name: Comment on PR + uses: thollander/actions-comment-pull-request@v1 + with: + message: | + ## Changelog + ${{ env.CHANGELOG_CONTENT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/webapp/src/components/App/Singlestudy/PropertiesDialog.tsx b/webapp/src/components/App/Singlestudy/PropertiesDialog.tsx index b92a8999c7..4a9ec1f35d 100644 --- a/webapp/src/components/App/Singlestudy/PropertiesDialog.tsx +++ b/webapp/src/components/App/Singlestudy/PropertiesDialog.tsx @@ -166,7 +166,7 @@ function PropertiesDialog(props: Props) { /> -