Skip to content

Commit a4cd012

Browse files
Merge pull request #792 from natboehm/team-github-link
fixing link to github team page via crates team page
2 parents af7f0c1 + bc3bb73 commit a4cd012

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

mirage/fixtures/team.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export default {
55
"id": 1,
66
"login": "github:org_test:thehydroimpulseteam",
77
"name": "thehydroimpulseteam",
8-
"url": "https://github.com/thehydroimpulse",
8+
"url": "https://github.com/org_test",
99
}
1010
};

src/owner.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,8 @@ impl Team {
263263
login_pieces.next();
264264

265265
format!(
266-
"https://github.com/orgs/{}/teams/{}",
266+
"https://github.com/{}",
267267
login_pieces.next().expect("org failed"),
268-
login_pieces.next().expect("team failed")
269268
)
270269
}
271270
}

tests/acceptance/team-page-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('has link to github in team header', function(assert) {
1717

1818
andThen(function() {
1919
const $githubLink = findWithAssert('.info a');
20-
assert.equal($githubLink.attr('href').trim(), 'https://github.com/thehydroimpulse');
20+
assert.equal($githubLink.attr('href').trim(), 'https://github.com/org_test');
2121
});
2222

2323
});

0 commit comments

Comments
 (0)