Skip to content

Commit 97f4e6e

Browse files
authored
Merge branch 'master' into rushChangeMessageFix
2 parents 0c4bf17 + b6eb90e commit 97f4e6e

137 files changed

Lines changed: 746 additions & 523 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ common/config/**/* @iclanton @octogonz @patmill @apostolisms
33

44
common/reviews/**/* @iclanton @octogonz @apostolisms
55

6-
apps/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
7-
build-tests/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
8-
core-build/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
9-
libraries/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
10-
stack/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
11-
webpack/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble
12-
rush.json @iclanton @octogonz @apostolisms @lincoded @halfnibble
13-
.gitattributes @iclanton @octogonz @apostolisms @lincoded @halfnibble
14-
.gitignore @iclanton @octogonz @apostolisms @lincoded @halfnibble
15-
README.md @iclanton @octogonz @apostolisms @lincoded @halfnibble
6+
apps/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble @sachinjoseph
7+
build-tests/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble @sachinjoseph
8+
core-build/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble @sachinjoseph
9+
libraries/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble @sachinjoseph
10+
stack/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble @sachinjoseph
11+
webpack/**/* @iclanton @octogonz @apostolisms @lincoded @halfnibble @sachinjoseph
12+
rush.json @iclanton @octogonz @apostolisms @lincoded @halfnibble @sachinjoseph
13+
.gitattributes @iclanton @octogonz @apostolisms @lincoded @halfnibble @sachinjoseph
14+
.gitignore @iclanton @octogonz @apostolisms @lincoded @halfnibble @sachinjoseph
15+
README.md @iclanton @octogonz @apostolisms @lincoded @halfnibble @sachinjoseph
1616

1717
libraries/load-themed-styles/**/* @iclanton @octogonz @dzearing @apostolisms

apps/api-documenter/CHANGELOG.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
{
22
"name": "@microsoft/api-documenter",
33
"entries": [
4+
{
5+
"version": "7.3.4",
6+
"tag": "@microsoft/api-documenter_v7.3.4",
7+
"date": "Sat, 29 Jun 2019 02:30:10 GMT",
8+
"comments": {
9+
"patch": [
10+
{
11+
"comment": "Avoid reporting a fatal error when an unknown block tag is encountered"
12+
}
13+
],
14+
"dependency": [
15+
{
16+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.2\" from `0.3.19` to `0.3.20`"
17+
},
18+
{
19+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.0.67` to `6.0.68`"
20+
}
21+
]
22+
}
23+
},
424
{
525
"version": "7.3.3",
626
"tag": "@microsoft/api-documenter_v7.3.3",

apps/api-documenter/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Change Log - @microsoft/api-documenter
22

3-
This log was last generated on Wed, 12 Jun 2019 19:12:33 GMT and should not be manually modified.
3+
This log was last generated on Sat, 29 Jun 2019 02:30:10 GMT and should not be manually modified.
4+
5+
## 7.3.4
6+
Sat, 29 Jun 2019 02:30:10 GMT
7+
8+
### Patches
9+
10+
- Avoid reporting a fatal error when an unknown block tag is encountered
411

512
## 7.3.3
613
Wed, 12 Jun 2019 19:12:33 GMT

apps/api-documenter/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/api-documenter",
3-
"version": "7.3.3",
3+
"version": "7.3.4",
44
"description": "Read JSON files from api-extractor, generate documentation pages",
55
"repository": {
66
"type": "git",
@@ -23,8 +23,8 @@
2323
"js-yaml": "~3.13.1"
2424
},
2525
"devDependencies": {
26-
"@microsoft/rush-stack-compiler-3.2": "0.3.19",
27-
"@microsoft/node-library-build": "6.0.67",
26+
"@microsoft/rush-stack-compiler-3.2": "0.3.20",
27+
"@microsoft/node-library-build": "6.0.68",
2828
"@types/js-yaml": "3.12.1",
2929
"@types/node": "8.5.8",
3030
"gulp": "~3.9.1",

apps/api-extractor/CHANGELOG.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
{
22
"name": "@microsoft/api-extractor",
33
"entries": [
4+
{
5+
"version": "7.2.2",
6+
"tag": "@microsoft/api-extractor_v7.2.2",
7+
"date": "Sat, 29 Jun 2019 02:30:10 GMT",
8+
"comments": {
9+
"patch": [
10+
{
11+
"comment": "Fix GitHub issue #1304 where \"IExtractorInvokeOptions.typescriptCompilerFolder\" did not work with TypeScript 3.4"
12+
}
13+
]
14+
}
15+
},
416
{
517
"version": "7.2.1",
618
"tag": "@microsoft/api-extractor_v7.2.1",

apps/api-extractor/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Change Log - @microsoft/api-extractor
22

3-
This log was last generated on Wed, 12 Jun 2019 19:12:33 GMT and should not be manually modified.
3+
This log was last generated on Sat, 29 Jun 2019 02:30:10 GMT and should not be manually modified.
4+
5+
## 7.2.2
6+
Sat, 29 Jun 2019 02:30:10 GMT
7+
8+
### Patches
9+
10+
- Fix GitHub issue #1304 where "IExtractorInvokeOptions.typescriptCompilerFolder" did not work with TypeScript 3.4
411

512
## 7.2.1
613
Wed, 12 Jun 2019 19:12:33 GMT

apps/api-extractor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/api-extractor",
3-
"version": "7.2.1",
3+
"version": "7.2.2",
44
"description": "Analyze the exported API for a TypeScript library and generate reviews, documentation, and .d.ts rollups",
55
"keywords": [
66
"typescript",

apps/rush-lib/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/rush-lib",
3-
"version": "5.9.1",
3+
"version": "5.10.0",
44
"description": "A library for writing scripts that interact with the Rush tool",
55
"repository": {
66
"type": "git",
@@ -22,8 +22,8 @@
2222
"license": "MIT",
2323
"dependencies": {
2424
"@microsoft/node-core-library": "3.13.0",
25-
"@microsoft/package-deps-hash": "2.2.158",
26-
"@microsoft/stream-collator": "3.0.73",
25+
"@microsoft/package-deps-hash": "2.2.159",
26+
"@microsoft/stream-collator": "3.0.74",
2727
"@microsoft/ts-command-line": "4.2.6",
2828
"@pnpm/link-bins": "~1.0.1",
2929
"@pnpm/logger": "~1.0.1",
@@ -50,8 +50,8 @@
5050
"z-schema": "~3.18.3"
5151
},
5252
"devDependencies": {
53-
"@microsoft/node-library-build": "6.0.67",
54-
"@microsoft/rush-stack-compiler-3.2": "0.3.19",
53+
"@microsoft/node-library-build": "6.0.68",
54+
"@microsoft/rush-stack-compiler-3.2": "0.3.20",
5555
"@types/glob": "5.0.30",
5656
"@types/jest": "23.3.11",
5757
"@types/js-yaml": "3.12.1",

apps/rush-lib/src/utilities/VersionControl.ts

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class VersionControl {
1515
skipFetch: boolean = false
1616
): Array<string | undefined> | undefined {
1717
if (!skipFetch) {
18-
VersionControl._fetchNonDefaultBranch(targetBranch);
18+
VersionControl._fetchRemoteBranch(targetBranch);
1919
}
2020

2121
const output: string = child_process.execSync(`git diff ${targetBranch}... --dirstat=files,0`).toString();
@@ -36,11 +36,11 @@ export class VersionControl {
3636
* @returns
3737
* An array of paths of repo-root-relative paths of files that are different from
3838
* those in the provided {@param targetBranch}. If a {@param pathPrefix} is provided,
39-
* this function only returns reuslts under the that path.
39+
* this function only returns results under the that path.
4040
*/
4141
public static getChangedFiles(targetBranch: string, skipFetch: boolean = false, pathPrefix?: string): string[] {
4242
if (!skipFetch) {
43-
VersionControl._fetchNonDefaultBranch(targetBranch);
43+
VersionControl._fetchRemoteBranch(targetBranch);
4444
}
4545

4646
const output: string = child_process.execSync(
@@ -71,48 +71,56 @@ export class VersionControl {
7171
* @param repositoryUrl - repository url
7272
*/
7373
public static getRemoteMasterBranch(repositoryUrl?: string): string {
74-
let matchingRemotes: string[] = [];
75-
7674
if (repositoryUrl) {
7775
const output: string = child_process
7876
.execSync(`git remote`)
7977
.toString();
80-
matchingRemotes = output.split('\n').filter(remoteName => {
78+
const normalizedRepositoryUrl: string = repositoryUrl.toUpperCase();
79+
const matchingRemotes: string[] = output.split('\n').filter((remoteName) => {
8180
if (remoteName) {
8281
const remoteUrl: string = child_process.execSync(`git remote get-url ${remoteName}`)
8382
.toString()
8483
.trim();
85-
if (remoteUrl === repositoryUrl) {
84+
85+
if (!remoteUrl) {
86+
return false;
87+
}
88+
89+
const normalizedRemoteUrl: string = remoteUrl.toUpperCase();
90+
if (normalizedRemoteUrl.toUpperCase() === normalizedRepositoryUrl) {
8691
return true;
8792
}
93+
8894
// When you copy a URL from the GitHub web site, they append the ".git" file extension to the URL.
89-
// So we allow that to be specified in rush.json, even though the file extension gets dropped
95+
// We allow that to be specified in rush.json, even though the file extension gets dropped
9096
// by "git clone".
91-
if (remoteUrl + '.git' === repositoryUrl) {
97+
if (`${normalizedRemoteUrl}.GIT` === normalizedRepositoryUrl) {
9298
return true;
9399
}
94100
}
101+
95102
return false;
96103
});
97-
} else {
98-
console.log(colors.yellow(
99-
'A git remote URL has not been specified in rush.json. Setting the baseline remote URL is recommended.'
100-
));
101-
return DEFAULT_FULLY_QUALIFIED_BRANCH;
102-
}
103104

104-
if (matchingRemotes.length > 0) {
105-
if (matchingRemotes.length > 1) {
106-
console.log(
107-
`More than one git remote matches the repository URL. Using the first remote (${matchingRemotes[0]}).`
108-
);
109-
}
105+
if (matchingRemotes.length > 0) {
106+
if (matchingRemotes.length > 1) {
107+
console.log(
108+
`More than one git remote matches the repository URL. Using the first remote (${matchingRemotes[0]}).`
109+
);
110+
}
111+
112+
return `${matchingRemotes[0]}/${DEFAULT_BRANCH}`;
113+
} else {
114+
console.log(colors.yellow(
115+
`Unable to find a git remote matching the repository URL (${repositoryUrl}). ` +
116+
'Detected changes are likely to be incorrect.'
117+
));
110118

111-
return `${matchingRemotes[0]}/${DEFAULT_BRANCH}`;
119+
return DEFAULT_FULLY_QUALIFIED_BRANCH;
120+
}
112121
} else {
113122
console.log(colors.yellow(
114-
`Unable to find a git remote matching the repository URL (${matchingRemotes[0]}). ` +
115-
'Detected changes are likely to be incorrect.'
123+
'A git remote URL has not been specified in rush.json. Setting the baseline remote URL is recommended.'
116124
));
117125
return DEFAULT_FULLY_QUALIFIED_BRANCH;
118126
}
@@ -170,15 +178,13 @@ export class VersionControl {
170178
return spawnResult.status === 0;
171179
}
172180

173-
private static _fetchNonDefaultBranch(remoteBranchName: string): void {
174-
if (remoteBranchName !== DEFAULT_FULLY_QUALIFIED_BRANCH) {
175-
console.log(`Checking for updates to ${remoteBranchName}...`);
176-
const fetchResult: boolean = VersionControl._tryFetchRemoteBranch(remoteBranchName);
177-
if (!fetchResult) {
178-
console.log(colors.yellow(
179-
`Error fetching git remote branch ${remoteBranchName}. Detected changed files may be incorrect.`
180-
));
181-
}
181+
private static _fetchRemoteBranch(remoteBranchName: string): void {
182+
console.log(`Checking for updates to ${remoteBranchName}...`);
183+
const fetchResult: boolean = VersionControl._tryFetchRemoteBranch(remoteBranchName);
184+
if (!fetchResult) {
185+
console.log(colors.yellow(
186+
`Error fetching git remote branch ${remoteBranchName}. Detected changed files may be incorrect.`
187+
));
182188
}
183189
}
184190
}

apps/rush/CHANGELOG.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
{
22
"name": "@microsoft/rush",
33
"entries": [
4+
{
5+
"version": "5.10.0",
6+
"tag": "@microsoft/rush_v5.10.0",
7+
"date": "Sat, 29 Jun 2019 02:47:42 GMT",
8+
"comments": {
9+
"none": [
10+
{
11+
"comment": "New action added to list package name for all projects"
12+
},
13+
{
14+
"comment": "Add ability to opt out of changelog files for version policies."
15+
},
16+
{
17+
"comment": "Workaround for pnpm issue 1890: https://github.com/pnpm/pnpm/issues/1890. Fixes the issue of \"rush update --full\" not working correctly if the internal copy of the pnpm shrinkwrap \"common/temp/node_modules/.shrinkwrap.yaml\" exists even though Rush deletes the formal copy in \"common/temp/shrinkwrap.yaml\"."
18+
}
19+
]
20+
}
21+
},
422
{
523
"version": "5.9.1",
624
"tag": "@microsoft/rush_v5.9.1",

0 commit comments

Comments
 (0)