Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@

### Download

You can download Gitify for **free** from either the website [www.gitify.io](http://www.gitify.io/) or from the GitHub repository [releases](https://github.com/manosim/gitify/releases) page.
You can download Gitify for **free** from either the website [www.gitify.io](https://www.gitify.io/) or from the GitHub repository [releases](https://github.com/manosim/gitify/releases) page.

You can also install Gitify via [Homebrew Cask](http://brew.sh/)

```shell
brew cask install gitify
```

Gitify currently only supports OS X.
Gitify currently only supports mac OS.

### Prerequisites

- Node 10+
- Yarn
- [Yarn](https://yarnpkg.com/)
- [Electron](https://electronjs.org/)
- [TypeScript](https://www.typescriptlang.org/)
- [React](https://reactjs.org/)
Expand Down Expand Up @@ -92,4 +92,4 @@ Gitify is licensed under the MIT Open Source license. For more information, see
[codecov-image]: https://codecov.io/gh/manosim/gitify/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/manosim/gitify
[downloads-image]: https://img.shields.io/github/downloads/manosim/gitify/total.svg
[downloads-url]: http://www.gitify.io
[downloads-url]: https://www.gitify.io
2 changes: 1 addition & 1 deletion src/js/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class Sidebar extends React.Component<IProps> {
}

onOpenBrowser() {
shell.openExternal(`https://www.github.com/${Constants.REPO_SLUG}`);
shell.openExternal(`https://github.com/${Constants.REPO_SLUG}`);
}

goToSettings() {
Expand Down
1 change: 0 additions & 1 deletion src/js/routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const { ipcRenderer } = require('electron');
import * as React from 'react';
import { Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import Octicon, { MarkGithub } from '@primer/octicons-react';
import styled from 'styled-components';

import { AppState } from '../../types/reducers';
Expand Down
12 changes: 5 additions & 7 deletions src/js/utils/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('utils/helpers.ts', () => {
'https://api.github.com/repos/ekonstantinidis/notifications-test/issues/3';
const newUrl = generateGitHubWebUrl(apiUrl);
expect(newUrl).toBe(
'https://www.github.com/ekonstantinidis/notifications-test/issues/3'
'https://github.com/ekonstantinidis/notifications-test/issues/3'
);
});

Expand All @@ -25,17 +25,15 @@ describe('utils/helpers.ts', () => {
'https://api.github.com/repos/ekonstantinidis/notifications-test/pulls/123';
const newUrl = generateGitHubWebUrl(apiUrl);
expect(newUrl).toBe(
'https://www.github.com/ekonstantinidis/notifications-test/pull/123'
'https://github.com/ekonstantinidis/notifications-test/pull/123'
);
});

it('should generate the GitHub url - non enterprise - (release)', () => {
const apiUrl =
'https://api.github.com/repos/myorg/notifications-test/releases/3988077';
const newUrl = generateGitHubWebUrl(apiUrl);
expect(newUrl).toBe(
'https://www.github.com/myorg/notifications-test/releases'
);
expect(newUrl).toBe('https://github.com/myorg/notifications-test/releases');
});

it('should generate the GitHub url - enterprise - (issue)', () => {
Expand Down Expand Up @@ -100,7 +98,7 @@ describe('utils/helpers.ts', () => {
(event, callback) => {
if (event === 'will-redirect') {
const event = new Event('will-redirect');
callback(event, 'http://www.github.com/?code=123-456');
callback(event, 'http://github.com/?code=123-456');
}
}
);
Expand Down Expand Up @@ -156,7 +154,7 @@ describe('utils/helpers.ts', () => {
(event, callback) => {
if (event === 'did-fail-load') {
const event = new Event('did-fail-load');
callback(event, 500, null, 'http://www.github.com/?code=123-456');
callback(event, 500, null, 'http://github.com/?code=123-456');
}
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/js/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function generateGitHubWebUrl(url) {

let newUrl = isEnterprise
? url.replace(`${hostname}/api/v3/repos`, hostname)
: url.replace('api.github.com/repos', 'www.github.com');
: url.replace('api.github.com/repos', 'github.com');

if (newUrl.indexOf('/pulls/') !== -1) {
newUrl = newUrl.replace('/pulls/', '/pull/');
Expand Down