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
2 changes: 1 addition & 1 deletion packages/about/lib/update-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ let UpdateManager = class UpdateManager {

const releaseRepo =
appVersion.indexOf('nightly') > -1 ? 'atom-nightly-releases' : 'atom';
return `https://github.com/atom/${releaseRepo}/releases/tag/${appVersion}`;
return `https://github.com/atom-ide-community/${releaseRepo}/releases/tag/${appVersion}`;
}
};

Expand Down
10 changes: 6 additions & 4 deletions packages/about/spec/update-manager-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ describe('UpdateManager', () => {

it('returns the page for the release when not a dev version', () => {
expect(updateManager.getReleaseNotesURLForVersion('1.7.0')).toContain(
'atom/atom/releases/tag/v1.7.0'
'atom-ide-community/atom/releases/tag/v1.7.0'
);
expect(updateManager.getReleaseNotesURLForVersion('v1.7.0')).toContain(
'atom/atom/releases/tag/v1.7.0'
'atom-ide-community/atom/releases/tag/v1.7.0'
);
expect(
updateManager.getReleaseNotesURLForVersion('1.7.0-beta10')
).toContain('atom/atom/releases/tag/v1.7.0-beta10');
).toContain('atom-ide-community/atom/releases/tag/v1.7.0-beta10');
expect(
updateManager.getReleaseNotesURLForVersion('1.7.0-nightly10')
).toContain('atom/atom-nightly-releases/releases/tag/v1.7.0-nightly10');
).toContain(
'atom-ide-community/atom-nightly-releases/releases/tag/v1.7.0-nightly10'
);
});
});
});
5 changes: 4 additions & 1 deletion script/lib/create-windows-installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const path = require('path');

const CONFIG = require('../config');

const REPO_OWNER = process.env.REPO_OWNER || 'atom';
const MAIN_REPO = process.env.MAIN_REPO || 'atom';

module.exports = packagedAppPath => {
const archSuffix = process.arch === 'ia32' ? '' : '-' + process.arch;
const updateUrlPrefix =
Expand All @@ -17,7 +20,7 @@ module.exports = packagedAppPath => {
exe: CONFIG.executableName,
appDirectory: packagedAppPath,
authors: 'GitHub Inc.',
iconUrl: `https://raw.githubusercontent.com/atom/atom/master/resources/app-icons/${
iconUrl: `https://raw.githubusercontent.com/${REPO_OWNER}/${MAIN_REPO}/master/resources/app-icons/${
CONFIG.channel
}/atom.ico`,
loadingGif: path.join(
Expand Down
7 changes: 6 additions & 1 deletion script/lib/update-dependency/git.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const REPO_OWNER = process.env.REPO_OWNER || 'atom';
const MAIN_REPO = process.env.MAIN_REPO || 'atom';

const git = (git, repositoryRootPath) => {
const path = require('path');
const packageJsonFilePath = path.join(repositoryRootPath, 'package.json');
Expand All @@ -10,7 +13,9 @@ const git = (git, repositoryRootPath) => {
if (!err && !remotes.map(({ name }) => name).includes('ATOM')) {
git.addRemote(
'ATOM',
`https://atom:${process.env.AUTH_TOKEN}@github.com/atom/atom.git/`
`https://atom:${
process.env.AUTH_TOKEN
}@github.com/${REPO_OWNER}/${MAIN_REPO}.git/`
);
}
});
Expand Down
9 changes: 6 additions & 3 deletions script/lib/update-dependency/pull-request.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
const { request } = require('@octokit/request');

const REPO_OWNER = process.env.REPO_OWNER || 'atom';
const MAIN_REPO = process.env.MAIN_REPO || 'atom';

const requestWithAuth = request.defaults({
baseUrl: 'https://api.github.com',
headers: {
'user-agent': 'atom',
authorization: `token ${process.env.AUTH_TOKEN}`
},
owner: 'atom',
repo: 'atom'
owner: REPO_OWNER,
repo: MAIN_REPO
});

module.exports = {
Expand All @@ -28,7 +31,7 @@ module.exports = {
},
findPR: async ({ moduleName, latest }, branch) => {
return requestWithAuth('GET /search/issues', {
q: `${moduleName} type:pr ${moduleName}@${latest} in:title repo:atom/atom head:${branch} state:open`
q: `${moduleName} type:pr ${moduleName}@${latest} in:title repo:${REPO_OWNER}/${MAIN_REPO} head:${branch} state:open`
});
},
addLabel: async pullRequestNumber => {
Expand Down