Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add 'Release PR Changelog' GitHub action #1970

Closed
wants to merge 7 commits into from
Closed
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
32 changes: 32 additions & 0 deletions .github/workflows/release-changelog.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion webapp/src/components/App/Singlestudy/PropertiesDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function PropertiesDialog(props: Props) {
/>
</Fieldset>

<Fieldset legend="Metadata" fullFieldWidth>
<Fieldset legend="Metadatsddwefddwefwefa" fullFieldWidth>
<CheckboxesTagsFE
options={[]}
label={t("studies.enterTag")}
Expand Down
Loading