diff --git a/tests/spec/features/sharing_with_others_spec.rb b/tests/spec/features/sharing_with_others_spec.rb index c76b30165..637b3aa25 100644 --- a/tests/spec/features/sharing_with_others_spec.rb +++ b/tests/spec/features/sharing_with_others_spec.rb @@ -22,7 +22,6 @@ perma_link = find_link("Permalink to the playground")[:href] direct_link = find_link("Direct link to the gist")[:href] urlo_link = find_link("Open a new thread in the Rust user forum")[:href] - issue_link = find_link("Open an issue on the Rust GitHub repository")[:href] # Navigate away so we can tell that we go back to the same page visit 'about:blank' @@ -41,10 +40,6 @@ # Need to be logged in to URLO for this link to work expect(urlo_link).to match(%r{https://users.rust-lang.org/new-topic}) expect(urlo_link).to match(%{automated%20test}) - - # Need to be logged in to GitHub for this link to work - expect(issue_link).to match(%r{https://github.com/rust-lang/rust/issues/new}) - expect(issue_link).to match(%{automated%20test}) end def editor diff --git a/ui/frontend/Output/Gist.tsx b/ui/frontend/Output/Gist.tsx index 78cc3e8f1..552c01a31 100644 --- a/ui/frontend/Output/Gist.tsx +++ b/ui/frontend/Output/Gist.tsx @@ -55,7 +55,6 @@ class Copied extends React.PureComponent { const Links: React.SFC = () => { const codeUrl = useSelector(selectors.codeUrlSelector); const gistUrl = useSelector((state: State) => state.output.gist.url); - const issueUrl = useSelector(selectors.issueUrlSelector); const permalink = useSelector(selectors.permalinkSelector); const urloUrl = useSelector(selectors.urloUrlSelector); @@ -65,7 +64,6 @@ const Links: React.SFC = () => { Direct link to the gist Embedded code in link Open a new thread in the Rust user forum - Open an issue on the Rust GitHub repository ); }; diff --git a/ui/frontend/selectors/index.ts b/ui/frontend/selectors/index.ts index 90e3e52ef..39b3d3c9a 100644 --- a/ui/frontend/selectors/index.ts +++ b/ui/frontend/selectors/index.ts @@ -237,15 +237,6 @@ export const urloUrlSelector = createSelector( }, ); -export const issueUrlSelector = createSelector( - snippetSelector, - snippet => { - const newIssueUrl = url.parse('https://github.com/rust-lang/rust/issues/new', true); - newIssueUrl.query = { body: snippet }; - return url.format(newIssueUrl); - }, -); - export const codeUrlSelector = createSelector( baseUrlSelector, urlQuerySelector, gistSelector, (baseUrl, query, gist) => {