Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 461da98

Browse files
authored
Merge pull request #10 from element-hq/dbkr/changelog_repos
Update repos for changelog fetching
2 parents 6dd67b3 + e8c0b65 commit 461da98

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

src/components/views/dialogs/ChangelogDialog.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface Commit {
3838
};
3939
}
4040

41-
const REPOS = ["vector-im/element-web", "matrix-org/matrix-react-sdk", "matrix-org/matrix-js-sdk"] as const;
41+
const REPOS = ["element-hq/element-web", "element-hq/matrix-react-sdk", "matrix-org/matrix-js-sdk"] as const;
4242

4343
export default class ChangelogDialog extends React.Component<IProps, State> {
4444
public constructor(props: IProps) {

test/components/views/dialogs/ChangelogDialog-test.tsx

+14-14
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ import ChangelogDialog from "../../../../src/components/views/dialogs/ChangelogD
2222

2323
describe("<ChangelogDialog />", () => {
2424
it("should fetch github proxy url for each repo with old and new version strings", async () => {
25-
const webUrl = "https://riot.im/github/repos/vector-im/element-web/compare/oldsha1...newsha1";
25+
const webUrl = "https://riot.im/github/repos/element-hq/element-web/compare/oldsha1...newsha1";
2626
fetchMock.get(webUrl, {
27-
url: "https://api.github.com/repos/vector-im/element-web/compare/master...develop",
28-
html_url: "https://github.com/vector-im/element-web/compare/master...develop",
29-
permalink_url: "https://github.com/vector-im/element-web/compare/vector-im:72ca95e...vector-im:8891698",
30-
diff_url: "https://github.com/vector-im/element-web/compare/master...develop.diff",
31-
patch_url: "https://github.com/vector-im/element-web/compare/master...develop.patch",
27+
url: "https://api.github.com/repos/element-hq/element-web/compare/master...develop",
28+
html_url: "https://github.com/element-hq/element-web/compare/master...develop",
29+
permalink_url: "https://github.com/element-hq/element-web/compare/vector-im:72ca95e...vector-im:8891698",
30+
diff_url: "https://github.com/element-hq/element-web/compare/master...develop.diff",
31+
patch_url: "https://github.com/element-hq/element-web/compare/master...develop.patch",
3232
base_commit: {},
3333
merge_base_commit: {},
3434
status: "ahead",
@@ -38,19 +38,19 @@ describe("<ChangelogDialog />", () => {
3838
commits: [
3939
{
4040
sha: "commit-sha",
41-
html_url: "https://api.github.com/repos/vector-im/element-web/commit/commit-sha",
41+
html_url: "https://api.github.com/repos/element-hq/element-web/commit/commit-sha",
4242
commit: { message: "This is the first commit message" },
4343
},
4444
],
4545
files: [],
4646
});
47-
const reactUrl = "https://riot.im/github/repos/matrix-org/matrix-react-sdk/compare/oldsha2...newsha2";
47+
const reactUrl = "https://riot.im/github/repos/element-hq/matrix-react-sdk/compare/oldsha2...newsha2";
4848
fetchMock.get(reactUrl, {
49-
url: "https://api.github.com/repos/matrix-org/matrix-react-sdk/compare/master...develop",
50-
html_url: "https://github.com/matrix-org/matrix-react-sdk/compare/master...develop",
51-
permalink_url: "https://github.com/matrix-org/matrix-react-sdk/compare/matrix-org:cdb00...matrix-org:4a926",
52-
diff_url: "https://github.com/matrix-org/matrix-react-sdk/compare/master...develop.diff",
53-
patch_url: "https://github.com/matrix-org/matrix-react-sdk/compare/master...develop.patch",
49+
url: "https://api.github.com/repos/element-hq/matrix-react-sdk/compare/master...develop",
50+
html_url: "https://github.com/element-hq/matrix-react-sdk/compare/master...develop",
51+
permalink_url: "https://github.com/element-hq/matrix-react-sdk/compare/matrix-org:cdb00...matrix-org:4a926",
52+
diff_url: "https://github.com/element-hq/matrix-react-sdk/compare/master...develop.diff",
53+
patch_url: "https://github.com/element-hq/matrix-react-sdk/compare/master...develop.patch",
5454
base_commit: {},
5555
merge_base_commit: {},
5656
status: "ahead",
@@ -60,7 +60,7 @@ describe("<ChangelogDialog />", () => {
6060
commits: [
6161
{
6262
sha: "commit-sha0",
63-
html_url: "https://api.github.com/repos/matrix-org/matrix-react-sdk/commit/commit-sha",
63+
html_url: "https://api.github.com/repos/element-hq/matrix-react-sdk/commit/commit-sha",
6464
commit: { message: "This is a commit message" },
6565
},
6666
],

test/components/views/dialogs/__snapshots__/ChangelogDialog-test.tsx.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ exports[`<ChangelogDialog /> should fetch github proxy url for each repo with ol
3535
<h2
3636
class="mx_Heading_h4"
3737
>
38-
vector-im/element-web
38+
element-hq/element-web
3939
</h2>
4040
<ul>
4141
<li
4242
class="mx_ChangelogDialog_li"
4343
>
4444
<a
45-
href="https://api.github.com/repos/vector-im/element-web/commit/commit-sha"
45+
href="https://api.github.com/repos/element-hq/element-web/commit/commit-sha"
4646
rel="noreferrer noopener"
4747
target="_blank"
4848
>
@@ -55,14 +55,14 @@ exports[`<ChangelogDialog /> should fetch github proxy url for each repo with ol
5555
<h2
5656
class="mx_Heading_h4"
5757
>
58-
matrix-org/matrix-react-sdk
58+
element-hq/matrix-react-sdk
5959
</h2>
6060
<ul>
6161
<li
6262
class="mx_ChangelogDialog_li"
6363
>
6464
<a
65-
href="https://api.github.com/repos/matrix-org/matrix-react-sdk/commit/commit-sha"
65+
href="https://api.github.com/repos/element-hq/matrix-react-sdk/commit/commit-sha"
6666
rel="noreferrer noopener"
6767
target="_blank"
6868
>

0 commit comments

Comments
 (0)