Skip to content

Commit c8b97bc

Browse files
author
Briana
authored
Merge pull request #197 from microsoft/main
Deploy 2/2/24
2 parents e444937 + da2609c commit c8b97bc

File tree

7 files changed

+22
-75
lines changed

7 files changed

+22
-75
lines changed

.pnp.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.yarn/cache/@richnav-rich-code-nav-indexer-core-npm-0.1.346-alpha-c170e310e7-9d8b9e8a17.zip renamed to .yarn/cache/@richnav-rich-code-nav-indexer-core-npm-0.1.347-alpha-169df13d9d-acaaad5c84.zip

163 KB
Binary file not shown.

lib/main.js

Lines changed: 4 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@actions/github": "^5.1.1",
1717
"@actions/io": "^1.1.0",
1818
"@actions/tool-cache": "^1.6.1",
19-
"@richnav/rich-code-nav-indexer-core": "^0.1.346-alpha",
19+
"@richnav/rich-code-nav-indexer-core": "^0.1.347-alpha",
2020
"applicationinsights": "^1.8.10",
2121
"cloudbuild-task-github-actions": "^0.1.105-beta"
2222
},

src/main.ts

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
1-
import * as indexCore from '@richnav/rich-code-nav-indexer-core';
2-
import { CachingTask, GitHubRepoInfo } from '@richnav/rich-code-nav-indexer-core';
3-
import { factory } from 'cloudbuild-task-github-actions';
4-
import * as github from '@actions/github';
5-
6-
class GitHubCachingTask extends CachingTask {
7-
constructor(cloudTask, apiTokens) {
8-
super(cloudTask,
9-
{ pipelineHost: "GitHub Actions", buildId: github.context.runId.toString(), buildDefinitionId: github.context.workflow},
10-
false, /* isExternal */
11-
apiTokens);
12-
}
13-
14-
protected getSourceControlInformationProvider(languageInput?: string | undefined): indexCore.BaseRepoInfo {
15-
const repoToken = factory.inputs.getInput('repo-token') ?? process.env.REPO_TOKEN;
16-
return new GitHubRepoInfo(factory, repoToken, languageInput);
1+
class DeprecatedTask {
2+
public async run() {
3+
// Code Index deprecated, returning error on build.
4+
console.log(`As of January 2024, the RichCodeNavIndexer task is being deprecated. Please remove this task from your CI.`);
175
}
186
}
197

20-
const serviceConnection = factory.inputs.getInput('service-token') ?? process.env.SERVICE_TOKEN;
21-
new GitHubCachingTask(
22-
factory,
23-
{
24-
serviceConnection: serviceConnection,
25-
26-
// Used to access private NuGet feeds. Does nothing if isPrivate input is not `true`.
27-
systemVSSConnection: process.env.CODEINDEX_FEED_TOKEN,
28-
}).run();
8+
new DeprecatedTask().run();

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -643,9 +643,9 @@ __metadata:
643643
languageName: node
644644
linkType: hard
645645

646-
"@richnav/rich-code-nav-indexer-core@npm:^0.1.346-alpha":
647-
version: 0.1.346-alpha
648-
resolution: "@richnav/rich-code-nav-indexer-core@npm:0.1.346-alpha"
646+
"@richnav/rich-code-nav-indexer-core@npm:^0.1.347-alpha":
647+
version: 0.1.347-alpha
648+
resolution: "@richnav/rich-code-nav-indexer-core@npm:0.1.347-alpha"
649649
dependencies:
650650
adm-zip: ^0.5.9
651651
applicationinsights: ^1.2.0
@@ -661,7 +661,7 @@ __metadata:
661661
stream-buffers: ^3.0.2
662662
uuid: ^8.3.1
663663
which: ^2.0.2
664-
checksum: 9d8b9e8a17030e898e1017561f9863a8e4ff0a3a7541f3f4b2bab5a2f3c2f19f362ebe1c6f73c33f7b6e066f7b79c615f648fe8a1debbacdad0bd5d6eae505b2
664+
checksum: acaaad5c84a6f0843fd40ab19248fc70b2a7eaf66b9b79eb86f1a11d1e9430600e1384138a628b62d155630edccdf266cc1990496fde372e56b13b6fe8ddd31e
665665
languageName: node
666666
linkType: hard
667667

@@ -2833,7 +2833,7 @@ resolve@^1.3.2:
28332833
"@actions/github": ^5.1.1
28342834
"@actions/io": ^1.1.0
28352835
"@actions/tool-cache": ^1.6.1
2836-
"@richnav/rich-code-nav-indexer-core": ^0.1.346-alpha
2836+
"@richnav/rich-code-nav-indexer-core": ^0.1.347-alpha
28372837
"@types/mocha": ^8.0.1
28382838
"@types/node": ^14.0.27
28392839
applicationinsights: ^1.8.10

0 commit comments

Comments
 (0)