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

Let GitHub generates the release notes #3105

Merged
merged 13 commits into from
Jun 27, 2024

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Jun 27, 2024

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other : release note

Content

Remove the usage of towncrier and let GitHub generate the release note

Labels have been created: https://github.com/element-hq/element-x-android/labels?q=PR-

Motivation and context

No need to create towncrier file anymore and rely on GitHub

Use same DevX than on iOS. Inspired by element-hq/element-x-ios#2966

Limitation: during a release the file CHANGES.md will have to be updated after the release has been generated. We keep this file for an easy way to grep releases content.

Screenshots / GIFs

Tests

  • Nothing particular, if CI is happy with this PR this is fine
  • Need to be carefull for the next release, ideally the folder ./changelog.d will have to be deleted after the next release.

Tested devices

NA

Checklist

@bmarty bmarty requested a review from a team as a code owner June 27, 2024 10:47
@bmarty bmarty requested review from ganfra and removed request for a team June 27, 2024 10:47
@bmarty
Copy link
Member Author

bmarty commented Jun 27, 2024

image

Good!

@bmarty bmarty added the PR-Build For changes related to build, tools, CI/CD label Jun 27, 2024
Copy link
Contributor

github-actions bot commented Jun 27, 2024

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/9Pai6F

Copy link

codecov bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.96%. Comparing base (d638d61) to head (790c0aa).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3105   +/-   ##
========================================
  Coverage    75.96%   75.96%           
========================================
  Files         1636     1636           
  Lines        38629    38629           
  Branches      7467     7467           
========================================
  Hits         29345    29345           
  Misses        5395     5395           
  Partials      3889     3889           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -25,7 +25,7 @@ jobs:
body: `Thank you for your contribution! Here are a few things to check in the PR to ensure it's reviewed as quickly as possible:

- Your branch should be based on \`origin/develop\`, at least when it was created.
- There is a changelog entry in the \`changelog.d\` folder with [the Towncrier format](https://towncrier.readthedocs.io/en/latest/tutorial.html#creating-news-fragments).
- The title of the PR will be used for release notes, so it need to describe the change visible to the user.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: it needs

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -55,7 +55,7 @@ Uncomment this markdown table below and edit the last line `|||`:
- [ ] UI change has been tested on both light and dark themes
- [ ] Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
- [ ] Pull request is based on the develop branch
- [ ] Pull request includes a new file under ./changelog.d. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#changelog
- [ ] Pull request title will be used in the release note, it clearly define what will change for the user
Copy link
Member

@jmartinesp jmartinesp Jun 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we mention the usage of labels here too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danger will complain if the label is missing, so I do not think it worth it. Also I do not think external contributors using forks can add labels (not sure about this).

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested the release script, but the changes seem fine to me. Thanks!

Copy link

sonarcloud bot commented Jun 27, 2024

@bmarty bmarty merged commit 6fd5964 into develop Jun 27, 2024
23 checks passed
@bmarty bmarty deleted the feature/bma/releaseNotesNoTowncrier branch June 27, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-Build For changes related to build, tools, CI/CD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants