This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 830
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
282 changed files
with
12,333 additions
and
4,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | ||
with: | ||
labels_template: "<%= JSON.stringify(labels) %>" | ||
# We can't use GITHUB_TOKEN here or CI won't run on the new PR | ||
github_token: ${{ secrets.ELEMENT_BOT_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,5 +90,40 @@ jobs: | |
|
||
- name: Dead Code Analysis | ||
run: | | ||
cd element-web | ||
cd element-web | ||
yarn run analyse:unused-exports | ||
tsc-strict: | ||
name: Typescript Strict Error Checker | ||
if: github.event_name == 'pull_request' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
checks: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get diff lines | ||
id: diff | ||
uses: Equip-Collaboration/[email protected] | ||
with: | ||
include: '["\\.tsx?$"]' | ||
|
||
- name: Detecting files changed | ||
id: files | ||
uses: futuratrepadeira/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
pattern: '^.*\.tsx?$' | ||
|
||
- uses: t3chguy/typescript-check-action@main | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
use-check: false | ||
check-fail-mode: added | ||
output-behaviour: annotate | ||
ts-extra-args: '--strict' | ||
files-changed: ${{ steps.files.outputs.files_updated }} | ||
files-added: ${{ steps.files.outputs.files_created }} | ||
files-deleted: ${{ steps.files.outputs.files_deleted }} | ||
line-numbers: ${{ steps.diff.outputs.lineNumbers }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Contributing code to The React SDK | ||
================================== | ||
Contributing code to matrix-react-sdk | ||
===================================== | ||
|
||
matrix-react-sdk follows the same pattern as https://github.com/matrix-org/matrix-js-sdk/blob/master/CONTRIBUTING.md | ||
matrix-react-sdk follows the same pattern as https://github.com/vector-im/element-web/blob/develop/CONTRIBUTING.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.