Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy 2/2/24 #197

Merged
merged 8 commits into from
Feb 2, 2024
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
12 changes: 6 additions & 6 deletions .pnp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
41 changes: 4 additions & 37 deletions lib/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@actions/github": "^5.1.1",
"@actions/io": "^1.1.0",
"@actions/tool-cache": "^1.6.1",
"@richnav/rich-code-nav-indexer-core": "^0.1.346-alpha",
"@richnav/rich-code-nav-indexer-core": "^0.1.347-alpha",
"applicationinsights": "^1.8.10",
"cloudbuild-task-github-actions": "^0.1.105-beta"
},
Expand Down
30 changes: 5 additions & 25 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
import * as indexCore from '@richnav/rich-code-nav-indexer-core';
import { CachingTask, GitHubRepoInfo } from '@richnav/rich-code-nav-indexer-core';
import { factory } from 'cloudbuild-task-github-actions';
import * as github from '@actions/github';

class GitHubCachingTask extends CachingTask {
constructor(cloudTask, apiTokens) {
super(cloudTask,
{ pipelineHost: "GitHub Actions", buildId: github.context.runId.toString(), buildDefinitionId: github.context.workflow},
false, /* isExternal */
apiTokens);
}

protected getSourceControlInformationProvider(languageInput?: string | undefined): indexCore.BaseRepoInfo {
const repoToken = factory.inputs.getInput('repo-token') ?? process.env.REPO_TOKEN;
return new GitHubRepoInfo(factory, repoToken, languageInput);
class DeprecatedTask {
public async run() {
// Code Index deprecated, returning error on build.
console.log(`As of January 2024, the RichCodeNavIndexer task is being deprecated. Please remove this task from your CI.`);
}
}

const serviceConnection = factory.inputs.getInput('service-token') ?? process.env.SERVICE_TOKEN;
new GitHubCachingTask(
factory,
{
serviceConnection: serviceConnection,

// Used to access private NuGet feeds. Does nothing if isPrivate input is not `true`.
systemVSSConnection: process.env.CODEINDEX_FEED_TOKEN,
}).run();
new DeprecatedTask().run();
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,9 @@ __metadata:
languageName: node
linkType: hard

"@richnav/rich-code-nav-indexer-core@npm:^0.1.346-alpha":
version: 0.1.346-alpha
resolution: "@richnav/rich-code-nav-indexer-core@npm:0.1.346-alpha"
"@richnav/rich-code-nav-indexer-core@npm:^0.1.347-alpha":
version: 0.1.347-alpha
resolution: "@richnav/rich-code-nav-indexer-core@npm:0.1.347-alpha"
dependencies:
adm-zip: ^0.5.9
applicationinsights: ^1.2.0
Expand All @@ -661,7 +661,7 @@ __metadata:
stream-buffers: ^3.0.2
uuid: ^8.3.1
which: ^2.0.2
checksum: 9d8b9e8a17030e898e1017561f9863a8e4ff0a3a7541f3f4b2bab5a2f3c2f19f362ebe1c6f73c33f7b6e066f7b79c615f648fe8a1debbacdad0bd5d6eae505b2
checksum: acaaad5c84a6f0843fd40ab19248fc70b2a7eaf66b9b79eb86f1a11d1e9430600e1384138a628b62d155630edccdf266cc1990496fde372e56b13b6fe8ddd31e
languageName: node
linkType: hard

Expand Down Expand Up @@ -2833,7 +2833,7 @@ resolve@^1.3.2:
"@actions/github": ^5.1.1
"@actions/io": ^1.1.0
"@actions/tool-cache": ^1.6.1
"@richnav/rich-code-nav-indexer-core": ^0.1.346-alpha
"@richnav/rich-code-nav-indexer-core": ^0.1.347-alpha
"@types/mocha": ^8.0.1
"@types/node": ^14.0.27
applicationinsights: ^1.8.10
Expand Down
Loading