MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / getTeamId

Function getTeamId

scripts/tagLinearIssuesWithRelease.mjs:153–171  ·  view source on GitHub ↗

* Get the team ID from the team key

(teamKey)

Source from the content-addressed store, hash-verified

151 * Get the team ID from the team key
152 */
153async function getTeamId(teamKey) {
154 const data = await linearGraphQL(
155 `
156 query($key: String!) {
157 team(id: $key) {
158 id
159 name
160 }
161 }
162 `,
163 { key: teamKey }
164 );
165
166 if (!data.team) {
167 throw new Error(`Team with key "${teamKey}" not found`);
168 }
169
170 return data.team.id;
171}
172
173/**
174 * Find or create a label for the release version

Callers 1

mainFunction · 0.85

Calls 1

linearGraphQLFunction · 0.85

Tested by

no test coverage detected