Skip to content

Commit

Permalink
Upgrade/element web v1.11.40 (#735)
Browse files Browse the repository at this point in the history
* Upgrade matrix-js-sdk to 25.1.0

* Upgrade matrix-react-sdk to 3.72.0

* Prepare changelog for v1.11.31

* v1.11.31

* Reset matrix-js-sdk back to develop branch

* Reset matrix-react-sdk back to develop branch

* Allow welcome.html logo to be replaced by config (#25339)

* Improve bundle size and add webpack-bundle-analyzer (#25337)

* Handle trailing dot FQDNs for domain-specific config.json files (#25351)

* Remove old ansible comments (#25352)

* Fix analyse:webpack-bundles script (#25353)

* Increase yarn timeout (#25377)

* Translations update from Weblate (#25382)

Co-authored-by: raspin0 <marcinekk13@interia.pl>
Co-authored-by: Weblate <translate@riot.im>
Co-authored-by: someone1611 <hahahahacker2009@outlook.com>

* Upgrade matrix-react-sdk to 3.73.0-rc.1

* Upgrade matrix-js-sdk to 25.2.0-rc.4

* Prepare changelog for v1.11.32-rc.1

* v1.11.32-rc.1

* Update typescript-eslint monorepo to v5.59.5 (#25386)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency eslint-plugin-unicorn to v47 (#25389)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency @types/node to v16.18.30 (#25385)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#25387)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Upgrade matrix-react-sdk to 3.73.0-rc.2

* Upgrade matrix-js-sdk to 25.2.0-rc.5

* Prepare changelog for v1.11.32-rc.2

* v1.11.32-rc.2

* vector/index.html: Allow fetching blob urls (#25336)

* Track release blockers in Matrix room header (#25427)

* Update pending-reviews.yaml

* Update pending-reviews.yaml

* Update pending-reviews.yaml

* Update build_develop.yml

* Update build_develop.yml

* Update build_develop.yml

* Redirect to the SSO page if `sso_redirect_options.on_welcome_page` is enabled and the URL hash is empty (#25495)

* Upgrade matrix-react-sdk to 3.73.0-rc.3

* Upgrade matrix-js-sdk to 26.0.0-rc.1

* Prepare changelog for v1.11.32-rc.3

* v1.11.32-rc.3

* Update typescript-eslint monorepo to v5.59.7 (#25503)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#25504)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency jest-canvas-mock to v2.5.1 (#25506)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update cloudflare/pages-action digest to f0a1cd5 (#25501)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency @types/node to v16.18.34 (#25502)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency @sentry/webpack-plugin to v2 (#25507)

* Update dependency @sentry/webpack-plugin to v2

* Follow migration guide

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Upgrade matrix-js-sdk to 26.0.0

* Upgrade matrix-react-sdk to 3.73.0

* Prepare changelog for v1.11.32

* v1.11.32

* Reset matrix-js-sdk back to develop branch

* Reset matrix-react-sdk back to develop branch

* Add documentation for config to skip widget_build_url for DM rooms (#25518)

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Upgrade matrix-js-sdk to 26.0.1

* Upgrade matrix-react-sdk to 3.73.1

* Prepare changelog for v1.11.33

* v1.11.33

* Reset matrix-js-sdk back to develop branch

* Reset matrix-react-sdk back to develop branch

* Translations update from Weblate (#25577)

* Translated using Weblate (Vietnamese)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/vi/

* Translated using Weblate (Portuguese)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/pt/

---------

Co-authored-by: someone1611 <hahahahacker2009@outlook.com>
Co-authored-by: Weblate <translate@riot.im>
Co-authored-by: Someone <hahahahacker2009@gmail.com>
Co-authored-by: luy dinilta <luydinilta@gufum.com>

* Upgrade matrix-js-sdk to 26.1.0-rc1

* Upgrade matrix-react-sdk to 3.74.0-rc1

* Prepare changelog for v1.11.34-rc1

* v1.11.34-rc1

* Document help_url and help_encryption_url (#25549)

* Remove `feature_favourite_messages` as it is has been abandoned for now (#25605)

* Fix error when generating error for polling for updates (#25609)

* Deprecate new breadcrumbs (#25617)

* Upgrade matrix-js-sdk to 26.1.0

* Upgrade matrix-react-sdk to 3.74.0

* Prepare changelog for v1.11.34

* v1.11.34

* Reset matrix-js-sdk back to develop branch

* Reset matrix-react-sdk back to develop branch

* Point develop.element.io to our Element Call + LiveKit experiment (#25636)

This is an experimental version of Element Call using a LiveKit SFU that we'd like to start dogfooding and gaining confidence on internally, so the current plan is to trial it on develop.element.io and Nightly for a while.

* Remove the ACAO header which is added by default on Cloudflare Pages (#25644)

* Revert "Point develop.element.io to our Element Call + LiveKit experiment" (#25651)

* Update docker/build-push-action digest to 2eb1c19 (#25583)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Point develop.element.io to our Element Call + LiveKit experiment (#25660)

This reintroduces 278c494, now that we've made that deployment work in widget mode once again.

* Bump semver from 7.5.1 to 7.5.2 (#25661)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update docker/metadata-action digest to 818d4b7 (#25585)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* document io.element.e2ee.force_disable (#25662)

* Translations update from Weblate (#25669)

Co-authored-by: AcidAntOnAMinefield <nuno.martins@catraxx.org>
Co-authored-by: Tmpod <tom@tmpod.dev>
Co-authored-by: rofyobilte <rofyobilte@gufum.com>
Co-authored-by: Weblate <translate@riot.im>
Co-authored-by: Makkkkus <nygardboi@protonmail.com>
Co-authored-by: Nils Haugen <nils@gaupne.net>

* Upgrade matrix-react-sdk to 3.75.0-rc.1

* Upgrade matrix-js-sdk to 26.2.0-rc.1

* Prepare changelog for v1.11.35-rc.1

* v1.11.35-rc.1

* Update dependency @types/node to v16.18.35 (#25590)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency @types/jest to v29.5.2 (#25589)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update typescript-eslint monorepo to v5.60.0 (#25591)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update docker/setup-buildx-action digest to ecf9528 (#25586)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update docker/login-action digest to 465a078 (#25584)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update docker/setup-qemu-action digest to 2b82ce8 (#25587)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Update peter-evans/dockerhub-description digest to dc67fad (#25671)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* remove auth params from url after login attempt (#25664)

* Conform more of the codebase to strictNullChecks & noImplicitAny (#25680)

* Update all non-major dependencies (#25588)

* Update all non-major dependencies

* Roll back typescript

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Align develop.e.io cloudflare pages headers with other deploys (#25700)

* Upgrade matrix-react-sdk to 3.75.0

* Upgrade matrix-js-sdk to 26.2.0

* Prepare changelog for v1.11.35

* v1.11.35

* Reset matrix-react-sdk back to develop branch

* Reset matrix-js-sdk back to develop branch

* Tweak branch matching to allow not applying outside of PRs for matrix-analytics-events (#25712)

* Update matrix-react-sdk yarn.lock

* Enable strictNullChecks and noImplicitAny (#25724)

* Enable strictPropertyInitialization (#25729)

* Enable strictFunctionTypes (#25730)

* Enable strictPropertyInitialization (#25735)

* Deprecate customisations in favour of Module API (#25736)

* Bump stylelint from 15.9.0 to 15.10.1 (#25739)

Bumps [stylelint](https://github.com/stylelint/stylelint) from 15.9.0 to 15.10.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](stylelint/stylelint@15.9.0...15.10.1)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tough-cookie from 4.1.2 to 4.1.3 (#25743)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Allow default_server_config as a fallback config (#25682)

* Utility automation for updating topics as part of release process (#25725)

* Update update-topics.yaml

* Add `default_server_config` fallback to element.io configs (#19695)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Update update-topics.yaml

* Update update-topics.yaml

* Update update-topics.yaml

* Update update-topics.yaml

* Update update-topics.yaml

* Update update-topics.yaml

* Update update-topics.yaml

* Delete redundant make-icons.sh (#25747)

* store fragmentafterlogin in sesison storage for oidc login (#25688)

* Translations update from Weblate (#25750)

* Translated using Weblate (Vietnamese)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/vi/

* Added translation using Weblate (Swahili)

* Translated using Weblate (Swahili)

Currently translated at 3.3% (1 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/sw/

* Translated using Weblate (Swahili)

Currently translated at 3.3% (1 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/sw/

* Translated using Weblate (Swahili)

Currently translated at 3.3% (1 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/sw/

* Translated using Weblate (Latvian)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/lv/

* Translated using Weblate (Latvian)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/lv/

* Translated using Weblate (Swahili)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/sw/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/sk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/

* Translated using Weblate (German)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/de/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/uk/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/et/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/zh_Hant/

* Translated using Weblate (French)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/fr/

---------

Co-authored-by: Someone <hahahahacker2009@gmail.com>
Co-authored-by: walito-arch <walitogama@gmail.com>
Co-authored-by: Weblate <translate@riot.im>
Co-authored-by: Edgars Andersons <Edgars+Element-translations@gaitenis.id.lv>
Co-authored-by: Jozef Gaal <preklady@mayday.sk>
Co-authored-by: Vri <element@vrifox.cc>
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Co-authored-by: Priit Jõerüüt <riot@joeruut.com>
Co-authored-by: Jeff Huang <s8321414@gmail.com>
Co-authored-by: Glandos <bugs-github@antipoul.fr>

* Update dependency @matrix-org/react-sdk-module-api to v1 (#25754)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Upgrade matrix-js-sdk to 27.0.0-rc.1

* Upgrade matrix-react-sdk to 3.76.0-rc.1

* Prepare changelog for v1.11.36-rc.1

* v1.11.36-rc.1

* Update update-topics.yaml

* Update logging ignore list comment (#25769)

* Remove rageshake server from config.sample.json (#25772)

* Update babel monorepo (#25505)

* Update babel monorepo

* Add missing @babel/plugin-proposal-logical-assignment-operators dependency

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Update dependency @types/node to v16.18.38 (#25758)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update jest (#25760)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency stylelint-config-standard to v34 (#25765)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update typescript-eslint monorepo to v5.61.0 (#25761)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update update-topics.yaml

* Update update-topics.yaml

* Update update-topics.yaml

* Fix regex not handling rc versions

* Update update-topics.yaml

* Deprecate camelCase config options (#25800)

* Upgrade matrix-js-sdk to 27.0.0-rc.2

* Upgrade matrix-react-sdk to 3.76.0-rc.2

* Prepare changelog for v1.11.36-rc.2

* v1.11.36-rc.2

* Switch to the new `session` API for screen-sharing (#25802)

* Update all non-major dependencies (#25759)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Test: don't unmount `MatrixChat` before setup is finished (#25783)

* Correct Jitsi preferred_domain property (#25813)

* Remove redundant dependencies (#25814)

* Update docker/setup-buildx-action digest to 4c0219f (#25757)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Lock file maintenance (#25145)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Removing stale labs flag (#25823)

* Upgrade matrix-js-sdk to 27.0.0

* Upgrade matrix-react-sdk to 3.76.0

* Prepare changelog for v1.11.36

* v1.11.36

* Reset matrix-js-sdk back to develop branch

* Reset matrix-react-sdk back to develop branch

* Avoid using deprecated config.json key casing (#25833)

* Avoid using deprecated config.json key casing

* Fix configs s'more

* Translations update from Weblate (#25856)

Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: random <dictionary@tutamail.com>
Co-authored-by: Jozef Gaal <preklady@mayday.sk>
Co-authored-by: Weblate <translate@riot.im>
Co-authored-by: James Choi <tienipia@gmail.com>
Co-authored-by: Srebrni <kiborg@novko.si>
Co-authored-by: waclaw66 <waclaw66@seznam.cz>
Co-authored-by: Someone <hahahahacker2009@gmail.com>
Co-authored-by: LinAGKar <linus.kardell@gmail.com>
Co-authored-by: raspin0 <marcinekk13@interia.pl>
Co-authored-by: Edgars Andersons <Edgars+Element-translations@gaitenis.id.lv>

* Upgrade matrix-react-sdk to 3.77.0-rc.1

* Upgrade matrix-js-sdk to 27.1.0-rc.1

* Prepare changelog for v1.11.37-rc.1

* v1.11.37-rc.1

* Update dependency eslint-plugin-unicorn to v48 (#25859)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency @types/node to v16.18.39 (#25857)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update all non-major dependencies (#25858)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Lock file maintenance (#25860)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Lock file maintenance (#25886)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Document 'feature_new_room_decoration_ui' (#25890)

* Upgrade matrix-react-sdk to 3.77.0

* Upgrade matrix-js-sdk to 27.1.0

* Prepare changelog for v1.11.37

* v1.11.37

* Reset matrix-react-sdk back to develop branch

* Reset matrix-js-sdk back to develop branch

* Transpile @vector-im/compound-web with babel (#25906)

* Package release builds of element-web in package.element.io debs (#25198)

* Remove feature_right_panel_default_open (#25915)

* [Backport staging] Package release builds of element-web in package.element.io debs (#25921)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Upgrade matrix-react-sdk to 3.77.1

* Prepare changelog for v1.11.38

* v1.11.38

* Reset matrix-js-sdk back to develop branch

* Reset matrix-react-sdk back to develop branch

* Update build_debian.yaml

* Update labs.md for knock rooms (#25923)

* Translations update from Weblate (#25935)

Co-authored-by: Jan Schönfeld <jan.schoenfeld@tutanota.de>
Co-authored-by: Vri <element@vrifox.cc>
Co-authored-by: Weblate <translate@riot.im>

* Update tibdex/backport digest to 9565281 (#25936)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Upgrade matrix-react-sdk to 3.78.0-rc.1

* Upgrade matrix-js-sdk to 27.2.0-rc.1

* Prepare changelog for v1.11.39-rc.1

* v1.11.39-rc.1

* Update babel monorepo to v7.22.10 (#25937)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency eslint-config-prettier to v9 (#25939)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Lock file maintenance (#25940)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update setupFilesAfterEnv to TS (#25928)

* Fix tests for Matrix v1.1 requirement (#25898)

* Update all non-major dependencies (#25938)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Upgrade matrix-react-sdk to 3.78.0

* Upgrade matrix-js-sdk to 27.2.0

* Prepare changelog for v1.11.39

* v1.11.39

* Reset matrix-react-sdk back to develop branch

* Reset matrix-js-sdk back to develop branch

* Remove redundant `makeRegistrationUrl` prop (#25953)

* Switch to nested object pluralisation format for i18n files (#25970)

* Tidy and improve dev scripts (#25978)

* Allow external assets loading (#25998)

* Fix path separator for Windows based systems (#25997)

* Bump @matrix-org/react-sdk-module-api from 1.0.0 to 2.0.0 (#25986)

* Remove `Exploring public spaces` from labs.md (#25991)

* Translated using Weblate (Georgian) (#26029)

Currently translated at 100.0% (30 of 30 strings)

Translation: Element Web/element-web
Translate-URL: https://translate.element.io/projects/element-web/element-web/ka/

Co-authored-by: Nicholas Winterhalter <gewinum@gmail.com>
Co-authored-by: Weblate <translate@riot.im>

* Upgrade matrix-js-sdk to 28.0.0-rc.1

* Upgrade matrix-react-sdk to 3.79.0-rc.2

* Prepare changelog for v1.11.40-rc.1

* v1.11.40-rc.1

* Upgrade matrix-js-sdk to 28.0.0

* Upgrade matrix-react-sdk to 3.79.0

* Prepare changelog for v1.11.40

* v1.11.40

* Patches without breaks, migrated by script

* Fixed patch activate-cross-signing-etc

* Fixed patch forgot-password (not tested yet, could break the feature)

* Fixed hide-discovery-email etc

* Restore some deps, they had been lost during merge

* Fix patch "Registration for mainlining"

* Lint webpack.config.js

* Upgrade cypress

* Fix translation bug in welcome page

* Upgrade cypress related deps

* Fix unit test setup

* Use WorkMessaging UI profile (#756)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: RiotRobot <releases@riot.im>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: Element Translate Bot <admin@riot.im>
Co-authored-by: raspin0 <marcinekk13@interia.pl>
Co-authored-by: Weblate <translate@riot.im>
Co-authored-by: someone1611 <hahahahacker2009@outlook.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: 许煜恒 <39673849+SuperKenVery@users.noreply.github.com>
Co-authored-by: Dominik Henneke <dominik.henneke@nordeck.net>
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: Someone <hahahahacker2009@gmail.com>
Co-authored-by: luy dinilta <luydinilta@gufum.com>
Co-authored-by: Germain <germain@souquet.com>
Co-authored-by: Robin <robin@robin.town>
Co-authored-by: Laurence Gill <laurencegill@users.noreply.github.com>
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kerry <kerrya@element.io>
Co-authored-by: AcidAntOnAMinefield <nuno.martins@catraxx.org>
Co-authored-by: Tmpod <tom@tmpod.dev>
Co-authored-by: rofyobilte <rofyobilte@gufum.com>
Co-authored-by: Makkkkus <nygardboi@protonmail.com>
Co-authored-by: Nils Haugen <nils@gaupne.net>
Co-authored-by: 夜坂雅 <23130178+ShadowRZ@users.noreply.github.com>
Co-authored-by: Aaron Raimist <aaron@raim.ist>
Co-authored-by: walito-arch <walitogama@gmail.com>
Co-authored-by: Edgars Andersons <Edgars+Element-translations@gaitenis.id.lv>
Co-authored-by: Jozef Gaal <preklady@mayday.sk>
Co-authored-by: Vri <element@vrifox.cc>
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Co-authored-by: Priit Jõerüüt <riot@joeruut.com>
Co-authored-by: Jeff Huang <s8321414@gmail.com>
Co-authored-by: Glandos <bugs-github@antipoul.fr>
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Co-authored-by: Ben Banfield-Zanin <benbz@matrix.org>
Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: random <dictionary@tutamail.com>
Co-authored-by: James Choi <tienipia@gmail.com>
Co-authored-by: Srebrni <kiborg@novko.si>
Co-authored-by: waclaw66 <waclaw66@seznam.cz>
Co-authored-by: LinAGKar <linus.kardell@gmail.com>
Co-authored-by: Charly Nguyen <1422657+charlynguyen@users.noreply.github.com>
Co-authored-by: Jan Schönfeld <jan.schoenfeld@tutanota.de>
Co-authored-by: Nicholas Winterhalter <gewinum@gmail.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 121 changed files with 3,831 additions and 1,303 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Backport
on:
pull_request_target:
types:
- closed
- labeled
branches:
- develop

jobs:
backport:
name: Backport
runs-on: ubuntu-latest
# Only react to merged PRs for security reasons.
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
steps:
- uses: tibdex/backport@9565281eda0731b1d20c4025c43339fb0a23812e # v2
with:
labels_template: "<%= JSON.stringify([...labels, 'X-Release-Blocker']) %>"
# We can't use GITHUB_TOKEN here or CI won't run on the new PR
github_token: ${{ secrets.ELEMENT_BOT_TOKEN }}
56 changes: 56 additions & 0 deletions .github/workflows/build_debian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build Debian package
on:
release:
types: [published]
concurrency: ${{ github.workflow }}
jobs:
build:
name: Build package
if: github.event.release.prerelease == false
environment: packages.element.io
runs-on: ubuntu-latest
env:
R2_INCOMING_BUCKET: ${{ vars.R2_INCOMING_BUCKET }}
R2_URL: ${{ vars.CF_R2_S3_API }}
steps:
- uses: actions/checkout@v3

- name: Prepare
run: |
mkdir -p /tmp/element-web-debian/DEBIAN
cp -R debian/ /tmp/element-web-debian/DEBIAN/
mkdir -p /tmp/element-web-debian/usr/share/element-web/
wget https://github.com/vector-im/element-web/releases/download/$VERSION/element-$VERSION.tar.gz
mv element-* /tmp/element-web-debian/usr/share/element-web
mv debian/usr/share/element-web/config.sample.json /tmp/element-web-debian/usr/share/element-web/config.json
env:
VERSION: ${{ github.ref_name }}

- name: Build deb package
run: |
VERSION=$(cat package.json | jq -r .version)
chmod -R u=rw,go=r /tmp/element-web-debian/usr/share/element-web/
dpkg-deb -Zxz --root-owner-group -VVersion=$VERSION --build /tmp/element-web-debian element-web.deb
# For now just upload the artifact to github
- uses: actions/upload-artifact@v3
with:
name: debs
path: "*.deb"
retention-days: 14

#- name: Upload incoming deb
# run: aws s3 cp element-io-archive-keyring.deb "s3://$R2_INCOMING_BUCKET" --endpoint-url "$R2_URL" --region auto
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.CF_R2_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.CF_R2_TOKEN }}

#reprepro:
# needs: build
# name: Run reprepro
# if: inputs.deploy && github.event.release.prerelease == false
# uses: ./.github/workflows/reprepro.yaml
# secrets: inherit
# with:
# incoming: element-web.deb
118 changes: 118 additions & 0 deletions .github/workflows/build_develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Separate to the main build workflow for access to develop
# environment secrets, largely similar to build.yaml.
name: Build and Deploy develop
on:
push:
branches: [develop]
repository_dispatch:
types: [element-web-notify]
concurrency:
group: ${{ github.repository_owner }}-${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
build:
name: "Build & Deploy develop.element.io"
# Only respect triggers from our develop branch, ignore that of forks
if: github.repository == 'vector-im/element-web'
runs-on: ubuntu-latest
environment: develop
env:
R2_BUCKET: "element-web-develop"
R2_URL: ${{ vars.CF_R2_S3_API }}
R2_PUBLIC_URL: "https://element-web-develop.element.io"
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
cache: "yarn"

- name: Install Dependencies
run: "./scripts/layered.sh"

- name: Build, Package & Upload sourcemaps
run: "./scripts/ci_package.sh"
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_ORG: element
SENTRY_PROJECT: riot-web
# We only deploy the latest bundles to Cloudflare Pages and use _redirects to fallback to R2 for
# older ones. This redirect means that 'self' is insufficient in the CSP,
# and we have to add the R2 URL.
# Once Cloudflare redirects support proxying mode we will be able to ditch this.
# See Proxying in support table at https://developers.cloudflare.com/pages/platform/redirects
CSP_EXTRA_SOURCE: ${{ env.R2_PUBLIC_URL }}

- run: mv dist/element-*.tar.gz dist/develop.tar.gz

- uses: actions/upload-artifact@v3
with:
name: webapp
path: dist/develop.tar.gz
retention-days: 1

- name: Extract webapp
run: |
mkdir _deploy
tar xf dist/develop.tar.gz -C _deploy --strip-components=1
- name: Copy config
run: cp element.io/develop/config.json _deploy/config.json

- name: Populate 404.html
run: echo "404 Not Found" > _deploy/404.html

- name: Populate _headers
run: cp .github/cfp_headers _deploy/_headers

# Redirect requests for the develop tarball and the historical bundles to R2
# We find the latest 100 bundle.css files and add their bundles to the redirects file
# S3 has no sane way to get the age of a directory as they don't really exist
- name: Populate _redirects
run: |
{
echo "/develop.tar.gz $R2_PUBLIC_URL/develop.tar.gz 301"
aws s3api --region auto --endpoint-url $R2_URL list-objects-v2 --bucket $R2_BUCKET \
--query "sort_by(Contents[?ends_with(Key, '/bundle.css')], &LastModified)[-100:].Key" \
--prefix "bundles/" | jq -r '.[]' | grep -oE '[^\"].*\/\s*' | while read -r path ; do
echo "/${path}* $R2_PUBLIC_URL/${path}:splat 301"
done
} | tee _deploy/_redirects
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CF_R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CF_R2_TOKEN }}

- name: Wait for other steps to succeed
uses: t3chguy/wait-on-check-action@05861d3a448898eb33dfce34153bd1ecb9422fb9 # fork
with:
ref: ${{ github.sha }}
running-workflow-name: "Build & Deploy develop.element.io"
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
check-regexp: ^((?!SonarCloud|SonarQube|issue|board|label).)*$

# We keep the latest develop.tar.gz on R2 instead of relying on the github artifact uploaded earlier
# as the expires after 24h and requires auth to download.
# Element Desktop's fetch script uses this tarball to fetch latest develop to build Nightlies.
- name: Deploy to R2
run: |
aws s3 cp dist/develop.tar.gz s3://$R2_BUCKET/develop.tar.gz --endpoint-url $R2_URL --region=auto
aws s3 cp _deploy/ s3://$R2_BUCKET/ --recursive --endpoint-url $R2_URL --region=auto
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CF_R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CF_R2_TOKEN }}

- name: Deploy to Cloudflare Pages
id: cfp
uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca # v1
with:
apiToken: ${{ secrets.CF_PAGES_TOKEN }}
accountId: ${{ secrets.CF_PAGES_ACCOUNT_ID }}
projectName: element-web-develop
directory: _deploy
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

- run: |
echo "Deployed to ${{ steps.cfp.outputs.url }}" >> $GITHUB_STEP_SUMMARY
61 changes: 61 additions & 0 deletions .github/workflows/dockerhub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Dockerhub
on:
workflow_dispatch: {}
push:
tags: [v*]
schedule:
# This job can take a while, and we have usage limits, so just publish develop only twice a day
- cron: "0 7/12 * * *"
concurrency: ${{ github.workflow }}-${{ github.ref_name }}
jobs:
buildx:
name: Docker Buildx
runs-on: ubuntu-latest
environment: dockerhub
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # needed for docker-package to be able to calculate the version

- name: Set up QEMU
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2
with:
install: true

- name: Login to Docker Hub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 # v4
with:
images: |
vectorim/element-web
tags: |
type=ref,event=branch
type=ref,event=tag
flavor: |
latest=${{ contains(github.ref_name, '-rc.') && 'false' || 'auto' }}
- name: Build and push
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Update repo description
uses: peter-evans/dockerhub-description@dc67fad7001ef9e8e3c124cb7a64e16d0a63d864 # v3
continue-on-error: true
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: vectorim/element-web
90 changes: 90 additions & 0 deletions .github/workflows/pending-reviews.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Pending reviews automation
on:
# We run it on a schedule instead of on pull_request_* events to not create confusing messaging in the PR
schedule:
- cron: "*/10 * * * *"
concurrency: ${{ github.workflow }}
jobs:
bot:
name: Pending reviews bot
runs-on: ubuntu-latest
environment: Matrix
env:
URL: "https://github.com/pulls?q=is%3Apr+is%3Aopen+repo%3Amatrix-org%2Fmatrix-js-sdk+repo%3Amatrix-org%2Fmatrix-react-sdk+repo%3Avector-im%2Felement-web+repo%3Avector-im%2Felement-desktop+review-requested%3A%40me+sort%3Aupdated-desc+"
RELEASE_BLOCKERS_URL: "https://github.com/pulls?q=is%3Aopen+repo%3Amatrix-org%2Fmatrix-js-sdk+repo%3Amatrix-org%2Fmatrix-react-sdk+repo%3Avector-im%2Felement-web+repo%3Avector-im%2Felement-desktop+sort%3Aupdated-desc+label%3AX-Release-Blocker+"
steps:
- uses: actions/github-script@v6
env:
HS_URL: ${{ secrets.BETABOT_HS_URL }}
ROOM_ID: ${{ secrets.ROOM_ID }}
TOKEN: ${{ secrets.BETABOT_ACCESS_TOKEN }}
with:
# PAT needed as the GITHUB_TOKEN won't be able to see cross-references from other orgs (matrix-org)
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
script: |
const { HS_URL, ROOM_ID, TOKEN, URL, RELEASE_BLOCKERS_URL } = process.env;
async function updateCounter(counter, link, severity, title, value, clearOnZero) {
const apiUrl = `${HS_URL}/_matrix/client/v3/rooms/${ROOM_ID}/state/re.jki.counter/${counter}`;
const headers = {
"Content-Type": "application/json",
"Authorization": `Bearer ${TOKEN}`,
};
const res = await fetch(apiUrl, {
method: "GET",
headers,
});
const data = await res.json();
if (data.value === issueCount) {
console.log("Pending review count already correct");
return;
}
let body = {};
if (issueCount || !clearOnZero) {
body = JSON.stringify({
link,
severity,
title,
value,
});
}
await fetch(apiUrl, {
method: "PUT",
body,
headers,
});
}
const repos = [
"vector-im/element-desktop",
"vector-im/element-web",
"matrix-org/matrix-react-sdk",
"matrix-org/matrix-js-sdk",
];
const teams = [
"matrix-org/element-web-app-team",
"matrix-org/element-web",
"vector-im/element-web-app-team",
"vector-im/element-web",
];
let issueCount = 0;
for (const team of teams) {
const org = team.split("/", 2)[0];
const reposInOrg = repos.filter(repo => repo.startsWith(org + "/"));
const { data } = await github.rest.search.issuesAndPullRequests({
q: `is:pr is:open review:required ${reposInOrg.map(r => `repo:${r}`).join(" ")} team-review-requested:${team}`,
});
issueCount += data.total_count;
}
await updateCounter("gh_reviews", URL, "warning", "Pending reviews", issueCount);
const { data } = await github.rest.search.issuesAndPullRequests({
q: `is:open ${repos.map(repo => `repo:${repo}`).join(" ")} label:X-Release-Blocker`,
});
const blockerCount = data.total_count;
await updateCounter("release_blockers", RELEASE_BLOCKERS_URL, "alert", "Release Blockers", blockerCount, true);
Loading

0 comments on commit 98597b0

Please sign in to comment.