You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitter.im/Microsoft/TypeScript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescript).
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
29
31
*[Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
30
32
* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
31
-
* Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript).
33
+
* Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript).
32
34
* Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter.
* Read the language specification ([docx](https://github.com/Microsoft/TypeScript/blob/master/doc/TypeScript%20Language%20Specification.docx?raw=true),
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
38
-
the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected])
39
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
40
+
the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected])
39
41
with any additional questions or comments.
40
42
41
43
## Documentation
@@ -71,17 +73,17 @@ npm install
71
73
Use one of the following to build and test:
72
74
73
75
```
74
-
gulp local # Build the compiler into built/local
75
-
gulp clean # Delete the built compiler
76
+
gulp local # Build the compiler into built/local
77
+
gulp clean # Delete the built compiler
76
78
gulp LKG # Replace the last known good with the built one.
77
79
# Bootstrapping step to be executed when the built compiler reaches a stable state.
78
-
gulp tests # Build the test infrastructure using the built compiler.
79
-
gulp runtests # Run tests using the built compiler and test infrastructure.
80
-
# You can override the host or specify a test for this command.
81
-
# Use --host=<hostName> or --tests=<testPath>.
80
+
gulp tests # Build the test infrastructure using the built compiler.
81
+
gulp runtests # Run tests using the built compiler and test infrastructure.
82
+
# You can override the host or specify a test for this command.
83
+
# Use --host=<hostName> or --tests=<testPath>.
82
84
gulp baseline-accept # This replaces the baseline test results with the results obtained from gulp runtests.
["git",["checkout",process.env.TARGET_BRANCH]],// checkout the target branch
53
+
["git",["checkout","-b",branchName]],// create a new branch
54
+
["git",["cherry-pick",squashSha.trim()]],//
55
+
["git",["remote","add","fork",remoteUrl]],// Add the remote fork
56
+
["git",["push","--set-upstream","fork",branchName,"-f"]]// push the branch
57
+
]);
58
+
59
+
constgh=newOctokit();
60
+
gh.authenticate({
61
+
type: "token",
62
+
token: process.argv[2]
63
+
});
64
+
constr=awaitgh.pulls.create({
65
+
owner: "Microsoft",
66
+
repo: "TypeScript",
67
+
maintainer_can_modify: true,
68
+
title: `🤖 Cherry-pick PR #${process.env.SOURCE_ISSUE} into ${process.env.TARGET_BRANCH}`,
69
+
head: `${userName}:${branchName}`,
70
+
base: process.env.TARGET_BRANCH,
71
+
body:
72
+
`This cherry-pick was triggerd by a request on https://github.com/Microsoft/TypeScript/pull/${process.env.SOURCE_ISSUE}
73
+
Please review the diff and merge if no changes are unexpected.
74
+
You can view the cherry-pick log [here](https://typescript.visualstudio.com/TypeScript/_build/index?buildId=${process.env.BUILD_BUILDID}&_a=summary).
75
+
76
+
cc ${reviewers.map(r=>"@"+r).join(" ")}`,
77
+
});
78
+
constnum=r.data.number;
79
+
console.log(`Pull request ${num} created.`);
80
+
81
+
awaitgh.issues.createComment({
82
+
number: +process.env.SOURCE_ISSUE,
83
+
owner: "Microsoft",
84
+
repo: "TypeScript",
85
+
body: `Hey @${process.env.REQUESTING_USER}, I've opened #${num} for you.`
86
+
});
87
+
}
88
+
89
+
main().catch(asynce=>{
90
+
console.error(e);
91
+
process.exitCode=1;
92
+
if(process.env.SOURCE_ISSUE){
93
+
constgh=newOctokit();
94
+
gh.authenticate({
95
+
type: "token",
96
+
token: process.argv[2]
97
+
});
98
+
awaitgh.issues.createComment({
99
+
number: +process.env.SOURCE_ISSUE,
100
+
owner: "Microsoft",
101
+
repo: "TypeScript",
102
+
body: `Hey @${process.env.REQUESTING_USER}, I couldn't open a PR with the cherry-pick. ([You can check the log here](https://typescript.visualstudio.com/TypeScript/_build/index?buildId=${process.env.BUILD_BUILDID}&_a=summary)). You may need to squash and pick this PR into ${process.env.TARGET_BRANCH} manually.`
`${process.env.source_issue ? `This test run was triggerd by a request on https://github.com/Microsoft/TypeScript/pull/${process.env.source_issue} `+"\n" : ""}Please review the diff and merge if no changes are unexpected.
39
+
`${process.env.SOURCE_ISSUE ? `This test run was triggerd by a request on https://github.com/Microsoft/TypeScript/pull/${process.env.SOURCE_ISSUE} `+"\n" : ""}Please review the diff and merge if no changes are unexpected.
40
40
You can view the build log [here](https://typescript.visualstudio.com/TypeScript/_build/index?buildId=${process.env.BUILD_BUILDID}&_a=summary).
body: `Hey @${process.env.REQUESTING_USER}, I've packed this into [an installable tgz](${link}). You can install it for testing by referencing it in your \`package.json\` like so:
36
+
\`\`\`
37
+
{
38
+
"devDependencies": {
39
+
"typescript": "${link}"
40
+
}
41
+
}
42
+
\`\`\`
43
+
and then running \`npm install\`.
44
+
`
45
+
});
46
+
}
47
+
48
+
main().catch(asynce=>{
49
+
console.error(e);
50
+
process.exitCode=1;
51
+
if(process.env.SOURCE_ISSUE){
52
+
constgh=newOctokit();
53
+
gh.authenticate({
54
+
type: "token",
55
+
token: process.argv[2]
56
+
});
57
+
awaitgh.issues.createComment({
58
+
number: +process.env.SOURCE_ISSUE,
59
+
owner: "Microsoft",
60
+
repo: "TypeScript",
61
+
body: `Hey @${process.env.REQUESTING_USER}, something went wrong when looking for the build artifact. ([You can check the log here](https://typescript.visualstudio.com/TypeScript/_build/index?buildId=${process.env.BUILD_BUILDID}&_a=summary)).`
0 commit comments