diff --git a/.github/actions/labeler/labeler.ts b/.github/actions/labeler/labeler.ts index f9d5e169f0e7..f08d586dbe2d 100644 --- a/.github/actions/labeler/labeler.ts +++ b/.github/actions/labeler/labeler.ts @@ -4,9 +4,9 @@ import coreLib from '@actions/core' import { type Octokit } from '@octokit/rest' import { CoreInject } from '@/links/scripts/action-injections' -import github from '#src/workflows/github.ts' -import { getActionContext } from '#src/workflows/action-context.ts' -import { boolEnvVar } from '#src/workflows/get-env-inputs.ts' +import github from '@/workflows/github' +import { getActionContext } from '@/workflows/action-context' +import { boolEnvVar } from '@/workflows/get-env-inputs' type Options = { addLabels?: string[] diff --git a/data/release-notes/enterprise-server/3-17/0-rc1.yml b/data/release-notes/enterprise-server/3-17/0-rc1.yml index ab2b78510bab..32d428bdf912 100644 --- a/data/release-notes/enterprise-server/3-17/0-rc1.yml +++ b/data/release-notes/enterprise-server/3-17/0-rc1.yml @@ -1,6 +1,6 @@ date: '2025-05-13' release_candidate: true -deprecated: false +deprecated: true intro: | > [!NOTE] Release candidate (RC) builds are intended solely for use in a test environment. Do not install an RC in a production environment. > diff --git a/data/release-notes/enterprise-server/3-17/0.yml b/data/release-notes/enterprise-server/3-17/0.yml new file mode 100644 index 000000000000..3284267a13b3 --- /dev/null +++ b/data/release-notes/enterprise-server/3-17/0.yml @@ -0,0 +1,231 @@ +date: '2025-06-03' +release_candidate: false +deprecated: false +intro: | + For upgrade instructions, see [AUTOTITLE](/admin/upgrading-your-instance/preparing-to-upgrade/overview-of-the-upgrade-process). + +sections: + # Remove section heading if the section contains no notes. + + features: + # Remove a sub-section heading if the heading contains no notes. If sections + # that regularly recur are missing, add placeholders to this template. + + - heading: Instance administration + notes: + # https://github.com/github/releases/issues/5569 + - | + During the upgrade to 3.17, the database transitions will be run concurrently. You may notice the upgrade taking less time. + # https://github.com/github/releases/issues/5675 + - | + GitHub Enterprise Server Backup Service is a managed backup solution built directly into the appliance. It provides simplified alternative to the `backup-utils`. The backup service is in public preview. See [AUTOTITLE](/admin/backing-up-and-restoring-your-instance/backup-service-for-github-enterprise-server/about-the-backup-service-for-github-enterprise-server). + + - heading: Secret Protection and Code Security + notes: + # https://github.com/github/releases/issues/4986 + # https://github.com/github/releases/issues/5202 + - | + Users can secure code in their organizations and enterprises in an easier, more affordable, and scalable way to secure their code with the new standalone GitHub Advanced Security (GHAS) products: Secret Protection and Code Security. See [Introducing GitHub Secret Protection and GitHub Code Security](https://github.blog/changelog/2025-03-04-introducing-github-secret-protection-and-github-code-security/) and [GitHub Secret Protection and GitHub Code Security for GitHub Enterprise](https://github.blog/changelog/2025-04-01-github-secret-protection-and-github-code-security-for-github-enterprise/) on the GitHub Blog. + * Secret Protection is a security feature designed to detect and prevent the exposure of sensitive information, such as API keys, tokens, and passwords, in your code repositories. It includes tools like secret scanning, which identifies hardcoded secrets in your repositories, and push protection, which prevents developers from committing secrets to repositories in the first place. See [Choosing GitHub Secret Protection](/code-security/securing-your-organization/understanding-your-organizations-exposure-to-leaked-secrets/choosing-github-secret-protection`) + * Code security is a security feature designed to help users identify, manage, and remediate vulnerabilities in their codebases, ensuring secure and compliant software development. It includes tools like code scanning, premium Dependabot features, and dependency review. See [GitHub Code Security](/get-started/learning-about-github/about-github-advanced-security#github-code-security). + Users on a GHAS subscription plans can transition at renewal time to a standalone subscription or a metered plan. Users on a Pay-as-You-Go plan can transition any time. See [Billing models for Advanced Security products](/billing/managing-billing-for-your-products/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security#billing-models-for-advanced-security-products). + + - heading: Secret Protection + notes: + # https://github.com/github/releases/issues/4986 + - | + Organization owners can establish an approval process to control sensitive actions, such as restricting dismissal privileges of secret scanning alerts to designated individuals. This mitigates the risk of unauthorized changes and provides a documented record of bypass usage. See [Delegated alert dismissal for code scanning and secret scanning now available in public preview](https://github.blog/changelog/2025-03-05-delegated-alert-dismissal-for-code-scanning-and-secret-scanning-now-available-in-public-preview/) on the GitHub Blog, and [AUTOTITLE](/admin/overview/establishing-a-governance-framework-for-your-enterprise). + # https://github.com/github/releases/issues/4709 + - | + Users can now access secret scanning scan events via the audit log and webhooks. Providing scan status visibility and reporting aims to enable users to independently diagnose unexpected scan behavior, as well as meet the auditing and compliance requirements of large enterprises by demonstrating scan activity. See [Audit log and webhook events for secret scan completions](https://github.blog/changelog/2024-12-20-audit-log-and-webhook-events-for-secret-scan-completions/) on the GitHub Blog. + # https://github.com/github/releases/issues/4898 + - | + The detection of Base64-encoded GitHub tokens is now generally available, which means that users have better visibility into any leaked PATs. See [Secret scanning detects Base64-encoded GitHub tokens](https://github.blog/changelog/2025-02-14-secret-scanning-detects-base64-encoded-github-tokens/) on the GitHub Blog. + # https://github.com/github/releases/issues/5610 + - | + The "Experimental" tab name for alerts, which caused confusion by leading certain users to underestimate the importance of its alerts, has been renamed "Generic". This tab includes alerts for non-provider patterns, which are not necessarily low confidence alerts. See [Renaming secret scanning experimental alerts to generic alerts](https://github.blog/changelog/2025-03-11-renaming-secret-scanning-experimental-alerts-to-generic-alerts/). + # https://github.com/github/releases/issues/5330 + # https://github.com/github/releases/issues/5334 + - | + Enterprises can manage push protection bypass requests for secret scanning via the REST API, enabling integration with existing workflows for reviewing and triaging. Reviewers can retrieve and act on bypass requests at the organization or repository level using new endpoints. This functionality supports delegated bypass controls, allowing only authorized users to bypass push protection, while others must submit requests for approval. See the [GitHub Blog post](https://github.blog/changelog/2025-02-27-manage-push-protection-bypass-requests-for-secret-scanning-with-the-rest-api/). + + - heading: Code Security + notes: + # https://github.com/github/releases/issues/4986 + - | + Organization owners can establish an approval process to control sensitive actions, such as restricting dismissal privileges of code scanning alerts to designated individuals This mitigates the risk of unauthorized changes and provides a documented record of bypass usage. See [Delegated alert dismissal for code scanning and secret scanning now available in public preview](https://github.blog/changelog/2025-03-05-delegated-alert-dismissal-for-code-scanning-and-secret-scanning-now-available-in-public-preview/) on the GitHub Blog, and [AUTOTITLE](/admin/overview/establishing-a-governance-framework-for-your-enterprise). + # https://github.com/github/releases/issues/5116 + - | + Users can access and search audit logs for code scanning-related events. These logs capture events impacting enterprises or organizations, including code scanning activities such as alert creation, resolution, reopening, or appearance in a new branch. See [Code scanning now creates alert-related events in audit log](https://github.blog/changelog/2024-12-03-code-scanning-now-creates-alert-related-events-in-audit-log/) on the GitHub Blog. + - | + This release comes installed with version **2.20.7** of the CodeQL CLI, used in the CodeQL action for code scanning. Significant updates since the default version installed on GitHub Enterprise Server 3.16 include: + + * All experimental queries for C#, Java, and Kotlin have been promoted to the default query suite in the CodeQL community packs. + * Full support for C# 13 and .NET 9, including coverage improvements to enhance alert detection and reduce false negatives. + * Go 1.24 support, enabling analysis of the latest Go language features. + * Java 24 support, with improvements to query accuracy for XSS and CSRF vulnerabilities. + * JavaScript and TypeScript enhancements, including: + * Optional response threat model to treat HTTP responses as tainted sources. + * Improved precision for data flow through arrays and call resolution. + * C/C++ improvements, including better accuracy for `cpp/static-buffer-overflow`. + + - heading: Dependabot + notes: + # https://github.com/github/releases/issues/5341 + # https://github.com/github/releases/issues/5343 + # https://github.com/github/releases/issues/5424 + - | + Users can automatically keep their `bun`, `Docker Compose`, and `uv` dependencies up to date with Dependabot version updates. See [Supported ecosystems and repositories](/code-security/dependabot/ecosystems-supported-by-dependabot/supported-ecosystems-and-repositories#supported-ecosystems-and-repositories). + # https://github.com/github/releases/issues/4489 + - | + Users can use EPSS scores to help prioritize dependency vulnerabilities based on exploit likelihood. Using EPSS scores allows users to address vulnerabilities that are more likely to be exploited, reducing the risk of actual attacks. See [Dependabot helps users focus on the most important alerts by including EPSS scores that indicate likelihood of exploitation, now generally available](https://github.blog/changelog/2025-02-19-dependabot-helps-users-focus-on-the-most-important-alerts-by-including-epss-scores-that-indicate-likelihood-of-exploitation-now-generally-available/). + # https://github.com/github/releases/issues/5434 + - | + Developers using `pnpm` workspaces can ensure more reliable dependency updates with full Dependabot support for `pnpm` workspace catalogs. Dependabot prevents lockfile inconsistencies, avoids broken dependency trees, and improves update reliability in monorepos. See [the GitHub blog post](https://github.blog/changelog/2025-02-04-dependabot-now-supports-pnpm-workspace-catalogs-ga/). + + - heading: Identity and access management + notes: + # https://github.com/github/releases/issues/5040 + - | + Automated user provisioning with the System for Cross-domain Identity Management (SCIM) standard is generally available. SCIM is a leading standard for user lifecycle management in SaaS applications. GitHub Enterprise Server instances using SAML authentication can enable SCIM to provision and manage user accounts from an identity provider (IdP). GitHub supports common integrations such as Entra ID and Okta, or you can use a custom SAML IdP and SCIM implementation to meet your organization's needs. You can configure SCIM using a supported IdP application or the SCIM REST API. See [AUTOTITLE](/admin/managing-iam/provisioning-user-accounts-with-scim/user-provisioning-with-scim-on-ghes). + + - heading: Authentication + notes: + # https://github.com/github/releases/issues/2579 + # https://github.com/github/releases/issues/3181 + - | + Fine-grained {% data variables.product.pat_generic_plural %} (PATs) and PAT lifetime policies are now generally available. These tokens offer improved security with per-organization access, token approval workflows, and better auditability through token ID tracking in audit logs. With lifetime policies you can also force the rotation of tokens on a configurable basis, helping drive down the use of long-lived PATs in your environment. See [Fine-grained PATs are now generally available](https://github.blog/changelog/2025-03-18-fine-grained-pats-are-now-generally-available/) on the GitHub Blog. + + - heading: Migrations + notes: + # https://github.com/github/releases/issues/5649 + - | + Administrators can use the GHES Management Console to configure repository exports with local storage, reducing reliance on external blob storage and simplifying the migration process. Exports are stored on the GHES disk, and customers can choose how to provide the archive to GitHub Enterprise Importer, including using GitHub-owned blob storage. + + - heading: Audit logs + notes: + # https://github.com/github/releases/issues/4939 + - | + Audit log streaming of API requests targeting your enterprise's private assets is generally available. + + - heading: Repositories + notes: + # https://github.com/github/releases/issues/4042 + - | + Push rulesets are generally available. Users can block pushes to private and internal repositories, and their forks, based on file type, path, or size. Unlike pre-receive hooks, push rules are built-in, configurable via the UI or API, and support audit logs, evaluate mode, and bypass lists. See [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets#push-rulesets). + # https://github.com/github/releases/issues/5128 + - | + Enterprise administrators can manage rules more efficiently with the general availability of ruleset history, import, and export. Ruleset history allows tracking and rolling back changes, while import and export simplify sharing and reusing rulesets, including GitHub's ruleset-recipes. See [`github/ruleset-recipes`](https://github.com/github/ruleset-recipes). + # https://github.com/github/releases/issues/5129 + - | + Repository administrators can easily convert a fork into a standalone repository by leaving the fork network, which stops automatic syncing with the upstream repository. This is useful for taking a project in a new direction or maintaining separate versions. + # https://github.com/github/releases/issues/5273 + - | + Users can more easily explore contributors and code frequency insights with improved navigation, interactive chart legends for hiding data series, and options to view or download the data as a CSV or PNG. See [Repositories - Updated insight views (General Availability)](https://github.blog/changelog/2025-02-25-repositories-updated-insight-views-general-availability/) on the GitHub Blog. + + - heading: Pull requests + notes: + # https://github.com/github/releases/issues/4318 + - | + The refreshed pull request commits page is generally available. The updated page improves performance, aligns with GitHub's design system, and offers better accessibility. + + - heading: Gist + notes: + # https://github.com/github/releases/issues/5192 + - | + Users can moderate comments on gists by turning them off or deleting unwanted entries. See [AUTOTITLE](/get-started/writing-on-github/editing-and-sharing-content-with-gists/moderating-gist-comments). + + - heading: Commits + notes: + # https://github.com/github/releases/issues/5192 + - | + Verified commits are attached to persistent verification records, allowing users to identify the first actor to introduce a commit to a repository. Users can rotate, expire, or revoke their signing key without impacting existing verifications. + + Verification records consume approximately 80 bytes on disk per signed commit. To limit data growth on large instances, site administrators can run `ghe-config app.persist-commit-signature-verification.enabled false` to disable persistent records. + + - heading: GitHub Mobile + notes: + # https://github.com/github/releases/issues/3234 + - | + GitHub Mobile users can quickly view their recent projects by clicking the Projects view from the Home screen. + # https://github.com/github/releases/issues/5828 + - | + GitHub Mobile supports additional functionality when connected to instances running GitHub Enterprise Server 3.17: + + * Compare branches: View and compare changes between branches directly from your mobile device. + * Fork repositories: Fork public repositories in the mobile app. + * Projects: Access and interact with GitHub Projects on the go. + + - heading: Integrations and extensions + notes: + # https://github.com/github/releases/issues/4900 + - | + GitHub App developers can improve security with a 25-key limit per app, encouraging safer key management practices. Apps exceeding the limit must delete excess keys before adding new ones. Additionally, scoped tokens can access more repositories. See [AUTOTITLE](/apps/creating-github-apps/authenticating-with-a-github-app/managing-private-keys-for-github-apps). + # https://github.com/github/releases/issues/5038 + - | + Enterprise owners can centrally manage and share GitHub Apps across all organizations in their enterprise by creating enterprise-owned GitHub Apps. This eliminates the need to duplicate apps or make them `public`, reducing management overhead and improving security. `Private` and `internal` apps can be transferred to the enterprise level, with permission updates automatically applied across all organizations. Only `internal` visibility is supported, meaning only users and organizations within the enterprise can install and authorize these Apps. See [AUTOTITLE](/admin/managing-your-enterprise-account/creating-github-apps-for-your-enterprise). + + changes: + # https://github.com/github/releases/issues/5956 + - | + SAML response processing includes additional validation and schema checks. We recommend testing your SAML configuration on an upgraded staging appliance before upgrading your production appliance. See the SAML configuration guide for details on the required pieces of data, [AUTOTITLE](/admin/managing-iam/iam-configuration-reference/saml-configuration-reference#saml-response-requirements). + # https://github.com/github/releases/issues/5484 + - | + Users see a horizontal navigation bar at the top of their enterprise account. This update is designed to improve the user experience by providing a consistent, intuitive navigation structure that mirrors the rest of the GitHub experience. + + known_issues: + - | + Custom firewall rules are removed during the upgrade process. + - | + During the validation phase of a configuration run, a `No such object` error may occur for the Notebook and Viewscreen services. This error can be ignored as the services should still correctly start. + - | + If the root site administrator is locked out of the Management Console after failed login attempts, the account does not unlock automatically after the defined lockout time. Someone with administrative SSH access to the instance must unlock the account using the administrative shell. See [AUTOTITLE](/admin/configuration/administering-your-instance-from-the-management-console/troubleshooting-access-to-the-management-console#unlocking-the-root-site-administrator-account). + - | + {% data reusables.release-notes.large-adoc-files-issue %} + - | + Admin stats REST API endpoints may timeout on appliances with many users or repositories. Retrying the request until data is returned is advised. + - | + When following the steps for [Replacing the primary MySQL node](/admin/monitoring-managing-and-updating-your-instance/configuring-clustering/replacing-a-cluster-node#replacing-the-primary-mysql-node), step 14 (running `ghe-cluster-config-apply`) might fail with errors. If this occurs, re-running `ghe-cluster-config-apply` is expected to succeed. + - | + Running a config apply as part of the steps for [Replacing a node in an emergency](/admin/monitoring-managing-and-updating-your-instance/configuring-clustering/replacing-a-cluster-node#replacing-a-node-in-an-emergency) may fail with errors if the node being replaced is still reachable. If this occurs, shutdown the node and repeat the steps. + - | + When restoring data originally backed up from an appliance with version 3.13 or greater, the Elasticsearch indices must be reindexed before the data will display. This happens via a nightly scheduled job. It can also be forced by running `/usr/local/share/enterprise/ghe-es-search-repair`. + - | + When initializing a new GHES cluster, nodes with the `consul-server` role should be added to the cluster before adding additional nodes. Adding all nodes simultaneously creates a race condition between nomad server registration and nomad client registration. + - | + Admins setting up cluster high availability (HA) may encounter a spokes error when running `ghe-cluster-repl-status` if a new organization and repositories are created before using the ghe-cluster-repl-bootstrap command. To avoid this issue, complete the cluster HA setup with `ghe-cluster-repl-bootstrap` before creating new organizations and repositories. + - | + In a cluster, the host running restore requires access the storage nodes via their private IPs. + - | + On an instance hosted on Azure, commenting on an issue via email meant the comment was not added to the issue. + - | + After a restore, existing outside collaborators cannot be added to repositories in a new organization. This issue can be resolved by running `/usr/local/share/enterprise/ghe-es-search-repair` on the appliance. + - | + After a geo-replica is promoted to primary by running `ghe-repl-promote`, the actions workflow of a repository does not have any suggested workflows. + - | + Repository Cache Replicas return `Repository not found` when changes have been pushed to the primary instance that have not yet synchronized to the Cache Replica. This issue can also occur in all previous patches of this release. + - | + When publishing npm packages in a workflow after restoring from a backup to GitHub Enterprise Server 3.13.5.gm4 or 3.14.2.gm3, you may encounter a `401 Unauthorized` error from the GitHub Packages service. This can happen if the restore is from an N-1 or N-2 version and the workflow targets the npm endpoint on the backup instance. To avoid this issue, ensure the access token is valid and includes the correct scopes for publishing to GitHub Packages. + - | + Uploading a new license with unbundled GitHub Advanced Security may not fully unbundle all the Security Configurations on the instance in certain cases. Any active Security Configurations will continue to function, but when attempting to apply the configurations to new repositories you may see errors like "Advanced Security is not purchased" or `Validation failed: Secret scanning non provider patterns Non-provider patterns must be disabled when secret scanning is disabled`. Contact GitHub Support for assistance clearing this state in version 3.17.0. This issue will be resolved in version 3.17.1. + + closing_down: + # https://github.com/github/releases/issues/5177 + - | + In GitHub Enterprise Server 3.20, GitHub will retire the security manager API in favor of the organization roles API. See the [GitHub Blog](https://github.blog/changelog/2024-12-10-notice-of-breaking-changes-security-manager-rest-api-will-be-retired-and-replaced-with-the-organization-roles-rest-api/). + - | + Microsoft Exchange Online is retiring SMTP basic authentication in September 2025. If your GitHub Enterprise Server instance uses this method to send email, delivery may fail after the retirement date. Microsoft recommends switching to a supported alternative. As another option, you may consider using an SMTP OAuth proxy such as [email-oauth2-proxy](https://github.com/simonrob/email-oauth2-proxy), though this is not officially supported. For details and configuration guidance, see the [Microsoft announcement](https://techcommunity.microsoft.com/blog/exchange/exchange-online-to-retire-basic-auth-for-client-submission-smtp-auth/4114750) and the proxy’s [documentation](https://github.com/simonrob/email-oauth2-proxy/blob/main/emailproxy.config). + + retired: + # https://github.com/github/releases/issues/5433 + - | + Real-time job status updates for GitHub Actions workflow notifications in Slack and Microsoft Teams are no longer available. Users still receive notifications when a workflow starts and completes, but intermediate job progress updates have been removed to improve system efficiency. + # https://github.com/github/releases/issues/3525 + - | + In GitHub Enterprise Server 3.17, tag protection rules will be migrated to a ruleset, and the tag protection rule feature will no longer be available. + # https://github.com/github/releases/issues/5292 + - | + Dependabot is no longer supporting Python 3.8, which has reached its end-of-life. If you continue to use Python 3.8, Dependabot will not be able to create pull requests to update dependencies. If this affects you, we recommend updating to a supported release of Python. As of February 2025, Python 3.13 is the newest supported release. + # https://github.com/github/releases/issues/5204 + - | + Dependabot is no longer supporting NPM version 6, which has reached its end-of-life. If you continue to use NPM version 6, Dependabot will be unable to create pull requests to update dependencies. If this affects you, we recommend updating to a supported release of NPM. As of December 2024, NPM 9 is the newest supported release. diff --git a/package-lock.json b/package-lock.json index 6b3e5c753dc2..952a34c75fe6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -94,7 +94,7 @@ "styled-components": "^5.3.11", "swr": "^2.2.5", "tcp-port-used": "1.0.2", - "tsx": "^4.19.3", + "tsx": "^4.19.4", "unified": "^11.0.5", "unist-util-visit": "^5.0.0", "url-template": "^3.1.1", @@ -129,8 +129,8 @@ "@types/styled-components": "^5.1.34", "@types/tcp-port-used": "1.0.4", "@types/website-scraper": "^1.2.10", - "@typescript-eslint/eslint-plugin": "^8.7.0", - "@typescript-eslint/parser": "^8.7.0", + "@typescript-eslint/eslint-plugin": "^8.33.1", + "@typescript-eslint/parser": "^8.33.1", "chalk": "^5.0.1", "change-case": "^5.4.4", "commander": "^14.0.0", @@ -139,7 +139,7 @@ "csv-parse": "5.5.6", "eslint": "^8.57.1", "eslint-config-prettier": "^10.0.3", - "eslint-import-resolver-typescript": "^4.2.7", + "eslint-import-resolver-typescript": "^4.4.2", "eslint-plugin-github": "^5.0.2", "eslint-plugin-import": "^2.30.0", "eslint-plugin-jsx-a11y": "^6.10.2", @@ -161,7 +161,7 @@ "robots-parser": "^3.0.1", "sass": "^1.77.8", "start-server-and-test": "^2.0.11", - "typescript": "^5.5.4", + "typescript": "^5.8.3", "unist-util-remove": "^4.0.0", "unist-util-visit-parents": "6.0.1", "vitest": "^3.1.2", @@ -1212,15 +1212,20 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", + "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", "dev": true, "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.3" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, + "funding": { + "url": "https://opencollective.com/eslint" + }, "peerDependencies": { "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } @@ -2147,15 +2152,15 @@ } }, "node_modules/@napi-rs/wasm-runtime": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.9.tgz", - "integrity": "sha512-OKRBiajrrxB9ATokgEQoG87Z25c67pCpYcCwmXYX8PBftC9pBfN18gnm/fh1wurSLEKIAt+QRFLFCQISrb66Jg==", + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.10.tgz", + "integrity": "sha512-bCsCyeZEwVErsGmyPNSzwfwFn4OdxBj0mmv6hOFucB/k81Ojdu68RbZdxYsRQUPc9l6SU5F/cG+bXgWs3oUgsQ==", "dev": true, "license": "MIT", "optional": true, "dependencies": { - "@emnapi/core": "^1.4.0", - "@emnapi/runtime": "^1.4.0", + "@emnapi/core": "^1.4.3", + "@emnapi/runtime": "^1.4.3", "@tybys/wasm-util": "^0.9.0" } }, @@ -4733,21 +4738,21 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.7.0.tgz", - "integrity": "sha512-RIHOoznhA3CCfSTFiB6kBGLQtB/sox+pJ6jeFu6FxJvqL8qRxq/FfGO/UhsGgQM9oGdXkV4xUgli+dt26biB6A==", + "version": "8.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.33.1.tgz", + "integrity": "sha512-TDCXj+YxLgtvxvFlAvpoRv9MAncDLBV2oT9Bd7YBGC/b/sEURoOYuIwLI99rjWOfY3QtDzO+mk0n4AmdFExW8A==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.7.0", - "@typescript-eslint/type-utils": "8.7.0", - "@typescript-eslint/utils": "8.7.0", - "@typescript-eslint/visitor-keys": "8.7.0", + "@typescript-eslint/scope-manager": "8.33.1", + "@typescript-eslint/type-utils": "8.33.1", + "@typescript-eslint/utils": "8.33.1", + "@typescript-eslint/visitor-keys": "8.33.1", "graphemer": "^1.4.0", - "ignore": "^5.3.1", + "ignore": "^7.0.0", "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" + "ts-api-utils": "^2.1.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4757,26 +4762,45 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", - "eslint": "^8.57.0 || ^9.0.0" + "@typescript-eslint/parser": "^8.33.1", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "peerDependencies": { + "typescript": ">=4.8.4" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.7.0.tgz", - "integrity": "sha512-lN0btVpj2unxHlNYLI//BQ7nzbMJYBVQX5+pbNXvGYazdlgYonMn4AhhHifQ+J4fGRYA/m1DjaQjx+fDetqBOQ==", + "version": "8.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.33.1.tgz", + "integrity": "sha512-qwxv6dq682yVvgKKp2qWwLgRbscDAYktPptK4JPojCwwi3R9cwrvIxS4lvBpzmcqzR4bdn54Z0IG1uHFskW4dA==", "dev": true, - "license": "BSD-2-Clause", + "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.7.0", - "@typescript-eslint/types": "8.7.0", - "@typescript-eslint/typescript-estree": "8.7.0", - "@typescript-eslint/visitor-keys": "8.7.0", + "@typescript-eslint/scope-manager": "8.33.1", + "@typescript-eslint/types": "8.33.1", + "@typescript-eslint/typescript-estree": "8.33.1", + "@typescript-eslint/visitor-keys": "8.33.1", "debug": "^4.3.4" }, "engines": { @@ -4787,43 +4811,78 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.33.1.tgz", + "integrity": "sha512-DZR0efeNklDIHHGRpMpR5gJITQpu6tLr9lDJnKdONTC7vvzOlLAG/wcfxcdxEWrbiZApcoBCzXqU/Z458Za5Iw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.33.1", + "@typescript-eslint/types": "^8.33.1", + "debug": "^4.3.4" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.7.0.tgz", - "integrity": "sha512-87rC0k3ZlDOuz82zzXRtQ7Akv3GKhHs0ti4YcbAJtaomllXoSO8hi7Ix3ccEvCd824dy9aIX+j3d2UMAfCtVpg==", + "version": "8.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.33.1.tgz", + "integrity": "sha512-dM4UBtgmzHR9bS0Rv09JST0RcHYearoEoo3pG5B6GoTR9XcyeqX87FEhPo+5kTvVfKCvfHaHrcgeJQc6mrDKrA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.7.0", - "@typescript-eslint/visitor-keys": "8.7.0" + "@typescript-eslint/types": "8.33.1", + "@typescript-eslint/visitor-keys": "8.33.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.33.1.tgz", + "integrity": "sha512-STAQsGYbHCF0/e+ShUQ4EatXQ7ceh3fBCXkNU7/MZVKulrlq1usH7t2FhxvCpuCi5O5oi1vmVaAjrGeL71OK1g==", + "dev": true, + "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.7.0.tgz", - "integrity": "sha512-tl0N0Mj3hMSkEYhLkjREp54OSb/FI6qyCzfiiclvJvOqre6hsZTGSnHtmFLDU8TIM62G7ygEa1bI08lcuRwEnQ==", + "version": "8.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.33.1.tgz", + "integrity": "sha512-1cG37d9xOkhlykom55WVwG2QRNC7YXlxMaMzqw2uPeJixBFfKWZgaP/hjAObqMN/u3fr5BrTwTnc31/L9jQ2ww==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.7.0", - "@typescript-eslint/utils": "8.7.0", + "@typescript-eslint/typescript-estree": "8.33.1", + "@typescript-eslint/utils": "8.33.1", "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" + "ts-api-utils": "^2.1.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4832,16 +4891,28 @@ "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" } }, "node_modules/@typescript-eslint/types": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.7.0.tgz", - "integrity": "sha512-LLt4BLHFwSfASHSF2K29SZ+ZCsbQOM+LuarPjRUuHm+Qd09hSe3GCeaQbcCr+Mik+0QFRmep/FyZBO6fJ64U3w==", + "version": "8.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.33.1.tgz", + "integrity": "sha512-xid1WfizGhy/TKMTwhtVOgalHwPtV8T32MS9MaH50Cwvz6x6YqRIPdD2WvW0XaqOzTV9p5xdLY0h/ZusU5Lokg==", "dev": true, "license": "MIT", "engines": { @@ -4853,20 +4924,22 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.7.0.tgz", - "integrity": "sha512-MC8nmcGHsmfAKxwnluTQpNqceniT8SteVwd2voYlmiSWGOtjvGXdPl17dYu2797GVscK30Z04WRM28CrKS9WOg==", + "version": "8.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.33.1.tgz", + "integrity": "sha512-+s9LYcT8LWjdYWu7IWs7FvUxpQ/DGkdjZeE/GGulHvv8rvYwQvVaUZ6DE+j5x/prADUgSbbCWZ2nPI3usuVeOA==", "dev": true, - "license": "BSD-2-Clause", + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.7.0", - "@typescript-eslint/visitor-keys": "8.7.0", + "@typescript-eslint/project-service": "8.33.1", + "@typescript-eslint/tsconfig-utils": "8.33.1", + "@typescript-eslint/types": "8.33.1", + "@typescript-eslint/visitor-keys": "8.33.1", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" + "ts-api-utils": "^2.1.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4875,23 +4948,34 @@ "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" } }, "node_modules/@typescript-eslint/utils": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.7.0.tgz", - "integrity": "sha512-ZbdUdwsl2X/s3CiyAu3gOlfQzpbuG3nTWKPoIvAu1pu5r8viiJvv2NPN2AqArL35NCYtw/lrPPfM4gxrMLNLPw==", + "version": "8.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.33.1.tgz", + "integrity": "sha512-52HaBiEQUaRYqAXpfzWSR2U3gxk92Kw006+xZpElaPMg3C4PgM+A5LqwoQI1f9E5aZ/qlxAZxzm42WX+vn92SQ==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.7.0", - "@typescript-eslint/types": "8.7.0", - "@typescript-eslint/typescript-estree": "8.7.0" + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.33.1", + "@typescript-eslint/types": "8.33.1", + "@typescript-eslint/typescript-estree": "8.33.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4901,18 +4985,19 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.7.0.tgz", - "integrity": "sha512-b1tx0orFCCh/THWPQa2ZwWzvOeyzzp36vkJYOpVg0u8UVOIsfVrnuC9FqAw9gRKn+rG2VmWQ/zDJZzkxUnj/XQ==", + "version": "8.33.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.33.1.tgz", + "integrity": "sha512-3i8NrFcZeeDHJ+7ZUuDkGT+UHq+XoFGsymNK2jZCOHcfEzRQ0BdpRtdpSx/Iyf3MHLWIcLS0COuOPibKQboIiQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.7.0", - "eslint-visitor-keys": "^3.4.3" + "@typescript-eslint/types": "8.33.1", + "eslint-visitor-keys": "^4.2.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4922,15 +5007,28 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" }, "node_modules/@unrs/resolver-binding-darwin-arm64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.7.0.tgz", - "integrity": "sha512-vIWAU56r2lZAmUsljp6m9+hrTlwNkZH6pqnSPff2WxzofV+jWRSHLmZRUS+g+VE+LlyPByifmGGHpJmhWetatg==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.7.9.tgz", + "integrity": "sha512-hWbcVTcNqgUirY5DC3heOLrz35D926r2izfxveBmuIgDwx9KkUHfqd93g8PtROJX01lvhmyAc3E09/ma6jhyqQ==", "cpu": [ "arm64" ], @@ -4942,9 +5040,9 @@ ] }, "node_modules/@unrs/resolver-binding-darwin-x64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.7.0.tgz", - "integrity": "sha512-+bShFLgtdwuNteQbKq3X230754AouNMXSLDZ56EssgDyckDt6Ld7wRaJjZF0pY671HnY2pk9/amO4amAFzfN1A==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.7.9.tgz", + "integrity": "sha512-NCZb/oaXELjt8jtm6ztlNPpAxKZsKIxsGYPSxkwQdQ/zl7X2PfyCpWqwoGE4A9vCP6gAgJnvH3e22nE0qk9ieA==", "cpu": [ "x64" ], @@ -4956,9 +5054,9 @@ ] }, "node_modules/@unrs/resolver-binding-freebsd-x64": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.7.0.tgz", - "integrity": "sha512-HJjXb3aIptDZQ0saSmk2S4W1pWNVZ2iNpAbNGZOfsUXbi8xwCmHdVjErNS92hRp7djuDLup1OLrzOMtTdw5BmA==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.7.9.tgz", + "integrity": "sha512-/AYheGgFn9Pw3X3pYFCohznydaUA9980/wlwgbgCsVxnY4IbqVoZhTLQZ4JWKKaOWBwwmM8FseHf5h5OawyOQQ==", "cpu": [ "x64" ], @@ -4970,9 +5068,9 @@ ] }, "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.7.0.tgz", - "integrity": "sha512-NF3lk7KHulLD97UE+MHjH0mrOjeZG8Hz10h48YcFz2V0rlxBdRSRcMbGer8iH/1mIlLqxtvXJfGLUr4SMj0XZg==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.7.9.tgz", + "integrity": "sha512-RYV9sEH3o6SZum5wGb9evXlgibsVfluuiyi09hXVD+qPRrCSB45h3z1HjZpe9+c25GiN53CEy149fYS0fLVBtw==", "cpu": [ "arm" ], @@ -4984,9 +5082,9 @@ ] }, "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.7.0.tgz", - "integrity": "sha512-Gn1c/t24irDgU8yYj4vVG6qHplwUM42ti9/zYWgfmFjoXCH6L4Ab9hh6HuO7bfDSvGDRGWQt1IVaBpgbKHdh3Q==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.7.9.tgz", + "integrity": "sha512-0ishMZMCYNJd4SNjHnjByHWh6ia7EDVZrOVAW8wf9Vz2PTZ0pLrFwu5c9voHouGKg7s2cnzPz87c0OK7dwimUQ==", "cpu": [ "arm" ], @@ -4998,9 +5096,9 @@ ] }, "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.7.0.tgz", - "integrity": "sha512-XRrVXRIUP++qyqAqgiXUpOv0GP3cHx7aA7NrzVFf6Cc8FoYuwtnmT+vctfSo4wRZN71MNU4xq2BEFxI4qvSerg==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.7.9.tgz", + "integrity": "sha512-FOspRldYylONzWCkF5n/B1MMYKXXlg2bzgcgESEVcP4LFh0eom/0XsWvfy+dlfBJ+FkYfJjvBJeje14xOBOa6g==", "cpu": [ "arm64" ], @@ -5012,9 +5110,9 @@ ] }, "node_modules/@unrs/resolver-binding-linux-arm64-musl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.7.0.tgz", - "integrity": "sha512-Sligg+vTDAYTXkUtgviPjGEFIh57pkvlfdyRw21i9gkjp/eCNOAi2o5e7qLGTkoYdJHZJs5wVMViPEmAbw2/Tg==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.7.9.tgz", + "integrity": "sha512-P1S5jTht888/1mZVrBZx8IOxpikRDPoECxod1CcAHYUZGUNr+PNp1m5eB9FWMK2zRCJ8HgHNZfdRyDf9pNCrlQ==", "cpu": [ "arm64" ], @@ -5026,9 +5124,9 @@ ] }, "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.7.0.tgz", - "integrity": "sha512-Apek8/x+7Rg33zUJlQV44Bvq8/t1brfulk0veNJrk9wprF89bCYFMUHF7zQYcpf2u+m1+qs3mYQrBd43fGXhMA==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.7.9.tgz", + "integrity": "sha512-cD9+BPxlFSiIkGWknSgKdTMGZIzCtSIg/O7GJ1LoC+jGtUOBNBJYMn6FyEPRvdpphewYzaCuPsikrMkpdX303Q==", "cpu": [ "ppc64" ], @@ -5040,9 +5138,9 @@ ] }, "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.7.0.tgz", - "integrity": "sha512-kBale8CFX5clfV9VmI9EwKw2ZACMEx1ecjV92F9SeWTUoxl9d+LGzS6zMSX3kGYqcfJB3NXMwLCTwIDBLG1y4g==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.7.9.tgz", + "integrity": "sha512-Z6IuWg9u0257dCVgc/x/zIKamqJhrmaOFuq3AYsSt6ZtyEHoyD5kxdXQUvEgBAd/Fn1b8tsX+VD9mB9al5306Q==", "cpu": [ "riscv64" ], @@ -5054,9 +5152,9 @@ ] }, "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.7.0.tgz", - "integrity": "sha512-s/Q33xQjeFHSCvGl1sZztFZF6xhv7coMvFz6wa/x/ZlEArjiQoMMwGa/Aieq1Kp/6+S13iU3/IJF0ga6/451ow==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.7.9.tgz", + "integrity": "sha512-HpINrXLJVEpvkHHIla6pqhMAKbQBrY+2946i6rF6OlByONLTuObg65bcv3A38qV9yqJ7vtE0FyfNn68k0uQKbg==", "cpu": [ "riscv64" ], @@ -5068,9 +5166,9 @@ ] }, "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.7.0.tgz", - "integrity": "sha512-7PuNXAo97ydaxVNrIYJzPipvINJafDpB8pt5CoZHfu8BmqcU6d7kl6/SABTnqNffNkd6Cfhuo70jvGB2P7oJ/Q==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.7.9.tgz", + "integrity": "sha512-ZXZFfaPFXnrDIPpkFoAZmxzXwqqfCHfnFdZhrEd+mrc/hHTQyxINyzrFMFCqtAa5eIjD7vgzNIXsMFU2QBnCPw==", "cpu": [ "s390x" ], @@ -5082,9 +5180,9 @@ ] }, "node_modules/@unrs/resolver-binding-linux-x64-gnu": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.7.0.tgz", - "integrity": "sha512-fNosEzDMYItA4It+R0tioHwKlEfx/3TkkJdP2x9B5o9R946NDC4ZZj5ZjA+Y4NQD2V/imB3QPAKmeh3vHQGQyA==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.7.9.tgz", + "integrity": "sha512-EzeeaZnuQOa93ox08oa9DqgQc8sK59jfs+apOUrZZSJCDG1ZbtJINPc8uRqE7p3Z66FPAe/uO3+7jZTkWbVDfg==", "cpu": [ "x64" ], @@ -5096,9 +5194,9 @@ ] }, "node_modules/@unrs/resolver-binding-linux-x64-musl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.7.0.tgz", - "integrity": "sha512-gHIw42dmnVcw7osjNPRybaXhONhggWkkzqiOZzXco1q3OKkn4KsbDylATeemnq3TP+L1BrzSqzl0H9UTJ6ji+w==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.7.9.tgz", + "integrity": "sha512-a07ezNt0OY8Vv/iDreJo7ZkKtwRb6UCYaCcMY2nm3ext7rTtDFS7X1GePqrbByvIbRFd6E5q1CKBPzJk6M360Q==", "cpu": [ "x64" ], @@ -5110,9 +5208,9 @@ ] }, "node_modules/@unrs/resolver-binding-wasm32-wasi": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.7.0.tgz", - "integrity": "sha512-yq7POusv63/yTkNTaNsnXU/SAcBzckHyk1oYrDXqjS1m/goaWAaU9J9HrsovgTHkljxTcDd6PMAsJ5WZVBuGEQ==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.7.9.tgz", + "integrity": "sha512-d0fHnxgtrv75Po6LKJLjo1LFC5S0E8vv86H/5wGDFLG0AvS/0k+SghgUW6zAzjM2XRAic/qcy9+O7n/5JOjxFA==", "cpu": [ "wasm32" ], @@ -5120,16 +5218,16 @@ "license": "MIT", "optional": true, "dependencies": { - "@napi-rs/wasm-runtime": "^0.2.9" + "@napi-rs/wasm-runtime": "^0.2.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.7.0.tgz", - "integrity": "sha512-/IPZPbdri9jglHonwB3F7EpQZvBK3ObH+g4ma/KDrqTEAECwvgE10Unvo0ox3LQFR/iMMAkVY+sGNMrMiIV/QQ==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.7.9.tgz", + "integrity": "sha512-0MFcaQDsUYxNqRxjPdsMKg1OGtmsqLzPY2Nwiiyalx6HFvkcHxgRCAOppgeUuDucpUEf76k/4tBzfzPxjYkFUg==", "cpu": [ "arm64" ], @@ -5141,9 +5239,9 @@ ] }, "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.7.0.tgz", - "integrity": "sha512-NGVKbHEdrLuJdpcuGqV5zXO3v8t4CWOs0qeCGjO47RiwwufOi/yYcrtxtCzZAaMPBrffHL7c6tJ1Hxr17cPUGg==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.7.9.tgz", + "integrity": "sha512-SiewmebiN32RpzrV1Dvbw7kdDCRuPThdgEWKJvDNcEGnVEV3ScYGuk5smJjKHXszqNX3mIXG/PcCXqHsE/7XGA==", "cpu": [ "ia32" ], @@ -5155,9 +5253,9 @@ ] }, "node_modules/@unrs/resolver-binding-win32-x64-msvc": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.7.0.tgz", - "integrity": "sha512-Jf14pKofg58DIwcZv4Wt9AyVVe7bSJP8ODz+EP9nG/rho08FQzan0VOJk1g6/BNE1RkoYd+lRTWK+/BgH12qoQ==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.7.9.tgz", + "integrity": "sha512-hORofIRZCm85+TUZ9OmHQJNlgtOmK/TPfvYeSplKAl+zQvAwMGyy6DZcSbrF+KdB1EDoGISwU7dX7PE92haOXg==", "cpu": [ "x64" ], @@ -7319,6 +7417,31 @@ "eslint": ">=7.0.0" } }, + "node_modules/eslint-import-context": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/eslint-import-context/-/eslint-import-context-0.1.6.tgz", + "integrity": "sha512-/e2ZNPDLCrU8niIy0pddcvXuoO2YrKjf3NAIX+60mHJBT4yv7mqCqvVdyCW2E720e25e4S/1OSVef4U6efGLFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-tsconfig": "^4.10.1", + "stable-hash": "^0.0.5" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-import-context" + }, + "peerDependencies": { + "unrs-resolver": "^1.0.0" + }, + "peerDependenciesMeta": { + "unrs-resolver": { + "optional": true + } + } + }, "node_modules/eslint-import-resolver-node": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", @@ -7340,18 +7463,19 @@ } }, "node_modules/eslint-import-resolver-typescript": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-4.3.4.tgz", - "integrity": "sha512-buzw5z5VtiQMysYLH9iW9BV04YyZebsw+gPi+c4FCjfS9i6COYOrEWw9t3m3wA9PFBfqcBCqWf32qrXLbwafDw==", + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-4.4.2.tgz", + "integrity": "sha512-GdSOy0PwLYpQCrmnEQujvA+X0NKrdnVCICEbZq1zlmjjD12NHOHCN9MYyrGFR9ydCs4wJwHEV9tts44ajSlGeA==", "dev": true, "license": "ISC", "dependencies": { - "debug": "^4.4.0", - "get-tsconfig": "^4.10.0", + "debug": "^4.4.1", + "eslint-import-context": "^0.1.5", + "get-tsconfig": "^4.10.1", "is-bun-module": "^2.0.0", "stable-hash": "^0.0.5", - "tinyglobby": "^0.2.13", - "unrs-resolver": "^1.6.3" + "tinyglobby": "^0.2.14", + "unrs-resolver": "^1.7.2" }, "engines": { "node": "^16.17.0 || >=18.6.0" @@ -7373,6 +7497,31 @@ } } }, + "node_modules/eslint-import-resolver-typescript/node_modules/debug": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/eslint-import-resolver-typescript/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, "node_modules/eslint-module-utils": { "version": "2.11.1", "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.11.1.tgz", @@ -8782,9 +8931,10 @@ } }, "node_modules/get-tsconfig": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", - "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.1.tgz", + "integrity": "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==", + "license": "MIT", "dependencies": { "resolve-pkg-maps": "^1.0.0" }, @@ -12069,9 +12219,9 @@ } }, "node_modules/napi-postinstall": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.1.6.tgz", - "integrity": "sha512-w1bClprmjwpybo+7M1Rd0N4QK5Ein8kH/1CQ0Wv8Q9vrLbDMakxc4rZpv8zYc8RVErUELJlFhM8UzOF3IqlYKw==", + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.2.4.tgz", + "integrity": "sha512-ZEzHJwBhZ8qQSbknHqYcdtQVr8zUgGyM/q6h6qAyhtyVMNrSgDhrC4disf03dYW0e+czXyLnZINnCTEkWy0eJg==", "dev": true, "license": "MIT", "bin": { @@ -14909,9 +15059,9 @@ "license": "MIT" }, "node_modules/tinyglobby": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.13.tgz", - "integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==", + "version": "0.2.14", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", + "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", "dev": true, "license": "MIT", "dependencies": { @@ -15105,9 +15255,9 @@ "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/tsx": { - "version": "4.19.3", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.3.tgz", - "integrity": "sha512-4H8vUNGNjQ4V2EOoGw005+c+dGuPSnhpPBPHBtsZdGZBk/iJb4kguGlPWaZTZ3q5nMtFOEsY0nRDlh9PJyd6SQ==", + "version": "4.19.4", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.4.tgz", + "integrity": "sha512-gK5GVzDkJK1SI1zwHf32Mqxf2tSJkNx+eYcNly5+nHvWqXUJYUkWBQtKauoESz3ymezAI++ZwT855x5p5eop+Q==", "license": "MIT", "dependencies": { "esbuild": "~0.25.0", @@ -15253,9 +15403,9 @@ } }, "node_modules/typescript": { - "version": "5.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", - "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "dev": true, "license": "Apache-2.0", "bin": { @@ -15558,36 +15708,36 @@ } }, "node_modules/unrs-resolver": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.7.0.tgz", - "integrity": "sha512-b76tVoT9KPniDY1GoYghDUQX20gjzXm/TONfHfgayLaiuo+oGyT9CsQkGCEJs+1/uryVBEOGOt3yYWDXbJhL7g==", + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.7.9.tgz", + "integrity": "sha512-hhFtY782YKwpz54G1db49YYS1RuMn8mBylIrCldrjb9BxZKnQ2xHw7+2zcl7H6fnUlTHGWv23/+677cpufhfxQ==", "dev": true, "hasInstallScript": true, "license": "MIT", "dependencies": { - "napi-postinstall": "^0.1.6" + "napi-postinstall": "^0.2.2" }, "funding": { - "url": "https://github.com/sponsors/JounQin" + "url": "https://opencollective.com/unrs-resolver" }, "optionalDependencies": { - "@unrs/resolver-binding-darwin-arm64": "1.7.0", - "@unrs/resolver-binding-darwin-x64": "1.7.0", - "@unrs/resolver-binding-freebsd-x64": "1.7.0", - "@unrs/resolver-binding-linux-arm-gnueabihf": "1.7.0", - "@unrs/resolver-binding-linux-arm-musleabihf": "1.7.0", - "@unrs/resolver-binding-linux-arm64-gnu": "1.7.0", - "@unrs/resolver-binding-linux-arm64-musl": "1.7.0", - "@unrs/resolver-binding-linux-ppc64-gnu": "1.7.0", - "@unrs/resolver-binding-linux-riscv64-gnu": "1.7.0", - "@unrs/resolver-binding-linux-riscv64-musl": "1.7.0", - "@unrs/resolver-binding-linux-s390x-gnu": "1.7.0", - "@unrs/resolver-binding-linux-x64-gnu": "1.7.0", - "@unrs/resolver-binding-linux-x64-musl": "1.7.0", - "@unrs/resolver-binding-wasm32-wasi": "1.7.0", - "@unrs/resolver-binding-win32-arm64-msvc": "1.7.0", - "@unrs/resolver-binding-win32-ia32-msvc": "1.7.0", - "@unrs/resolver-binding-win32-x64-msvc": "1.7.0" + "@unrs/resolver-binding-darwin-arm64": "1.7.9", + "@unrs/resolver-binding-darwin-x64": "1.7.9", + "@unrs/resolver-binding-freebsd-x64": "1.7.9", + "@unrs/resolver-binding-linux-arm-gnueabihf": "1.7.9", + "@unrs/resolver-binding-linux-arm-musleabihf": "1.7.9", + "@unrs/resolver-binding-linux-arm64-gnu": "1.7.9", + "@unrs/resolver-binding-linux-arm64-musl": "1.7.9", + "@unrs/resolver-binding-linux-ppc64-gnu": "1.7.9", + "@unrs/resolver-binding-linux-riscv64-gnu": "1.7.9", + "@unrs/resolver-binding-linux-riscv64-musl": "1.7.9", + "@unrs/resolver-binding-linux-s390x-gnu": "1.7.9", + "@unrs/resolver-binding-linux-x64-gnu": "1.7.9", + "@unrs/resolver-binding-linux-x64-musl": "1.7.9", + "@unrs/resolver-binding-wasm32-wasi": "1.7.9", + "@unrs/resolver-binding-win32-arm64-msvc": "1.7.9", + "@unrs/resolver-binding-win32-ia32-msvc": "1.7.9", + "@unrs/resolver-binding-win32-x64-msvc": "1.7.9" } }, "node_modules/update-browserslist-db": { diff --git a/package.json b/package.json index 3e2ed32dc055..ce09ea6255aa 100644 --- a/package.json +++ b/package.json @@ -330,7 +330,7 @@ "styled-components": "^5.3.11", "swr": "^2.2.5", "tcp-port-used": "1.0.2", - "tsx": "^4.19.3", + "tsx": "^4.19.4", "unified": "^11.0.5", "unist-util-visit": "^5.0.0", "url-template": "^3.1.1", @@ -365,8 +365,8 @@ "@types/styled-components": "^5.1.34", "@types/tcp-port-used": "1.0.4", "@types/website-scraper": "^1.2.10", - "@typescript-eslint/eslint-plugin": "^8.7.0", - "@typescript-eslint/parser": "^8.7.0", + "@typescript-eslint/eslint-plugin": "^8.33.1", + "@typescript-eslint/parser": "^8.33.1", "chalk": "^5.0.1", "change-case": "^5.4.4", "commander": "^14.0.0", @@ -375,7 +375,7 @@ "csv-parse": "5.5.6", "eslint": "^8.57.1", "eslint-config-prettier": "^10.0.3", - "eslint-import-resolver-typescript": "^4.2.7", + "eslint-import-resolver-typescript": "^4.4.2", "eslint-plugin-github": "^5.0.2", "eslint-plugin-import": "^2.30.0", "eslint-plugin-jsx-a11y": "^6.10.2", @@ -397,7 +397,7 @@ "robots-parser": "^3.0.1", "sass": "^1.77.8", "start-server-and-test": "^2.0.11", - "typescript": "^5.5.4", + "typescript": "^5.8.3", "unist-util-remove": "^4.0.0", "unist-util-visit-parents": "6.0.1", "vitest": "^3.1.2", diff --git a/src/archives/scripts/warmup-remotejson.ts b/src/archives/scripts/warmup-remotejson.ts index 81cbd6a6de6b..13d800e52851 100755 --- a/src/archives/scripts/warmup-remotejson.ts +++ b/src/archives/scripts/warmup-remotejson.ts @@ -23,7 +23,7 @@ import getRemoteJSON from '@/frame/lib/get-remote-json.js' import { deprecated, lastVersionWithoutArchivedRedirectsFile, -} from '#src/versions/lib/enterprise-server-releases.js' +} from '@/versions/lib/enterprise-server-releases.js' program .description( diff --git a/src/article-api/middleware/article-body.ts b/src/article-api/middleware/article-body.ts index d2dd3b8f052c..e82ef7602173 100644 --- a/src/article-api/middleware/article-body.ts +++ b/src/article-api/middleware/article-body.ts @@ -1,8 +1,8 @@ import type { Response } from 'express' -import { Context } from '#src/types.js' +import { Context } from '@/types.js' import { ExtendedRequestWithPageInfo } from '../types' -import contextualize from '#src/frame/middleware/context/context.js' +import contextualize from '@/frame/middleware/context/context.js' export async function getArticleBody(req: ExtendedRequestWithPageInfo) { // req.pageinfo is set from pageValidationMiddleware and pathValidationMiddleware diff --git a/src/article-api/middleware/article.ts b/src/article-api/middleware/article.ts index ca2394ea86ce..e37b7dd84ee8 100644 --- a/src/article-api/middleware/article.ts +++ b/src/article-api/middleware/article.ts @@ -11,8 +11,8 @@ import { makeLanguageSurrogateKey, setFastlySurrogateKey, SURROGATE_ENUMS, -} from '#src/frame/middleware/set-fastly-surrogate-key.js' -import statsd from '#src/observability/lib/statsd.js' +} from '@/frame/middleware/set-fastly-surrogate-key.js' +import statsd from '@/observability/lib/statsd.js' const router = express.Router() diff --git a/src/article-api/middleware/pagelist.ts b/src/article-api/middleware/pagelist.ts index f8f5bd666c4b..6d1623754cbc 100644 --- a/src/article-api/middleware/pagelist.ts +++ b/src/article-api/middleware/pagelist.ts @@ -3,11 +3,11 @@ import type { Response, RequestHandler } from 'express' import type { ExtendedRequest } from '@/types' import { defaultCacheControl } from '@/frame/middleware/cache-control.js' -import { getProductStringFromPath, getVersionStringFromPath } from '#src/frame/lib/path-utils.js' -import { getLanguageCodeFromPath } from '#src/languages/middleware/detect-language.js' +import { getProductStringFromPath, getVersionStringFromPath } from '@/frame/lib/path-utils.js' +import { getLanguageCodeFromPath } from '@/languages/middleware/detect-language.js' import { pagelistValidationMiddleware } from './validation' -import catchMiddlewareError from '#src/observability/middleware/catch-middleware-error.js' -import statsd from '#src/observability/lib/statsd.js' +import catchMiddlewareError from '@/observability/middleware/catch-middleware-error.js' +import statsd from '@/observability/lib/statsd.js' const router = express.Router() diff --git a/src/article-api/middleware/validation.ts b/src/article-api/middleware/validation.ts index 5fd0bb87208a..6e358ac47b68 100644 --- a/src/article-api/middleware/validation.ts +++ b/src/article-api/middleware/validation.ts @@ -1,11 +1,11 @@ import { ExtendedRequestWithPageInfo } from '../types' import type { NextFunction, Response } from 'express' -import { ExtendedRequest, Page } from '#src/types.js' +import { ExtendedRequest, Page } from '@/types.js' import { isArchivedVersionByPath } from '@/archives/lib/is-archived-version' import getRedirect from '@/redirects/lib/get-redirect.js' -import { getVersionStringFromPath, getLangFromPath } from '#src/frame/lib/path-utils.js' -import nonEnterpriseDefaultVersion from '#src/versions/lib/non-enterprise-default-version.js' +import { getVersionStringFromPath, getLangFromPath } from '@/frame/lib/path-utils.js' +import nonEnterpriseDefaultVersion from '@/versions/lib/non-enterprise-default-version.js' // validates the path for pagelist endpoint // specifically, defaults to `/en/free-pro-team@latest` when those values are missing diff --git a/src/article-api/scripts/precompute-pageinfo.ts b/src/article-api/scripts/precompute-pageinfo.ts index 9259dda5e534..0aeb84753a68 100644 --- a/src/article-api/scripts/precompute-pageinfo.ts +++ b/src/article-api/scripts/precompute-pageinfo.ts @@ -30,8 +30,8 @@ import { brotliCompressSync } from 'zlib' import chalk from 'chalk' import { program, Option } from 'commander' -import { languageKeys } from 'src/languages/lib/languages.js' -import { loadPages, loadUnversionedTree } from 'src/frame/lib/page-data.js' +import { languageKeys } from '@/languages/lib/languages.js' +import { loadPages, loadUnversionedTree } from '@/frame/lib/page-data.js' import { CACHE_FILE_PATH, getPageInfo } from '../middleware/article-pageinfo' program @@ -116,8 +116,8 @@ async function main(options: Options) { fs.writeFileSync(outputFile, payload) } else { const payloadBuffer = Buffer.from(payload, 'utf-8') - const payloadCompressed = brotliCompressSync(payloadBuffer) - fs.writeFileSync(outputFile, payloadCompressed) + const payloadCompressed = brotliCompressSync(payloadBuffer as NodeJS.ArrayBufferView) + fs.writeFileSync(outputFile, payloadCompressed as NodeJS.ArrayBufferView) } console.timeEnd(label) console.log( diff --git a/src/article-api/tests/pageinfo.ts b/src/article-api/tests/pageinfo.ts index 38ac968c388a..5eac6bf50162 100644 --- a/src/article-api/tests/pageinfo.ts +++ b/src/article-api/tests/pageinfo.ts @@ -1,8 +1,8 @@ import { beforeAll, describe, expect, test } from 'vitest' -import { get } from '#src/tests/helpers/e2etest.js' -import { SURROGATE_ENUMS } from '#src/frame/middleware/set-fastly-surrogate-key.js' -import { latest } from '#src/versions/lib/enterprise-server-releases.js' +import { get } from '@/tests/helpers/e2etest.js' +import { SURROGATE_ENUMS } from '@/frame/middleware/set-fastly-surrogate-key.js' +import { latest } from '@/versions/lib/enterprise-server-releases.js' const makeURL = (pathname: string): string => `/api/article/meta?${new URLSearchParams({ pathname })}` diff --git a/src/article-api/tests/pagelist.ts b/src/article-api/tests/pagelist.ts index bc569adafb47..2fb6247edbad 100644 --- a/src/article-api/tests/pagelist.ts +++ b/src/article-api/tests/pagelist.ts @@ -1,9 +1,9 @@ import { beforeAll, describe, expect, test } from 'vitest' -import { get } from '#src/tests/helpers/e2etest.js' +import { get } from '@/tests/helpers/e2etest.js' -import { allVersionKeys } from '#src/versions/lib/all-versions.js' -import nonEnterpriseDefaultVersion from '#src/versions/lib/non-enterprise-default-version.js' +import { allVersionKeys } from '@/versions/lib/all-versions.js' +import nonEnterpriseDefaultVersion from '@/versions/lib/non-enterprise-default-version.js' describe.each(allVersionKeys)('pagelist api for %s', async (versionKey) => { beforeAll(() => { diff --git a/src/assets/tests/static-assets.ts b/src/assets/tests/static-assets.ts index 4ddaed206d6f..71592faf5f5b 100644 --- a/src/assets/tests/static-assets.ts +++ b/src/assets/tests/static-assets.ts @@ -3,8 +3,8 @@ import path from 'path' import { describe, expect, test, vi } from 'vitest' -import { get } from '#src/tests/helpers/e2etest.js' -import { checkCachingHeaders } from '#src/tests/helpers/caching-headers.js' +import { get } from '@/tests/helpers/e2etest.js' +import { checkCachingHeaders } from '@/tests/helpers/caching-headers.js' function getNextStaticAsset(directory: string) { const root = path.join('.next', 'static', directory) diff --git a/src/audit-logs/components/GroupedEvents.tsx b/src/audit-logs/components/GroupedEvents.tsx index 2036f57d9526..c8301971dc73 100644 --- a/src/audit-logs/components/GroupedEvents.tsx +++ b/src/audit-logs/components/GroupedEvents.tsx @@ -1,7 +1,7 @@ import { slug } from 'github-slugger' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' -import { useTranslation } from 'src/languages/components/useTranslation' +import { HeadingLink } from '@/frame/components/article/HeadingLink' +import { useTranslation } from '@/languages/components/useTranslation' import type { AuditLogEventT } from '../types' type Props = { diff --git a/src/audit-logs/pages/audit-log-events.tsx b/src/audit-logs/pages/audit-log-events.tsx index b74541400490..45bd1c7da2f9 100644 --- a/src/audit-logs/pages/audit-log-events.tsx +++ b/src/audit-logs/pages/audit-log-events.tsx @@ -5,13 +5,13 @@ import { getMainContext, MainContext, MainContextT, -} from 'src/frame/components/context/MainContext' +} from '@/frame/components/context/MainContext' import { getAutomatedPageContextFromRequest, AutomatedPageContext, AutomatedPageContextT, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { AutomatedPage } from 'src/automated-pipelines/components/AutomatedPage' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { AutomatedPage } from '@/automated-pipelines/components/AutomatedPage' import GroupedEvents from '../components/GroupedEvents' import type { CategorizedEvents } from '../types' @@ -42,7 +42,7 @@ export default function AuditLogEvents({ } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getAutomatedPageMiniTocItems } = await import('src/frame/lib/get-mini-toc-items') + const { getAutomatedPageMiniTocItems } = await import('@/frame/lib/get-mini-toc-items') const { getCategorizedAuditLogEvents } = await import('../lib') const req = context.req as object diff --git a/src/audit-logs/tests/rendering.ts b/src/audit-logs/tests/rendering.ts index 84f7f9a3201d..f3d85852506f 100644 --- a/src/audit-logs/tests/rendering.ts +++ b/src/audit-logs/tests/rendering.ts @@ -1,7 +1,7 @@ import { describe, expect, test, vi } from 'vitest' -import { getDOM } from '#src/tests/helpers/e2etest.js' -import { allVersions } from '#src/versions/lib/all-versions.js' +import { getDOM } from '@/tests/helpers/e2etest.js' +import { allVersions } from '@/versions/lib/all-versions.js' import { getCategorizedAuditLogEvents } from '../lib' describe('audit log events docs', () => { diff --git a/src/automated-pipelines/components/AutomatedPage.tsx b/src/automated-pipelines/components/AutomatedPage.tsx index 35fa5454e27f..b5635a6bc3fd 100644 --- a/src/automated-pipelines/components/AutomatedPage.tsx +++ b/src/automated-pipelines/components/AutomatedPage.tsx @@ -1,13 +1,13 @@ -import { DefaultLayout } from 'src/frame/components/DefaultLayout' -import { ArticleTitle } from 'src/frame/components/article/ArticleTitle' -import { MarkdownContent } from 'src/frame/components/ui/MarkdownContent' -import { Lead } from 'src/frame/components/ui/Lead' -import { PermissionsStatement } from 'src/frame/components/ui/PermissionsStatement' -import { ArticleGridLayout } from 'src/frame/components/article/ArticleGridLayout' -import { MiniTocs } from 'src/frame/components/ui/MiniTocs' -import { useAutomatedPageContext } from 'src/automated-pipelines/components/AutomatedPageContext' -import { ClientSideHighlight } from 'src/frame/components/ClientSideHighlight' -import { Breadcrumbs } from 'src/frame/components/page-header/Breadcrumbs' +import { DefaultLayout } from '@/frame/components/DefaultLayout' +import { ArticleTitle } from '@/frame/components/article/ArticleTitle' +import { MarkdownContent } from '@/frame/components/ui/MarkdownContent' +import { Lead } from '@/frame/components/ui/Lead' +import { PermissionsStatement } from '@/frame/components/ui/PermissionsStatement' +import { ArticleGridLayout } from '@/frame/components/article/ArticleGridLayout' +import { MiniTocs } from '@/frame/components/ui/MiniTocs' +import { useAutomatedPageContext } from '@/automated-pipelines/components/AutomatedPageContext' +import { ClientSideHighlight } from '@/frame/components/ClientSideHighlight' +import { Breadcrumbs } from '@/frame/components/page-header/Breadcrumbs' type Props = { children: React.ReactNode diff --git a/src/automated-pipelines/components/AutomatedPageContext.tsx b/src/automated-pipelines/components/AutomatedPageContext.tsx index b61d52e08ca1..39decb834628 100644 --- a/src/automated-pipelines/components/AutomatedPageContext.tsx +++ b/src/automated-pipelines/components/AutomatedPageContext.tsx @@ -1,5 +1,5 @@ import { createContext, useContext } from 'react' -import type { MiniTocItem } from 'src/frame/components/context/ArticleContext' +import type { MiniTocItem } from '@/frame/components/context/ArticleContext' export type AutomatedPageContextT = { title: string diff --git a/src/automated-pipelines/components/parameter-table/ChildBodyParametersRows.tsx b/src/automated-pipelines/components/parameter-table/ChildBodyParametersRows.tsx index bd22717f9b48..3484e0ab19ac 100644 --- a/src/automated-pipelines/components/parameter-table/ChildBodyParametersRows.tsx +++ b/src/automated-pipelines/components/parameter-table/ChildBodyParametersRows.tsx @@ -1,6 +1,6 @@ import cx from 'classnames' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { ParameterRow } from './ParameterRow' import type { ChildParameter } from './types' diff --git a/src/automated-pipelines/components/parameter-table/ParameterRow.tsx b/src/automated-pipelines/components/parameter-table/ParameterRow.tsx index e7873fc0ad8a..67d959f0df85 100644 --- a/src/automated-pipelines/components/parameter-table/ParameterRow.tsx +++ b/src/automated-pipelines/components/parameter-table/ParameterRow.tsx @@ -1,6 +1,6 @@ import cx from 'classnames' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { ChildBodyParametersRows } from './ChildBodyParametersRows' import type { ChildParameter } from './types' diff --git a/src/automated-pipelines/components/parameter-table/ParameterTable.tsx b/src/automated-pipelines/components/parameter-table/ParameterTable.tsx index 1a0b272bd269..454151b09666 100644 --- a/src/automated-pipelines/components/parameter-table/ParameterTable.tsx +++ b/src/automated-pipelines/components/parameter-table/ParameterTable.tsx @@ -1,5 +1,5 @@ import cx from 'classnames' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { ParameterRow } from './ParameterRow' import { BodyParameter, ChildParameter, Parameter } from './types' diff --git a/src/automated-pipelines/lib/update-markdown.ts b/src/automated-pipelines/lib/update-markdown.ts index 888165869cae..8953f35362fc 100644 --- a/src/automated-pipelines/lib/update-markdown.ts +++ b/src/automated-pipelines/lib/update-markdown.ts @@ -7,8 +7,8 @@ import { rimraf } from 'rimraf' import { mkdirp } from 'mkdirp' import { difference, isEqual } from 'lodash-es' -import { allVersions } from '#src/versions/lib/all-versions.js' -import getApplicableVersions from '#src/versions/lib/get-applicable-versions.js' +import { allVersions } from '@/versions/lib/all-versions.js' +import getApplicableVersions from '@/versions/lib/get-applicable-versions.js' import type { MarkdownFrontmatter } from '@/types' // Type definitions - extending existing type to add missing fields and make most fields optional diff --git a/src/automated-pipelines/tests/frontmatter-versions.ts b/src/automated-pipelines/tests/frontmatter-versions.ts index 5735debce89e..bdc5493d1494 100644 --- a/src/automated-pipelines/tests/frontmatter-versions.ts +++ b/src/automated-pipelines/tests/frontmatter-versions.ts @@ -1,7 +1,7 @@ import { describe, expect, test } from 'vitest' -import { supported } from '#src/versions/lib/enterprise-server-releases.js' -import { allVersionKeys, allVersions } from '#src/versions/lib/all-versions.js' +import { supported } from '@/versions/lib/enterprise-server-releases.js' +import { allVersionKeys, allVersions } from '@/versions/lib/all-versions.js' import { convertVersionsToFrontmatter } from '../lib/update-markdown.js' describe('frontmatter versions are generated correctly from automated data', () => { diff --git a/src/automated-pipelines/tests/rendering.ts b/src/automated-pipelines/tests/rendering.ts index 031a937c479d..f89823749321 100644 --- a/src/automated-pipelines/tests/rendering.ts +++ b/src/automated-pipelines/tests/rendering.ts @@ -3,8 +3,8 @@ import { readFileSync } from 'fs' import cheerio from 'cheerio' import { describe, expect, test, vi } from 'vitest' -import { loadPages } from '#src/frame/lib/page-data.js' -import { get } from '#src/tests/helpers/e2etest.js' +import { loadPages } from '@/frame/lib/page-data.js' +import { get } from '@/tests/helpers/e2etest.js' // Type definitions for page objects type Page = { diff --git a/src/automated-pipelines/tests/update-markdown.ts b/src/automated-pipelines/tests/update-markdown.ts index c3db522f54d9..c710f447aac1 100644 --- a/src/automated-pipelines/tests/update-markdown.ts +++ b/src/automated-pipelines/tests/update-markdown.ts @@ -6,7 +6,7 @@ import path from 'path' import { afterAll, beforeAll, describe, expect, test } from 'vitest' import { mkdirp } from 'mkdirp' import matter from 'gray-matter' -import type { FrontmatterVersions } from '#src/types.js' +import type { FrontmatterVersions } from '@/types.js' import { updateContentDirectory } from '../lib/update-markdown.js' diff --git a/src/content-render/scripts/test-moved-content.ts b/src/content-render/scripts/test-moved-content.ts index e823001439ca..c885f4ca1d02 100644 --- a/src/content-render/scripts/test-moved-content.ts +++ b/src/content-render/scripts/test-moved-content.ts @@ -4,7 +4,7 @@ import path from 'path' import { program } from 'commander' -import readFrontmatter from 'src/frame/lib/read-frontmatter.js' +import readFrontmatter from '@/frame/lib/read-frontmatter.js' const ROOT = process.env.ROOT || '.' const CONTENT_ROOT = path.resolve(path.join(ROOT, 'content')) diff --git a/src/data-directory/lib/data-directory.d.ts b/src/data-directory/lib/data-directory.d.ts index 0317395a7e44..4443af370cea 100644 --- a/src/data-directory/lib/data-directory.d.ts +++ b/src/data-directory/lib/data-directory.d.ts @@ -1,4 +1,4 @@ -import { FeatureData } from '#src/types.js' +import { FeatureData } from '@/types.js' declare function dataDirectory(dir: string, opts?: Object): FeatureData export default dataDirectory diff --git a/src/dev-toc/generate.ts b/src/dev-toc/generate.ts index d14980545ad9..63fb7ca29aa3 100644 --- a/src/dev-toc/generate.ts +++ b/src/dev-toc/generate.ts @@ -4,10 +4,10 @@ import { execSync } from 'child_process' import { program } from 'commander' import type { NextFunction, Response } from 'express' import type { ExtendedRequest } from '@/types' -import fpt from '#src/versions/lib/non-enterprise-default-version.js' -import { allVersionKeys } from '#src/versions/lib/all-versions.js' -import { liquid } from '#src/content-render/index.js' -import contextualize from '#src/frame/middleware/context/context.js' +import fpt from '@/versions/lib/non-enterprise-default-version.js' +import { allVersionKeys } from '@/versions/lib/all-versions.js' +import { liquid } from '@/content-render/index.js' +import contextualize from '@/frame/middleware/context/context.js' interface CommandOptions { openSections?: string | string[] diff --git a/src/early-access/scripts/migrate-early-access-product.ts b/src/early-access/scripts/migrate-early-access-product.ts index 1db6f58e1489..1e5cef9a28af 100644 --- a/src/early-access/scripts/migrate-early-access-product.ts +++ b/src/early-access/scripts/migrate-early-access-product.ts @@ -10,10 +10,10 @@ import yaml from 'js-yaml' import { last } from 'lodash-es' import { program } from 'commander' import { execFileSync } from 'child_process' -import frontmatter from '#src/frame/lib/read-frontmatter.js' -import patterns from '#src/frame/lib/patterns.js' +import frontmatter from '@/frame/lib/read-frontmatter.js' +import patterns from '@/frame/lib/patterns.js' import addRedirectToFrontmatter from '@/redirects/scripts/helpers/add-redirect-to-frontmatter' -import walkFiles from '#src/workflows/walk-files.ts' +import walkFiles from '@/workflows/walk-files' const contentFiles: string[] = walkFiles('content', '.md', { includeEarlyAccess: true }) const contentDir: string = path.posix.join(process.cwd(), 'content') diff --git a/src/early-access/scripts/update-data-and-image-paths.ts b/src/early-access/scripts/update-data-and-image-paths.ts index a4a4fad7a8f2..c54deeeb4ca4 100644 --- a/src/early-access/scripts/update-data-and-image-paths.ts +++ b/src/early-access/scripts/update-data-and-image-paths.ts @@ -8,9 +8,9 @@ import fs from 'fs' import path from 'path' import { program } from 'commander' -import walkFiles from '#src/workflows/walk-files.ts' +import walkFiles from '@/workflows/walk-files' import { escapeRegExp } from 'lodash-es' -import patterns from '#src/frame/lib/patterns.js' +import patterns from '@/frame/lib/patterns.js' interface ProgramOptions { add?: boolean diff --git a/src/early-access/tests/early-access-unit.ts b/src/early-access/tests/early-access-unit.ts index a14645d678c2..3cfcaa4cbb24 100644 --- a/src/early-access/tests/early-access-unit.ts +++ b/src/early-access/tests/early-access-unit.ts @@ -1,8 +1,8 @@ import { expect, test, vi } from 'vitest' -import { get, getDOM } from '#src/tests/helpers/e2etest.js' +import { get, getDOM } from '@/tests/helpers/e2etest.js' -import { describeIfDocsEarlyAccess } from '#src/tests/helpers/conditional-runs.js' -import languages from '#src/languages/lib/languages.js' +import { describeIfDocsEarlyAccess } from '@/tests/helpers/conditional-runs.js' +import languages from '@/languages/lib/languages.js' const VALID_EARLY_ACCESS_URI = '/early-access/github/save-time-with-slash-commands' diff --git a/src/events/components/Survey.tsx b/src/events/components/Survey.tsx index d87ca37c37e5..9e5154ebe3bc 100644 --- a/src/events/components/Survey.tsx +++ b/src/events/components/Survey.tsx @@ -3,9 +3,9 @@ import cx from 'classnames' import { useRouter } from 'next/router' import { ThumbsdownIcon, ThumbsupIcon } from '@primer/octicons-react' -import { useTranslation } from 'src/languages/components/useTranslation' -import { Link } from 'src/frame/components/Link' -import { sendEvent } from 'src/events/components/events' +import { useTranslation } from '@/languages/components/useTranslation' +import { Link } from '@/frame/components/Link' +import { sendEvent } from '@/events/components/events' import { EventType } from '../types' import styles from './Survey.module.scss' diff --git a/src/events/components/events.ts b/src/events/components/events.ts index f968baa699cf..2a8418eaa03a 100644 --- a/src/events/components/events.ts +++ b/src/events/components/events.ts @@ -1,8 +1,8 @@ /* eslint-disable camelcase */ -import Cookies from 'src/frame/components/lib/cookies' +import Cookies from '@/frame/components/lib/cookies' import { parseUserAgent } from './user-agent' import { Router } from 'next/router' -import { isLoggedIn } from 'src/frame/components/hooks/useHasAccount' +import { isLoggedIn } from '@/frame/components/hooks/useHasAccount' import { getExperimentVariationForContext } from './experiments/experiment' import { EventType, EventPropsByType } from '../types' import { isHeadless } from './is-headless' diff --git a/src/events/lib/hydro.ts b/src/events/lib/hydro.ts index 3d326d606377..65b5df04156a 100644 --- a/src/events/lib/hydro.ts +++ b/src/events/lib/hydro.ts @@ -2,9 +2,9 @@ import { createHmac } from 'crypto' import { Agent } from 'node:https' import got from 'got' import { isNil } from 'lodash-es' -import statsd from 'src/observability/lib/statsd.js' -import { report } from 'src/observability/lib/failbot.js' -import { MAX_REQUEST_TIMEOUT } from 'src/frame/lib/constants.js' +import statsd from '@/observability/lib/statsd.js' +import { report } from '@/observability/lib/failbot.js' +import { MAX_REQUEST_TIMEOUT } from '@/frame/lib/constants.js' const TIME_OUT_TEXT = 'ms has passed since batch creation' const SERVER_DISCONNECT_TEXT = 'The server disconnected before a response was received' diff --git a/src/events/lib/schema.ts b/src/events/lib/schema.ts index daeb38642e8c..733d8eceb9c4 100644 --- a/src/events/lib/schema.ts +++ b/src/events/lib/schema.ts @@ -1,7 +1,7 @@ -import { languageKeys } from '#src/languages/lib/languages.js' -import { allVersionKeys } from '#src/versions/lib/all-versions.js' -import { productIds } from '#src/products/lib/all-products.ts' -import { allTools } from 'src/tools/lib/all-tools.js' +import { languageKeys } from '@/languages/lib/languages.js' +import { allVersionKeys } from '@/versions/lib/all-versions.js' +import { productIds } from '@/products/lib/all-products' +import { allTools } from '@/tools/lib/all-tools.js' const versionPattern = '^\\d+(\\.\\d+)?(\\.\\d+)?$' // eslint-disable-line diff --git a/src/events/middleware.ts b/src/events/middleware.ts index a5016e242963..609da356f90f 100644 --- a/src/events/middleware.ts +++ b/src/events/middleware.ts @@ -7,9 +7,9 @@ import type { ExtendedRequest } from '@/types' import type { Response } from 'express' import { schemas, hydroNames } from './lib/schema.js' -import catchMiddlewareError from 'src/observability/middleware/catch-middleware-error' -import { noCacheControl } from 'src/frame/middleware/cache-control' -import { getJsonValidator } from 'src/tests/lib/validate-json-schema' +import catchMiddlewareError from '@/observability/middleware/catch-middleware-error' +import { noCacheControl } from '@/frame/middleware/cache-control' +import { getJsonValidator } from '@/tests/lib/validate-json-schema' import { formatErrors } from './lib/middleware-errors.js' import { publish as _publish } from './lib/hydro.js' import { analyzeComment, getGuessedLanguage } from './lib/analyze-comment.js' diff --git a/src/events/tests/middleware-errors.ts b/src/events/tests/middleware-errors.ts index 45a157f80b88..3cda6a741ddb 100644 --- a/src/events/tests/middleware-errors.ts +++ b/src/events/tests/middleware-errors.ts @@ -1,6 +1,6 @@ import { describe, test } from 'vitest' -import { validateJson } from 'src/tests/lib/validate-json-schema.js' +import { validateJson } from '@/tests/lib/validate-json-schema.js' import { formatErrors } from '../lib/middleware-errors.js' import { schemas } from '../lib/schema.js' diff --git a/src/events/tests/middleware.ts b/src/events/tests/middleware.ts index f86bde5741ad..367123b704da 100644 --- a/src/events/tests/middleware.ts +++ b/src/events/tests/middleware.ts @@ -1,6 +1,6 @@ import { describe, expect, test, vi } from 'vitest' -import { post } from 'src/tests/helpers/e2etest.js' +import { post } from '@/tests/helpers/e2etest.js' describe('POST /events', () => { vi.setConfig({ testTimeout: 60 * 1000 }) diff --git a/src/fixtures/tests/api-article-body.ts b/src/fixtures/tests/api-article-body.ts index 55f9f16a246e..ad2af1c66859 100644 --- a/src/fixtures/tests/api-article-body.ts +++ b/src/fixtures/tests/api-article-body.ts @@ -1,6 +1,6 @@ import { beforeAll, describe, expect, test } from 'vitest' -import { get } from '#src/tests/helpers/e2etest.js' +import { get } from '@/tests/helpers/e2etest.js' const makeURL = (pathname: string) => `/api/article/body?${new URLSearchParams({ pathname })}` diff --git a/src/frame/components/ClientSideLanguageRedirect.ts b/src/frame/components/ClientSideLanguageRedirect.ts index 6d75c2fe7705..a80b9b63226c 100644 --- a/src/frame/components/ClientSideLanguageRedirect.ts +++ b/src/frame/components/ClientSideLanguageRedirect.ts @@ -1,9 +1,9 @@ import { useEffect } from 'react' import { useRouter } from 'next/router' -import { useLanguages } from 'src/languages/components/LanguagesContext' -import Cookies from 'src/frame/components/lib/cookies' -import { USER_LANGUAGE_COOKIE_NAME } from 'src/frame/lib/constants.js' +import { useLanguages } from '@/languages/components/LanguagesContext' +import Cookies from '@/frame/components/lib/cookies' +import { USER_LANGUAGE_COOKIE_NAME } from '@/frame/lib/constants.js' export function ClientSideLanguageRedirect() { const { locale, asPath, replace } = useRouter() diff --git a/src/frame/components/DefaultLayout.tsx b/src/frame/components/DefaultLayout.tsx index f3a92cac2fd0..4142e923de62 100644 --- a/src/frame/components/DefaultLayout.tsx +++ b/src/frame/components/DefaultLayout.tsx @@ -1,19 +1,19 @@ import Head from 'next/head' import { useRouter } from 'next/router' -import { SidebarNav } from 'src/frame/components/sidebar/SidebarNav' -import { Header } from 'src/frame/components/page-header/Header' -import { LegalFooter } from 'src/frame/components/page-footer/LegalFooter' -import { ScrollButton } from 'src/frame/components/ui/ScrollButton' -import { SupportSection } from 'src/frame/components/page-footer/SupportSection' -import { DeprecationBanner } from 'src/versions/components/DeprecationBanner' -import { RestBanner } from 'src/rest/components/RestBanner' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { useTranslation } from 'src/languages/components/useTranslation' -import { Breadcrumbs } from 'src/frame/components/page-header/Breadcrumbs' -import { useLanguages } from 'src/languages/components/LanguagesContext' +import { SidebarNav } from '@/frame/components/sidebar/SidebarNav' +import { Header } from '@/frame/components/page-header/Header' +import { LegalFooter } from '@/frame/components/page-footer/LegalFooter' +import { ScrollButton } from '@/frame/components/ui/ScrollButton' +import { SupportSection } from '@/frame/components/page-footer/SupportSection' +import { DeprecationBanner } from '@/versions/components/DeprecationBanner' +import { RestBanner } from '@/rest/components/RestBanner' +import { useMainContext } from '@/frame/components/context/MainContext' +import { useTranslation } from '@/languages/components/useTranslation' +import { Breadcrumbs } from '@/frame/components/page-header/Breadcrumbs' +import { useLanguages } from '@/languages/components/LanguagesContext' import { ClientSideLanguageRedirect } from './ClientSideLanguageRedirect' -import { DomainNameEditProvider } from 'src/links/components/useEditableDomainContext' +import { DomainNameEditProvider } from '@/links/components/useEditableDomainContext' import { SearchOverlayContextProvider } from '@/search/components/context/SearchOverlayContext' const MINIMAL_RENDER = Boolean(JSON.parse(process.env.MINIMAL_RENDER || 'false')) diff --git a/src/frame/components/GenericError.tsx b/src/frame/components/GenericError.tsx index b1e4024ed135..3e5f0b36c7eb 100644 --- a/src/frame/components/GenericError.tsx +++ b/src/frame/components/GenericError.tsx @@ -3,7 +3,7 @@ import Link from 'next/link' import { useRouter } from 'next/router' import { MarkGithubIcon, CommentDiscussionIcon } from '@primer/octicons-react' -import { Lead } from 'src/frame/components/ui/Lead' +import { Lead } from '@/frame/components/ui/Lead' export function GenericError() { return ( diff --git a/src/frame/components/Link.tsx b/src/frame/components/Link.tsx index 687c76c6d394..55774dd1ec75 100644 --- a/src/frame/components/Link.tsx +++ b/src/frame/components/Link.tsx @@ -2,7 +2,7 @@ import { useRouter } from 'next/router' import NextLink from 'next/link' import { ComponentProps } from 'react' -import { DEFAULT_VERSION, useVersion } from 'src/versions/components/useVersion' +import { DEFAULT_VERSION, useVersion } from '@/versions/components/useVersion' const { NODE_ENV } = process.env diff --git a/src/frame/components/article/ArticlePage.tsx b/src/frame/components/article/ArticlePage.tsx index 5155ade59e40..5532845fa7f2 100644 --- a/src/frame/components/article/ArticlePage.tsx +++ b/src/frame/components/article/ArticlePage.tsx @@ -3,27 +3,27 @@ import dynamic from 'next/dynamic' import cx from 'classnames' import { LinkExternalIcon } from '@primer/octicons-react' -import { DefaultLayout } from 'src/frame/components/DefaultLayout' -import { ArticleTitle } from 'src/frame/components/article/ArticleTitle' -import { useArticleContext } from 'src/frame/components/context/ArticleContext' -import { LearningTrackNav } from 'src/learning-track/components/article/LearningTrackNav' -import { MarkdownContent } from 'src/frame/components/ui/MarkdownContent' -import { Lead } from 'src/frame/components/ui/Lead' -import { PermissionsStatement } from 'src/frame/components/ui/PermissionsStatement' +import { DefaultLayout } from '@/frame/components/DefaultLayout' +import { ArticleTitle } from '@/frame/components/article/ArticleTitle' +import { useArticleContext } from '@/frame/components/context/ArticleContext' +import { LearningTrackNav } from '@/learning-track/components/article/LearningTrackNav' +import { MarkdownContent } from '@/frame/components/ui/MarkdownContent' +import { Lead } from '@/frame/components/ui/Lead' +import { PermissionsStatement } from '@/frame/components/ui/PermissionsStatement' import { ArticleGridLayout } from './ArticleGridLayout' import { ArticleInlineLayout } from './ArticleInlineLayout' -import { PlatformPicker } from 'src/tools/components/PlatformPicker' -import { ToolPicker } from 'src/tools/components/ToolPicker' -import { MiniTocs } from 'src/frame/components/ui/MiniTocs' -import { LearningTrackCard } from 'src/learning-track/components/article/LearningTrackCard' -import { RestRedirect } from 'src/rest/components/RestRedirect' -import { Breadcrumbs } from 'src/frame/components/page-header/Breadcrumbs' -import { Link } from 'src/frame/components/Link' -import { useTranslation } from 'src/languages/components/useTranslation' -import { LinkPreviewPopover } from 'src/links/components/LinkPreviewPopover' -import { ReplaceDomain } from 'src/links/components/replace-domain' +import { PlatformPicker } from '@/tools/components/PlatformPicker' +import { ToolPicker } from '@/tools/components/ToolPicker' +import { MiniTocs } from '@/frame/components/ui/MiniTocs' +import { LearningTrackCard } from '@/learning-track/components/article/LearningTrackCard' +import { RestRedirect } from '@/rest/components/RestRedirect' +import { Breadcrumbs } from '@/frame/components/page-header/Breadcrumbs' +import { Link } from '@/frame/components/Link' +import { useTranslation } from '@/languages/components/useTranslation' +import { LinkPreviewPopover } from '@/links/components/LinkPreviewPopover' +import { ReplaceDomain } from '@/links/components/replace-domain' -const ClientSideRefresh = dynamic(() => import('src/frame/components/ClientSideRefresh'), { +const ClientSideRefresh = dynamic(() => import('@/frame/components/ClientSideRefresh'), { ssr: false, }) const isDev = process.env.NODE_ENV === 'development' diff --git a/src/frame/components/context/ArticleContext.tsx b/src/frame/components/context/ArticleContext.tsx index 3e24fdf01e79..9ffb55d9d950 100644 --- a/src/frame/components/context/ArticleContext.tsx +++ b/src/frame/components/context/ArticleContext.tsx @@ -1,4 +1,4 @@ -import { SupportPortalVaIframeProps } from 'src/frame/components/article/SupportPortalVaIframe' +import { SupportPortalVaIframeProps } from '@/frame/components/article/SupportPortalVaIframe' import { createContext, useContext } from 'react' export type LearningTrack = { diff --git a/src/frame/components/context/CategoryLandingContext.tsx b/src/frame/components/context/CategoryLandingContext.tsx index 3434ae772ba3..56635139dc33 100644 --- a/src/frame/components/context/CategoryLandingContext.tsx +++ b/src/frame/components/context/CategoryLandingContext.tsx @@ -1,11 +1,8 @@ import pick from 'lodash/pick' import { createContext, useContext } from 'react' import { LearningTrack } from './ArticleContext' -import { - FeaturedLink, - getFeaturedLinksFromReq, -} from 'src/landings/components/ProductLandingContext' -import { TocItem } from '#src/landings/types.ts' +import { FeaturedLink, getFeaturedLinksFromReq } from '@/landings/components/ProductLandingContext' +import { TocItem } from '@/landings/types' export type CategoryLandingContextT = { title: string diff --git a/src/frame/components/context/MainContext.tsx b/src/frame/components/context/MainContext.tsx index 14f5ec9e4f83..e0411b81bf51 100644 --- a/src/frame/components/context/MainContext.tsx +++ b/src/frame/components/context/MainContext.tsx @@ -1,8 +1,8 @@ import { createContext, useContext } from 'react' import pick from 'lodash/pick' -import type { BreadcrumbT } from 'src/frame/components/page-header/Breadcrumbs' -import type { FeatureFlags } from 'src/frame/components/hooks/useFeatureFlags' +import type { BreadcrumbT } from '@/frame/components/page-header/Breadcrumbs' +import type { FeatureFlags } from '@/frame/components/hooks/useFeatureFlags' export type ProductT = { external: boolean diff --git a/src/frame/components/context/TocLandingContext.tsx b/src/frame/components/context/TocLandingContext.tsx index 967eaf35c41c..75972f2eeb48 100644 --- a/src/frame/components/context/TocLandingContext.tsx +++ b/src/frame/components/context/TocLandingContext.tsx @@ -1,10 +1,7 @@ import pick from 'lodash/pick' import { createContext, useContext } from 'react' import { LearningTrack } from './ArticleContext' -import { - FeaturedLink, - getFeaturedLinksFromReq, -} from 'src/landings/components/ProductLandingContext' +import { FeaturedLink, getFeaturedLinksFromReq } from '@/landings/components/ProductLandingContext' export type TocItem = { fullPath: string diff --git a/src/frame/components/hooks/useFeatureFlags.ts b/src/frame/components/hooks/useFeatureFlags.ts index 9195fdbcf9e6..a0345da561f4 100644 --- a/src/frame/components/hooks/useFeatureFlags.ts +++ b/src/frame/components/hooks/useFeatureFlags.ts @@ -1,4 +1,4 @@ -import { useMainContext } from 'src/frame/components/context/MainContext' +import { useMainContext } from '@/frame/components/context/MainContext' export type FeatureFlags = {} diff --git a/src/frame/components/hooks/useHasAccount.ts b/src/frame/components/hooks/useHasAccount.ts index 97f03267c93f..339101823c5e 100644 --- a/src/frame/components/hooks/useHasAccount.ts +++ b/src/frame/components/hooks/useHasAccount.ts @@ -1,5 +1,5 @@ import { useState, useEffect } from 'react' -import Cookies from 'src/frame/components/lib/cookies' +import Cookies from '@/frame/components/lib/cookies' // Measure if the user has a github.com account and signed in during this session. // The github.com sends the color_mode cookie every request when you sign in, diff --git a/src/frame/components/lib/toggle-annotations.ts b/src/frame/components/lib/toggle-annotations.ts index 4b2e28afe991..f633ce364f19 100644 --- a/src/frame/components/lib/toggle-annotations.ts +++ b/src/frame/components/lib/toggle-annotations.ts @@ -1,6 +1,6 @@ -import Cookies from 'src/frame/components/lib/cookies' -import { sendEvent } from 'src/events/components/events' -import { EventType } from 'src/events/types' +import Cookies from '@/frame/components/lib/cookies' +import { sendEvent } from '@/events/components/events' +import { EventType } from '@/events/types' enum annotationMode { Beside = 'beside', diff --git a/src/frame/components/page-footer/Contribution.tsx b/src/frame/components/page-footer/Contribution.tsx index d5ac781ab884..17875ec0e82a 100644 --- a/src/frame/components/page-footer/Contribution.tsx +++ b/src/frame/components/page-footer/Contribution.tsx @@ -1,7 +1,7 @@ import { GitPullRequestIcon } from '@primer/octicons-react' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useMainContext } from '@/frame/components/context/MainContext' +import { useTranslation } from '@/languages/components/useTranslation' export const Contribution = () => { const { relativePath } = useMainContext() diff --git a/src/frame/components/page-footer/LegalFooter.tsx b/src/frame/components/page-footer/LegalFooter.tsx index 72b649439f05..73534a76c64b 100644 --- a/src/frame/components/page-footer/LegalFooter.tsx +++ b/src/frame/components/page-footer/LegalFooter.tsx @@ -2,7 +2,7 @@ import Link from 'next/link' import { useRouter } from 'next/router' import { LinkExternalIcon } from '@primer/octicons-react' import cx from 'classnames' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' export const LegalFooter = () => { const router = useRouter() diff --git a/src/frame/components/page-footer/Support.tsx b/src/frame/components/page-footer/Support.tsx index b100cdb46e09..35cc7decc046 100644 --- a/src/frame/components/page-footer/Support.tsx +++ b/src/frame/components/page-footer/Support.tsx @@ -1,7 +1,7 @@ import { PeopleIcon, CommentDiscussionIcon } from '@primer/octicons-react' -import { useTranslation } from 'src/languages/components/useTranslation' -import { useMainContext } from 'src/frame/components/context/MainContext' +import { useTranslation } from '@/languages/components/useTranslation' +import { useMainContext } from '@/frame/components/context/MainContext' export const Support = () => { const { t } = useTranslation('support') diff --git a/src/frame/components/page-footer/SupportSection.tsx b/src/frame/components/page-footer/SupportSection.tsx index 5ea0c1559d89..45b70eb79ea2 100644 --- a/src/frame/components/page-footer/SupportSection.tsx +++ b/src/frame/components/page-footer/SupportSection.tsx @@ -1,12 +1,12 @@ import cx from 'classnames' -import { Survey } from 'src/events/components/Survey' -import { Contribution } from 'src/frame/components/page-footer/Contribution' -import { Support } from 'src/frame/components/page-footer/Support' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { useVersion } from 'src/versions/components/useVersion' +import { Survey } from '@/events/components/Survey' +import { Contribution } from '@/frame/components/page-footer/Contribution' +import { Support } from '@/frame/components/page-footer/Support' +import { useMainContext } from '@/frame/components/context/MainContext' +import { useVersion } from '@/versions/components/useVersion' import { useRouter } from 'next/router' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { AISearchCTAPopup } from '@/search/components/input/AISearchCTAPopup' import { useSearchOverlayContext } from '@/search/components/context/SearchOverlayContext' import { EXPERIMENTS } from '@/events/components/experiments/experiments' diff --git a/src/frame/components/page-header/Breadcrumbs.tsx b/src/frame/components/page-header/Breadcrumbs.tsx index a40ec783bad4..aca31cadf4a8 100644 --- a/src/frame/components/page-header/Breadcrumbs.tsx +++ b/src/frame/components/page-header/Breadcrumbs.tsx @@ -1,7 +1,7 @@ import cx from 'classnames' import { useMainContext } from '../context/MainContext' -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import styles from './Breadcrumbs.module.scss' diff --git a/src/frame/components/page-header/Header.tsx b/src/frame/components/page-header/Header.tsx index 9d9d29e2ff61..403a621e5404 100644 --- a/src/frame/components/page-header/Header.tsx +++ b/src/frame/components/page-header/Header.tsx @@ -4,16 +4,16 @@ import { useRouter } from 'next/router' import { Dialog, IconButton } from '@primer/react' import { MarkGithubIcon, ThreeBarsIcon } from '@primer/octicons-react' -import { DEFAULT_VERSION, useVersion } from 'src/versions/components/useVersion' -import { Link } from 'src/frame/components/Link' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { HeaderNotifications } from 'src/frame/components/page-header/HeaderNotifications' -import { ApiVersionPicker } from 'src/rest/components/ApiVersionPicker' -import { useTranslation } from 'src/languages/components/useTranslation' -import { Breadcrumbs } from 'src/frame/components/page-header/Breadcrumbs' -import { VersionPicker } from 'src/versions/components/VersionPicker' -import { SidebarNav } from 'src/frame/components/sidebar/SidebarNav' -import { AllProductsLink } from 'src/frame/components/sidebar/AllProductsLink' +import { DEFAULT_VERSION, useVersion } from '@/versions/components/useVersion' +import { Link } from '@/frame/components/Link' +import { useMainContext } from '@/frame/components/context/MainContext' +import { HeaderNotifications } from '@/frame/components/page-header/HeaderNotifications' +import { ApiVersionPicker } from '@/rest/components/ApiVersionPicker' +import { useTranslation } from '@/languages/components/useTranslation' +import { Breadcrumbs } from '@/frame/components/page-header/Breadcrumbs' +import { VersionPicker } from '@/versions/components/VersionPicker' +import { SidebarNav } from '@/frame/components/sidebar/SidebarNav' +import { AllProductsLink } from '@/frame/components/sidebar/AllProductsLink' import { SearchBarButton } from '@/search/components/input/SearchBarButton' import { OldHeaderSearchAndWidgets } from './OldHeaderSearchAndWidgets' import { HeaderSearchAndWidgets } from './HeaderSearchAndWidgets' diff --git a/src/frame/components/page-header/HeaderNotifications.tsx b/src/frame/components/page-header/HeaderNotifications.tsx index 5c10f5550e80..027851bd6674 100644 --- a/src/frame/components/page-header/HeaderNotifications.tsx +++ b/src/frame/components/page-header/HeaderNotifications.tsx @@ -3,14 +3,14 @@ import { useRouter } from 'next/router' import cx from 'classnames' import { XIcon } from '@primer/octicons-react' -import { useLanguages } from 'src/languages/components/LanguagesContext' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { useTranslation } from 'src/languages/components/useTranslation' -import { ExcludesNull } from 'src/frame/components/lib/ExcludesNull' -import { useVersion } from 'src/versions/components/useVersion' -import { useUserLanguage } from 'src/languages/components/useUserLanguage' +import { useLanguages } from '@/languages/components/LanguagesContext' +import { useMainContext } from '@/frame/components/context/MainContext' +import { useTranslation } from '@/languages/components/useTranslation' +import { ExcludesNull } from '@/frame/components/lib/ExcludesNull' +import { useVersion } from '@/versions/components/useVersion' +import { useUserLanguage } from '@/languages/components/useUserLanguage' import styles from './HeaderNotifications.module.scss' -import { useSharedUIContext } from 'src/frame/components/context/SharedUIContext' +import { useSharedUIContext } from '@/frame/components/context/SharedUIContext' enum NotificationType { RELEASE = 'RELEASE', diff --git a/src/frame/components/sidebar/AllProductsLink.tsx b/src/frame/components/sidebar/AllProductsLink.tsx index e0fb7373c81f..5fd8b6a6b0ae 100644 --- a/src/frame/components/sidebar/AllProductsLink.tsx +++ b/src/frame/components/sidebar/AllProductsLink.tsx @@ -1,8 +1,8 @@ import { useRouter } from 'next/router' import { ArrowLeftIcon } from '@primer/octicons-react' -import { DEFAULT_VERSION, useVersion } from 'src/versions/components/useVersion' -import { Link } from 'src/frame/components/Link' -import { useTranslation } from 'src/languages/components/useTranslation' +import { DEFAULT_VERSION, useVersion } from '@/versions/components/useVersion' +import { Link } from '@/frame/components/Link' +import { useTranslation } from '@/languages/components/useTranslation' export const AllProductsLink = () => { const router = useRouter() diff --git a/src/frame/components/sidebar/SidebarNav.tsx b/src/frame/components/sidebar/SidebarNav.tsx index c2000f093064..4062ed48b507 100644 --- a/src/frame/components/sidebar/SidebarNav.tsx +++ b/src/frame/components/sidebar/SidebarNav.tsx @@ -1,12 +1,12 @@ import cx from 'classnames' import { useRouter } from 'next/router' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { SidebarProduct } from 'src/landings/components/SidebarProduct' -import { SidebarSearchAggregates } from 'src/search/components/results/SidebarSearchAggregates' +import { useMainContext } from '@/frame/components/context/MainContext' +import { SidebarProduct } from '@/landings/components/SidebarProduct' +import { SidebarSearchAggregates } from '@/search/components/results/SidebarSearchAggregates' import { AllProductsLink } from './AllProductsLink' -import { ApiVersionPicker } from 'src/rest/components/ApiVersionPicker' -import { Link } from 'src/frame/components/Link' +import { ApiVersionPicker } from '@/rest/components/ApiVersionPicker' +import { Link } from '@/frame/components/Link' type Props = { variant?: 'full' | 'overlay' diff --git a/src/frame/components/ui/Alert/Alert.tsx b/src/frame/components/ui/Alert/Alert.tsx index dac2618a6eda..58c77975a52e 100644 --- a/src/frame/components/ui/Alert/Alert.tsx +++ b/src/frame/components/ui/Alert/Alert.tsx @@ -2,7 +2,7 @@ import { createElement, ReactNode } from 'react' import cx from 'classnames' import styles from './Alert.module.scss' import { InfoIcon, ReportIcon, AlertIcon, LightBulbIcon, StopIcon } from '@primer/octicons-react' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' const alertTypes = { NOTE: { icon: InfoIcon, color: 'accent' }, diff --git a/src/frame/components/ui/MiniTocs/MiniTocs.tsx b/src/frame/components/ui/MiniTocs/MiniTocs.tsx index ae2b9cb429bf..80f398bb5827 100644 --- a/src/frame/components/ui/MiniTocs/MiniTocs.tsx +++ b/src/frame/components/ui/MiniTocs/MiniTocs.tsx @@ -2,8 +2,8 @@ import { Heading, NavList } from '@primer/react' import { useEffect, useState } from 'react' import cx from 'classnames' -import type { MiniTocItem } from 'src/frame/components/context/ArticleContext' -import { useTranslation } from 'src/languages/components/useTranslation' +import type { MiniTocItem } from '@/frame/components/context/ArticleContext' +import { useTranslation } from '@/languages/components/useTranslation' import styles from './Minitocs.module.scss' diff --git a/src/frame/components/ui/PermissionsStatement/PermissionsStatement.tsx b/src/frame/components/ui/PermissionsStatement/PermissionsStatement.tsx index 6af5e45cf52a..b212448db8ca 100644 --- a/src/frame/components/ui/PermissionsStatement/PermissionsStatement.tsx +++ b/src/frame/components/ui/PermissionsStatement/PermissionsStatement.tsx @@ -1,7 +1,7 @@ import { Box } from '@primer/react' import { PersonIcon, BriefcaseIcon } from '@primer/octicons-react' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' type Props = { product?: string diff --git a/src/frame/lib/warm-server.ts b/src/frame/lib/warm-server.ts index 7ed977751401..1130ed45e940 100644 --- a/src/frame/lib/warm-server.ts +++ b/src/frame/lib/warm-server.ts @@ -1,6 +1,6 @@ -import statsd from '#src/observability/lib/statsd.js' +import statsd from '@/observability/lib/statsd.js' import { loadUnversionedTree, loadSiteTree, loadPages, loadPageMap } from './page-data.js' -import loadRedirects from '#src/redirects/lib/precompile.js' +import loadRedirects from '@/redirects/lib/precompile.js' // Instrument these functions so that // it's wrapped in a timer that reports to Datadog diff --git a/src/frame/middleware/abort.ts b/src/frame/middleware/abort.ts index f79e38ab08d2..4875e55207f0 100644 --- a/src/frame/middleware/abort.ts +++ b/src/frame/middleware/abort.ts @@ -1,6 +1,6 @@ import type { NextFunction, Response } from 'express' -import statsd from '#src/observability/lib/statsd.js' +import statsd from '@/observability/lib/statsd.js' import { ExtendedRequest } from '@/types' class AbortError extends Error { diff --git a/src/frame/pages/app.tsx b/src/frame/pages/app.tsx index aa60382cb8be..4a43f464c94d 100644 --- a/src/frame/pages/app.tsx +++ b/src/frame/pages/app.tsx @@ -5,19 +5,19 @@ import Head from 'next/head' import { ThemeProvider } from '@primer/react' import { useRouter } from 'next/router' -import { initializeEvents } from 'src/events/components/events' +import { initializeEvents } from '@/events/components/events' import { initializeExperiments, initializeForwardFeatureUrlParam, -} from 'src/events/components/experiments/experiment' +} from '@/events/components/experiments/experiment' import { LanguagesContext, LanguagesContextT, LanguageItem, -} from 'src/languages/components/LanguagesContext' -import { useTheme } from 'src/color-schemes/components/useTheme' -import { SharedUIContextProvider } from 'src/frame/components/context/SharedUIContext' -import { CTAPopoverProvider } from 'src/frame/components/context/CTAContext' +} from '@/languages/components/LanguagesContext' +import { useTheme } from '@/color-schemes/components/useTheme' +import { SharedUIContextProvider } from '@/frame/components/context/SharedUIContext' +import { CTAPopoverProvider } from '@/frame/components/context/CTAContext' type MyAppProps = AppProps & { isDotComAuthenticated: boolean diff --git a/src/ghes-releases/scripts/create-enterprise-issue.ts b/src/ghes-releases/scripts/create-enterprise-issue.ts index 0af52f0d7943..6fa7a763670a 100644 --- a/src/ghes-releases/scripts/create-enterprise-issue.ts +++ b/src/ghes-releases/scripts/create-enterprise-issue.ts @@ -4,9 +4,9 @@ import { Liquid } from 'liquidjs' import walk from 'walk-sync' import matter from 'gray-matter' -import { latest, oldestSupported } from '#src/versions/lib/enterprise-server-releases.js' -import { getContents } from '#src/workflows/git-utils.ts' -import github from '#src/workflows/github.ts' +import { latest, oldestSupported } from '@/versions/lib/enterprise-server-releases.js' +import { getContents } from '@/workflows/git-utils' +import github from '@/workflows/github' interface ReleaseDates { [releaseNumber: string]: { diff --git a/src/ghes-releases/scripts/deprecate/archive-version.ts b/src/ghes-releases/scripts/deprecate/archive-version.ts index 37f2cbf228af..3a111ea12176 100755 --- a/src/ghes-releases/scripts/deprecate/archive-version.ts +++ b/src/ghes-releases/scripts/deprecate/archive-version.ts @@ -14,10 +14,10 @@ import { rimraf } from 'rimraf' import http from 'http' import createApp from '@/frame/lib/app' -import EnterpriseServerReleases from '#src/versions/lib/enterprise-server-releases.js' -import loadRedirects from '#src/redirects/lib/precompile.js' -import { loadPageMap, loadPages } from '#src/frame/lib/page-data.js' -import { languageKeys } from '#src/languages/lib/languages.js' +import EnterpriseServerReleases from '@/versions/lib/enterprise-server-releases.js' +import loadRedirects from '@/redirects/lib/precompile.js' +import { loadPageMap, loadPages } from '@/frame/lib/page-data.js' +import { languageKeys } from '@/languages/lib/languages.js' import { RewriteAssetPathsPlugin } from '@/ghes-releases/scripts/deprecate/rewrite-asset-paths' const port = '4001' diff --git a/src/ghes-releases/scripts/deprecate/update-automated-pipelines.ts b/src/ghes-releases/scripts/deprecate/update-automated-pipelines.ts index e624adf76801..44ae286acdc9 100755 --- a/src/ghes-releases/scripts/deprecate/update-automated-pipelines.ts +++ b/src/ghes-releases/scripts/deprecate/update-automated-pipelines.ts @@ -15,7 +15,7 @@ import { rimrafSync } from 'rimraf' import { difference, intersection } from 'lodash-es' import { mkdirp } from 'mkdirp' -import { deprecated, supported } from '#src/versions/lib/enterprise-server-releases.js' +import { deprecated, supported } from '@/versions/lib/enterprise-server-releases.js' const [currentReleaseNumber, previousReleaseNumber] = supported const pipelines = JSON.parse(await readFile('src/automated-pipelines/lib/config.json', 'utf-8'))[ @@ -55,7 +55,7 @@ export async function updateAutomatedPipelines() { // src/rest/lib/config.json file. We want to update 'api-versions' // before the allVersions object is created so we need to import it // after calling updateAutomatedConfigFiles. - const { allVersions } = await import('#src/versions/lib/all-versions.js') + const { allVersions } = await import('@/versions/lib/all-versions.js') // Gets all of the base names (e.g., ghes-) in the allVersions object // Currently, this is only ghes- but if we had more than one type of diff --git a/src/ghes-releases/scripts/deprecate/update-content.ts b/src/ghes-releases/scripts/deprecate/update-content.ts index 95afdaf1f0d1..30741f66efa9 100644 --- a/src/ghes-releases/scripts/deprecate/update-content.ts +++ b/src/ghes-releases/scripts/deprecate/update-content.ts @@ -3,10 +3,10 @@ import path from 'path' import yaml from 'js-yaml' import walkFiles from 'walk-sync' -import frontmatter from '#src/frame/lib/read-frontmatter.js' -import { supported, deprecated } from '#src/versions/lib/enterprise-server-releases.js' +import frontmatter from '@/frame/lib/read-frontmatter.js' +import { supported, deprecated } from '@/versions/lib/enterprise-server-releases.js' import { isInAllGhes } from '../version-utils' -import { Versions } from '#src/types.js' +import { Versions } from '@/types.js' type featureDataType = Versions | undefined diff --git a/src/ghes-releases/scripts/deprecate/update-data.ts b/src/ghes-releases/scripts/deprecate/update-data.ts index a17c6f6c09a1..46d451220640 100644 --- a/src/ghes-releases/scripts/deprecate/update-data.ts +++ b/src/ghes-releases/scripts/deprecate/update-data.ts @@ -4,7 +4,7 @@ import walkFiles from 'walk-sync' import yaml from 'js-yaml' import { isInAllGhes, isFeatureDeprecated } from '../version-utils' -import type { MarkdownFrontmatter } from '#src/types.ts' +import type { MarkdownFrontmatter } from '@/types.ts' const contentFiles = walkFiles('content', { includeBasePath: true, diff --git a/src/ghes-releases/scripts/release-banner.ts b/src/ghes-releases/scripts/release-banner.ts index 886e0c717090..2fe9e809534e 100644 --- a/src/ghes-releases/scripts/release-banner.ts +++ b/src/ghes-releases/scripts/release-banner.ts @@ -7,7 +7,7 @@ import fs from 'fs/promises' import { program } from 'commander' -import { allVersions } from '#src/versions/lib/all-versions.js' +import { allVersions } from '@/versions/lib/all-versions.js' const releaseCandidateJSFile = 'src/versions/lib/enterprise-server-releases.js' const allowedActions = ['create', 'remove'] as const diff --git a/src/ghes-releases/scripts/update-enterprise-dates.ts b/src/ghes-releases/scripts/update-enterprise-dates.ts index 74aa7d3e58db..8d00388d666a 100644 --- a/src/ghes-releases/scripts/update-enterprise-dates.ts +++ b/src/ghes-releases/scripts/update-enterprise-dates.ts @@ -9,7 +9,7 @@ import { fileURLToPath } from 'url' import path from 'path' import fs from 'fs/promises' -import { getContents } from '#src/workflows/git-utils.ts' +import { getContents } from '@/workflows/git-utils' interface EnterpriseDates { [releaseNumber: string]: { diff --git a/src/ghes-releases/scripts/version-utils.ts b/src/ghes-releases/scripts/version-utils.ts index b8d15344145b..25ea9ca82f31 100644 --- a/src/ghes-releases/scripts/version-utils.ts +++ b/src/ghes-releases/scripts/version-utils.ts @@ -1,8 +1,8 @@ import semver from 'semver' -import { supported } from '#src/versions/lib/enterprise-server-releases.js' -import getDataDirectory from '#src/data-directory/lib/data-directory.js' -import { FeatureData, FrontmatterVersions } from '#src/types.js' +import { supported } from '@/versions/lib/enterprise-server-releases.js' +import getDataDirectory from '@/data-directory/lib/data-directory.js' +import { FeatureData, FrontmatterVersions } from '@/types.js' // Return true if lowestSupportedVersion > semVerRange export function isGhesReleaseDeprecated(lowestSupportedVersion: string, semVerRange: string) { diff --git a/src/github-apps/components/EnabledList.tsx b/src/github-apps/components/EnabledList.tsx index 936edd0f173e..3433ca319ea1 100644 --- a/src/github-apps/components/EnabledList.tsx +++ b/src/github-apps/components/EnabledList.tsx @@ -2,15 +2,15 @@ import { Fragment } from 'react' import { useRouter } from 'next/router' import { slug as githubSlug } from 'github-slugger' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' -import { Link } from 'src/frame/components/Link' -import { MainContext, MainContextT } from 'src/frame/components/context/MainContext' +import { HeadingLink } from '@/frame/components/article/HeadingLink' +import { Link } from '@/frame/components/Link' +import { MainContext, MainContextT } from '@/frame/components/context/MainContext' import { AutomatedPageContext, AutomatedPageContextT, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { AutomatedPage } from 'src/automated-pipelines/components/AutomatedPage' -import { RestRedirect } from 'src/rest/components/RestRedirect' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { AutomatedPage } from '@/automated-pipelines/components/AutomatedPage' +import { RestRedirect } from '@/rest/components/RestRedirect' type EnabledOperationT = { slug: string diff --git a/src/github-apps/components/PermissionsList.tsx b/src/github-apps/components/PermissionsList.tsx index f572c5ff0304..64fe8f92edb0 100644 --- a/src/github-apps/components/PermissionsList.tsx +++ b/src/github-apps/components/PermissionsList.tsx @@ -3,18 +3,18 @@ import cx from 'classnames' import { slug as githubSlug } from 'github-slugger' import { CheckIcon, XIcon } from '@primer/octicons-react' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' -import { useTranslation } from 'src/languages/components/useTranslation' -import { Link } from 'src/frame/components/Link' -import { MainContextT } from 'src/frame/components/context/MainContext' +import { HeadingLink } from '@/frame/components/article/HeadingLink' +import { useTranslation } from '@/languages/components/useTranslation' +import { Link } from '@/frame/components/Link' +import { MainContextT } from '@/frame/components/context/MainContext' import { AutomatedPageContext, AutomatedPageContextT, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { AutomatedPage } from 'src/automated-pipelines/components/AutomatedPage' -import { RestRedirect } from 'src/rest/components/RestRedirect' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { AutomatedPage } from '@/automated-pipelines/components/AutomatedPage' +import { RestRedirect } from '@/rest/components/RestRedirect' -import styles from 'src/github-apps/components/PermissionTable.module.scss' +import styles from '@/github-apps/components/PermissionTable.module.scss' const IAT_DOCS_REF = '/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation' const UAT_DOCS_REF = diff --git a/src/github-apps/data/fpt-2022-11-28/fine-grained-pat-permissions.json b/src/github-apps/data/fpt-2022-11-28/fine-grained-pat-permissions.json index 217bed2ccbc2..8c5f882cfb9a 100644 --- a/src/github-apps/data/fpt-2022-11-28/fine-grained-pat-permissions.json +++ b/src/github-apps/data/fpt-2022-11-28/fine-grained-pat-permissions.json @@ -99,6 +99,15 @@ "additional-permissions": false, "access": "read" }, + { + "category": "dependabot", + "slug": "updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies", + "subcategory": "repository-access", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access", + "additional-permissions": false, + "access": "write" + }, { "category": "dependabot", "slug": "set-the-default-repository-access-level-for-dependabot", diff --git a/src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json b/src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json index 65c037bdeac4..2aad451595a6 100644 --- a/src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json +++ b/src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json @@ -2192,6 +2192,12 @@ "verb": "get", "requestPath": "/organizations/{org}/dependabot/repository-access" }, + { + "slug": "updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies", + "subcategory": "repository-access", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access" + }, { "slug": "set-the-default-repository-access-level-for-dependabot", "subcategory": "repository-access", diff --git a/src/github-apps/data/fpt-2022-11-28/server-to-server-permissions.json b/src/github-apps/data/fpt-2022-11-28/server-to-server-permissions.json index 18377914291a..31f13fcf982b 100644 --- a/src/github-apps/data/fpt-2022-11-28/server-to-server-permissions.json +++ b/src/github-apps/data/fpt-2022-11-28/server-to-server-permissions.json @@ -119,6 +119,17 @@ "server-to-server": true, "additional-permissions": false }, + { + "category": "dependabot", + "slug": "updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies", + "subcategory": "repository-access", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access", + "access": "write", + "user-to-server": true, + "server-to-server": true, + "additional-permissions": false + }, { "category": "dependabot", "slug": "set-the-default-repository-access-level-for-dependabot", diff --git a/src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json b/src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json index 0a56780895c4..96508044f1cb 100644 --- a/src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json +++ b/src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json @@ -1920,6 +1920,12 @@ "verb": "get", "requestPath": "/organizations/{org}/dependabot/repository-access" }, + { + "slug": "updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies", + "subcategory": "repository-access", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access" + }, { "slug": "set-the-default-repository-access-level-for-dependabot", "subcategory": "repository-access", diff --git a/src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json b/src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json index 65c037bdeac4..2aad451595a6 100644 --- a/src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json +++ b/src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json @@ -2192,6 +2192,12 @@ "verb": "get", "requestPath": "/organizations/{org}/dependabot/repository-access" }, + { + "slug": "updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies", + "subcategory": "repository-access", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access" + }, { "slug": "set-the-default-repository-access-level-for-dependabot", "subcategory": "repository-access", diff --git a/src/github-apps/data/ghec-2022-11-28/fine-grained-pat-permissions.json b/src/github-apps/data/ghec-2022-11-28/fine-grained-pat-permissions.json index 0bb9c8d458a9..07777c87926c 100644 --- a/src/github-apps/data/ghec-2022-11-28/fine-grained-pat-permissions.json +++ b/src/github-apps/data/ghec-2022-11-28/fine-grained-pat-permissions.json @@ -291,6 +291,15 @@ "additional-permissions": false, "access": "read" }, + { + "category": "dependabot", + "slug": "updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies", + "subcategory": "repository-access", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access", + "additional-permissions": false, + "access": "write" + }, { "category": "dependabot", "slug": "set-the-default-repository-access-level-for-dependabot", diff --git a/src/github-apps/data/ghec-2022-11-28/fine-grained-pat.json b/src/github-apps/data/ghec-2022-11-28/fine-grained-pat.json index b15983ede9d7..e25cbdf65ac2 100644 --- a/src/github-apps/data/ghec-2022-11-28/fine-grained-pat.json +++ b/src/github-apps/data/ghec-2022-11-28/fine-grained-pat.json @@ -2230,6 +2230,12 @@ "verb": "get", "requestPath": "/organizations/{org}/dependabot/repository-access" }, + { + "slug": "updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies", + "subcategory": "repository-access", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access" + }, { "slug": "set-the-default-repository-access-level-for-dependabot", "subcategory": "repository-access", diff --git a/src/github-apps/data/ghec-2022-11-28/server-to-server-permissions.json b/src/github-apps/data/ghec-2022-11-28/server-to-server-permissions.json index 0705113c3ef1..9cda7790d318 100644 --- a/src/github-apps/data/ghec-2022-11-28/server-to-server-permissions.json +++ b/src/github-apps/data/ghec-2022-11-28/server-to-server-permissions.json @@ -351,6 +351,17 @@ "server-to-server": true, "additional-permissions": false }, + { + "category": "dependabot", + "slug": "updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies", + "subcategory": "repository-access", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access", + "access": "write", + "user-to-server": true, + "server-to-server": true, + "additional-permissions": false + }, { "category": "dependabot", "slug": "set-the-default-repository-access-level-for-dependabot", diff --git a/src/github-apps/data/ghec-2022-11-28/server-to-server-rest.json b/src/github-apps/data/ghec-2022-11-28/server-to-server-rest.json index cd3d6232a140..2d42aa58f839 100644 --- a/src/github-apps/data/ghec-2022-11-28/server-to-server-rest.json +++ b/src/github-apps/data/ghec-2022-11-28/server-to-server-rest.json @@ -1958,6 +1958,12 @@ "verb": "get", "requestPath": "/organizations/{org}/dependabot/repository-access" }, + { + "slug": "updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies", + "subcategory": "repository-access", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access" + }, { "slug": "set-the-default-repository-access-level-for-dependabot", "subcategory": "repository-access", diff --git a/src/github-apps/data/ghec-2022-11-28/user-to-server-rest.json b/src/github-apps/data/ghec-2022-11-28/user-to-server-rest.json index b15983ede9d7..e25cbdf65ac2 100644 --- a/src/github-apps/data/ghec-2022-11-28/user-to-server-rest.json +++ b/src/github-apps/data/ghec-2022-11-28/user-to-server-rest.json @@ -2230,6 +2230,12 @@ "verb": "get", "requestPath": "/organizations/{org}/dependabot/repository-access" }, + { + "slug": "updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies", + "subcategory": "repository-access", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access" + }, { "slug": "set-the-default-repository-access-level-for-dependabot", "subcategory": "repository-access", diff --git a/src/github-apps/lib/config.json b/src/github-apps/lib/config.json index 690949e25e9d..52fbf5dad102 100644 --- a/src/github-apps/lib/config.json +++ b/src/github-apps/lib/config.json @@ -60,5 +60,5 @@ "2022-11-28" ] }, - "sha": "31cc3f663aaf18c192fbccf6ea5d574ef40dbb20" + "sha": "bf4af7c248a68067f570e103053a01b1c9725a92" } \ No newline at end of file diff --git a/src/github-apps/pages/endpoints-available-for-fine-grained-personal-access-tokens.tsx b/src/github-apps/pages/endpoints-available-for-fine-grained-personal-access-tokens.tsx index dde151c9c1e2..68df0ecd4c64 100644 --- a/src/github-apps/pages/endpoints-available-for-fine-grained-personal-access-tokens.tsx +++ b/src/github-apps/pages/endpoints-available-for-fine-grained-personal-access-tokens.tsx @@ -3,10 +3,10 @@ import { GetServerSideProps } from 'next' import { AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { MainContextT, getMainContext } from 'src/frame/components/context/MainContext' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { MainContextT, getMainContext } from '@/frame/components/context/MainContext' -import { EnabledList, EnabledListT } from 'src/github-apps/components/EnabledList' +import { EnabledList, EnabledListT } from '@/github-apps/components/EnabledList' type Props = { mainContext: MainContextT @@ -35,7 +35,7 @@ export default function FineGrainedTokenEndpoints({ } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getAppsServerSideProps } = await import('src/github-apps/lib/index.js') + const { getAppsServerSideProps } = await import('@/github-apps/lib/index.js') const { currentVersion, appsItems, categoriesWithoutSubcategories } = await getAppsServerSideProps(context, 'fine-grained-pat', { useDisplayTitle: false }) diff --git a/src/github-apps/pages/endpoints-available-for-github-app-installation-access-tokens.tsx b/src/github-apps/pages/endpoints-available-for-github-app-installation-access-tokens.tsx index aff5f5ac0418..f6abc6c52587 100644 --- a/src/github-apps/pages/endpoints-available-for-github-app-installation-access-tokens.tsx +++ b/src/github-apps/pages/endpoints-available-for-github-app-installation-access-tokens.tsx @@ -3,10 +3,10 @@ import { GetServerSideProps } from 'next' import { AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { MainContextT, getMainContext } from 'src/frame/components/context/MainContext' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { MainContextT, getMainContext } from '@/frame/components/context/MainContext' -import { EnabledList, EnabledListT } from 'src/github-apps/components/EnabledList' +import { EnabledList, EnabledListT } from '@/github-apps/components/EnabledList' type Props = { mainContext: MainContextT @@ -35,7 +35,7 @@ export default function GitHubAppEndpoints({ } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getAppsServerSideProps } = await import('src/github-apps/lib/index.js') + const { getAppsServerSideProps } = await import('@/github-apps/lib/index.js') const { currentVersion, appsItems, categoriesWithoutSubcategories } = await getAppsServerSideProps(context, 'server-to-server-rest', { useDisplayTitle: false }) diff --git a/src/github-apps/pages/endpoints-available-for-github-app-user-access-tokens.tsx b/src/github-apps/pages/endpoints-available-for-github-app-user-access-tokens.tsx index eb6b4a2f3fcd..6a3e78a06e24 100644 --- a/src/github-apps/pages/endpoints-available-for-github-app-user-access-tokens.tsx +++ b/src/github-apps/pages/endpoints-available-for-github-app-user-access-tokens.tsx @@ -3,10 +3,10 @@ import { GetServerSideProps } from 'next' import { AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { MainContextT, getMainContext } from 'src/frame/components/context/MainContext' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { MainContextT, getMainContext } from '@/frame/components/context/MainContext' -import { EnabledList, EnabledListT } from 'src/github-apps/components/EnabledList' +import { EnabledList, EnabledListT } from '@/github-apps/components/EnabledList' type Props = { mainContext: MainContextT @@ -35,7 +35,7 @@ export default function UserGitHubAppEndpoints({ } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getAppsServerSideProps } = await import('src/github-apps/lib/index.js') + const { getAppsServerSideProps } = await import('@/github-apps/lib/index.js') const { currentVersion, appsItems, categoriesWithoutSubcategories } = await getAppsServerSideProps(context, 'user-to-server-rest', { useDisplayTitle: false }) diff --git a/src/github-apps/pages/permissions-required-for-fine-grained-personal-access-tokens.tsx b/src/github-apps/pages/permissions-required-for-fine-grained-personal-access-tokens.tsx index b42354c36706..0effe36197ed 100644 --- a/src/github-apps/pages/permissions-required-for-fine-grained-personal-access-tokens.tsx +++ b/src/github-apps/pages/permissions-required-for-fine-grained-personal-access-tokens.tsx @@ -3,9 +3,9 @@ import { GetServerSideProps } from 'next' import { AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { MainContext, MainContextT, getMainContext } from 'src/frame/components/context/MainContext' -import { PermissionsList, PermissionListT } from 'src/github-apps/components/PermissionsList' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { MainContext, MainContextT, getMainContext } from '@/frame/components/context/MainContext' +import { PermissionsList, PermissionListT } from '@/github-apps/components/PermissionsList' type Props = { mainContext: MainContextT @@ -36,7 +36,7 @@ export default function FineGrainedPatPermissions({ } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getAppsServerSideProps } = await import('src/github-apps/lib/index.js') + const { getAppsServerSideProps } = await import('@/github-apps/lib/index.js') const { currentVersion, appsItems, categoriesWithoutSubcategories } = await getAppsServerSideProps(context, 'fine-grained-pat-permissions', { useDisplayTitle: true }) diff --git a/src/github-apps/pages/permissions-required-for-github-apps.tsx b/src/github-apps/pages/permissions-required-for-github-apps.tsx index c4b5c2cdfb20..9aca0baf673d 100644 --- a/src/github-apps/pages/permissions-required-for-github-apps.tsx +++ b/src/github-apps/pages/permissions-required-for-github-apps.tsx @@ -2,9 +2,9 @@ import { GetServerSideProps } from 'next' import { AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { MainContext, MainContextT, getMainContext } from 'src/frame/components/context/MainContext' -import { PermissionsList, PermissionListT } from 'src/github-apps/components/PermissionsList' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { MainContext, MainContextT, getMainContext } from '@/frame/components/context/MainContext' +import { PermissionsList, PermissionListT } from '@/github-apps/components/PermissionsList' type Props = { mainContext: MainContextT @@ -36,7 +36,7 @@ export default function GitHubAppPermissions({ } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getAppsServerSideProps } = await import('src/github-apps/lib/index.js') + const { getAppsServerSideProps } = await import('@/github-apps/lib/index.js') const { currentVersion, appsItems, categoriesWithoutSubcategories } = await getAppsServerSideProps(context, 'server-to-server-permissions', { useDisplayTitle: true }) diff --git a/src/graphql/components/BreakingChanges.tsx b/src/graphql/components/BreakingChanges.tsx index db2f66b2865f..e7ec306b734b 100644 --- a/src/graphql/components/BreakingChanges.tsx +++ b/src/graphql/components/BreakingChanges.tsx @@ -1,9 +1,9 @@ import React from 'react' import cx from 'classnames' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' +import { HeadingLink } from '@/frame/components/article/HeadingLink' import { BreakingChangesT } from './types' -import styles from 'src/frame/components/ui/MarkdownContent/MarkdownContent.module.scss' +import styles from '@/frame/components/ui/MarkdownContent/MarkdownContent.module.scss' export type HeadingT = { title: string diff --git a/src/graphql/components/Changelog.tsx b/src/graphql/components/Changelog.tsx index d10ead992ab1..64550eee2043 100644 --- a/src/graphql/components/Changelog.tsx +++ b/src/graphql/components/Changelog.tsx @@ -1,9 +1,9 @@ import React from 'react' import cx from 'classnames' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' +import { HeadingLink } from '@/frame/components/article/HeadingLink' import { ChangelogItemT } from './types' -import styles from 'src/frame/components/ui/MarkdownContent/MarkdownContent.module.scss' +import styles from '@/frame/components/ui/MarkdownContent/MarkdownContent.module.scss' type Props = { changelogItems: ChangelogItemT[] diff --git a/src/graphql/components/Enum.tsx b/src/graphql/components/Enum.tsx index 2a775cce7d8a..fd57eb5b7f1e 100644 --- a/src/graphql/components/Enum.tsx +++ b/src/graphql/components/Enum.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { GraphqlItem } from './GraphqlItem' import type { EnumT } from './types' diff --git a/src/graphql/components/GraphqlItem.tsx b/src/graphql/components/GraphqlItem.tsx index eed6ab83ea73..a37841bbba5e 100644 --- a/src/graphql/components/GraphqlItem.tsx +++ b/src/graphql/components/GraphqlItem.tsx @@ -1,4 +1,4 @@ -import { HeadingLink } from 'src/frame/components/article/HeadingLink' +import { HeadingLink } from '@/frame/components/article/HeadingLink' import type { GraphqlT } from './types' import { Notice } from './Notice' diff --git a/src/graphql/components/GraphqlPage.tsx b/src/graphql/components/GraphqlPage.tsx index 9eafe38ecc13..0557f1f5741d 100644 --- a/src/graphql/components/GraphqlPage.tsx +++ b/src/graphql/components/GraphqlPage.tsx @@ -19,7 +19,7 @@ import type { ScalarT, UnionT, } from './types' -import styles from 'src/frame/components/ui/MarkdownContent/MarkdownContent.module.scss' +import styles from '@/frame/components/ui/MarkdownContent/MarkdownContent.module.scss' type Props = { schema: Object diff --git a/src/graphql/components/InputObject.tsx b/src/graphql/components/InputObject.tsx index a20088a27cb6..ad9d6b0418aa 100644 --- a/src/graphql/components/InputObject.tsx +++ b/src/graphql/components/InputObject.tsx @@ -1,6 +1,6 @@ import { GraphqlItem } from './GraphqlItem' import { Table } from './Table' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import type { InputObjectT } from './types' type Props = { diff --git a/src/graphql/components/Interface.tsx b/src/graphql/components/Interface.tsx index 97dd13fc69d3..27d8acab8056 100644 --- a/src/graphql/components/Interface.tsx +++ b/src/graphql/components/Interface.tsx @@ -1,7 +1,7 @@ -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import { GraphqlItem } from './GraphqlItem' import { Table } from './Table' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import type { ObjectT, InterfaceT } from './types' type Props = { diff --git a/src/graphql/components/Mutation.tsx b/src/graphql/components/Mutation.tsx index 64af7735e776..0dc72946f906 100644 --- a/src/graphql/components/Mutation.tsx +++ b/src/graphql/components/Mutation.tsx @@ -1,7 +1,7 @@ -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import { GraphqlItem } from './GraphqlItem' import { Notice } from './Notice' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { Table } from './Table' import type { MutationT } from './types' import React from 'react' diff --git a/src/graphql/components/Notice.tsx b/src/graphql/components/Notice.tsx index 622a7ad08b5d..154447a5a7af 100644 --- a/src/graphql/components/Notice.tsx +++ b/src/graphql/components/Notice.tsx @@ -1,6 +1,6 @@ -import { Link } from 'src/frame/components/Link' -import { Alert } from 'src/frame/components/ui/Alert' -import { useTranslation } from 'src/languages/components/useTranslation' +import { Link } from '@/frame/components/Link' +import { Alert } from '@/frame/components/ui/Alert' +import { useTranslation } from '@/languages/components/useTranslation' import type { GraphqlT } from './types' type Props = { diff --git a/src/graphql/components/Object.tsx b/src/graphql/components/Object.tsx index d89d6e42c1b5..9f32bec1159e 100644 --- a/src/graphql/components/Object.tsx +++ b/src/graphql/components/Object.tsx @@ -1,7 +1,7 @@ -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import { GraphqlItem } from './GraphqlItem' import { Table } from './Table' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import type { ObjectT, ImplementsT } from './types' type Props = { diff --git a/src/graphql/components/Previews.tsx b/src/graphql/components/Previews.tsx index 24b7826f8348..029cf31ec3a5 100644 --- a/src/graphql/components/Previews.tsx +++ b/src/graphql/components/Previews.tsx @@ -2,10 +2,10 @@ import React from 'react' import GithubSlugger from 'github-slugger' import cx from 'classnames' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' -import { useTranslation } from 'src/languages/components/useTranslation' +import { HeadingLink } from '@/frame/components/article/HeadingLink' +import { useTranslation } from '@/languages/components/useTranslation' import { PreviewT } from './types' -import styles from 'src/frame/components/ui/MarkdownContent/MarkdownContent.module.scss' +import styles from '@/frame/components/ui/MarkdownContent/MarkdownContent.module.scss' type Props = { schema: PreviewT[] diff --git a/src/graphql/components/Query.tsx b/src/graphql/components/Query.tsx index e65abcfc943c..3144bd45d776 100644 --- a/src/graphql/components/Query.tsx +++ b/src/graphql/components/Query.tsx @@ -1,7 +1,7 @@ -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import { GraphqlItem } from './GraphqlItem' import { Table } from './Table' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import type { QueryT } from './types' type Props = { diff --git a/src/graphql/components/Table.tsx b/src/graphql/components/Table.tsx index 8d7abce63867..3610795c5239 100644 --- a/src/graphql/components/Table.tsx +++ b/src/graphql/components/Table.tsx @@ -1,6 +1,6 @@ -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import { Notice } from './Notice' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { FieldT } from './types' type Props = { diff --git a/src/graphql/components/Union.tsx b/src/graphql/components/Union.tsx index 2f44084c6009..c59de0cabcc1 100644 --- a/src/graphql/components/Union.tsx +++ b/src/graphql/components/Union.tsx @@ -1,6 +1,6 @@ -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import { GraphqlItem } from './GraphqlItem' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import type { UnionT } from './types' type Props = { diff --git a/src/graphql/pages/breaking-changes.tsx b/src/graphql/pages/breaking-changes.tsx index 0e15c9cc3ab9..0fbaf096330f 100644 --- a/src/graphql/pages/breaking-changes.tsx +++ b/src/graphql/pages/breaking-changes.tsx @@ -1,16 +1,16 @@ import { GetServerSideProps } from 'next' import GithubSlugger from 'github-slugger' -import { MainContextT, MainContext, getMainContext } from 'src/frame/components/context/MainContext' -import { AutomatedPage } from 'src/automated-pipelines/components/AutomatedPage' +import { MainContextT, MainContext, getMainContext } from '@/frame/components/context/MainContext' +import { AutomatedPage } from '@/automated-pipelines/components/AutomatedPage' import { AutomatedPageContext, AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import type { HeadingT } from 'src/graphql/components/BreakingChanges' -import { BreakingChanges } from 'src/graphql/components/BreakingChanges' -import { BreakingChangesT } from 'src/graphql/components/types' +} from '@/automated-pipelines/components/AutomatedPageContext' +import type { HeadingT } from '@/graphql/components/BreakingChanges' +import { BreakingChanges } from '@/graphql/components/BreakingChanges' +import { BreakingChangesT } from '@/graphql/components/types' type Props = { mainContext: MainContextT @@ -37,8 +37,8 @@ export default function GraphqlBreakingChanges({ } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getGraphqlBreakingChanges } = await import('src/graphql/lib/index.js') - const { getAutomatedPageMiniTocItems } = await import('src/frame/lib/get-mini-toc-items.js') + const { getGraphqlBreakingChanges } = await import('@/graphql/lib/index.js') + const { getAutomatedPageMiniTocItems } = await import('@/frame/lib/get-mini-toc-items.js') const req = context.req as any const res = context.res as any diff --git a/src/graphql/pages/changelog.tsx b/src/graphql/pages/changelog.tsx index b434f7f6dab7..1bfb0d50e5c1 100644 --- a/src/graphql/pages/changelog.tsx +++ b/src/graphql/pages/changelog.tsx @@ -1,14 +1,14 @@ import { GetServerSideProps } from 'next' -import { MainContextT, MainContext, getMainContext } from 'src/frame/components/context/MainContext' -import { AutomatedPage } from 'src/automated-pipelines/components/AutomatedPage' +import { MainContextT, MainContext, getMainContext } from '@/frame/components/context/MainContext' +import { AutomatedPage } from '@/automated-pipelines/components/AutomatedPage' import { AutomatedPageContext, AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { Changelog } from 'src/graphql/components/Changelog' -import { ChangelogItemT } from 'src/graphql/components/types' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { Changelog } from '@/graphql/components/Changelog' +import { ChangelogItemT } from '@/graphql/components/types' type Props = { mainContext: MainContextT @@ -28,8 +28,8 @@ export default function GraphqlChangelog({ mainContext, schema, automatedPageCon } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getGraphqlChangelog } = await import('src/graphql/lib/index.js') - const { getAutomatedPageMiniTocItems } = await import('src/frame/lib/get-mini-toc-items.js') + const { getGraphqlChangelog } = await import('@/graphql/lib/index.js') + const { getAutomatedPageMiniTocItems } = await import('@/frame/lib/get-mini-toc-items.js') const req = context.req as any const res = context.res as any diff --git a/src/graphql/pages/explorer.tsx b/src/graphql/pages/explorer.tsx index 34d3b3a6d2bb..33471d397b6b 100644 --- a/src/graphql/pages/explorer.tsx +++ b/src/graphql/pages/explorer.tsx @@ -1,12 +1,12 @@ import { GetServerSideProps } from 'next' -import { MainContextT, MainContext, getMainContext } from 'src/frame/components/context/MainContext' -import { AutomatedPage } from 'src/automated-pipelines/components/AutomatedPage' +import { MainContextT, MainContext, getMainContext } from '@/frame/components/context/MainContext' +import { AutomatedPage } from '@/automated-pipelines/components/AutomatedPage' import { AutomatedPageContext, AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' +} from '@/automated-pipelines/components/AutomatedPageContext' import { useEffect, useRef } from 'react' type Props = { diff --git a/src/graphql/pages/reference.tsx b/src/graphql/pages/reference.tsx index 4a882dc069d2..d666ca4795f3 100644 --- a/src/graphql/pages/reference.tsx +++ b/src/graphql/pages/reference.tsx @@ -1,19 +1,19 @@ import { GetServerSideProps } from 'next' -import { GraphqlPage } from 'src/graphql/components/GraphqlPage' +import { GraphqlPage } from '@/graphql/components/GraphqlPage' import { MainContextT, MainContext, getMainContext, addUINamespaces, -} from 'src/frame/components/context/MainContext' -import type { ObjectT, GraphqlT } from 'src/graphql/components/types' -import { AutomatedPage } from 'src/automated-pipelines/components/AutomatedPage' +} from '@/frame/components/context/MainContext' +import type { ObjectT, GraphqlT } from '@/graphql/components/types' +import { AutomatedPage } from '@/automated-pipelines/components/AutomatedPage' import { AutomatedPageContext, AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' +} from '@/automated-pipelines/components/AutomatedPageContext' type Props = { mainContext: MainContextT @@ -44,7 +44,7 @@ export default function GraphqlReferencePage({ } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getGraphqlSchema, getMiniToc } = await import('src/graphql/lib/index.js') + const { getGraphqlSchema, getMiniToc } = await import('@/graphql/lib/index.js') const req = context.req as any const res = context.res as any diff --git a/src/graphql/pages/schema-previews.tsx b/src/graphql/pages/schema-previews.tsx index 0ed65e406202..7952096c63d9 100644 --- a/src/graphql/pages/schema-previews.tsx +++ b/src/graphql/pages/schema-previews.tsx @@ -5,15 +5,15 @@ import { MainContext, getMainContext, addUINamespaces, -} from 'src/frame/components/context/MainContext' -import { AutomatedPage } from 'src/automated-pipelines/components/AutomatedPage' +} from '@/frame/components/context/MainContext' +import { AutomatedPage } from '@/automated-pipelines/components/AutomatedPage' import { AutomatedPageContext, AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { Previews } from 'src/graphql/components/Previews' -import { PreviewT } from 'src/graphql/components/types' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { Previews } from '@/graphql/components/Previews' +import { PreviewT } from '@/graphql/components/types' type Props = { mainContext: MainContextT @@ -33,8 +33,8 @@ export default function GraphqlPreviews({ mainContext, schema, automatedPageCont } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getPreviews } = await import('src/graphql/lib/index.js') - const { getAutomatedPageMiniTocItems } = await import('src/frame/lib/get-mini-toc-items.js') + const { getPreviews } = await import('@/graphql/lib/index.js') + const { getAutomatedPageMiniTocItems } = await import('@/frame/lib/get-mini-toc-items.js') const req = context.req as any const res = context.res as any diff --git a/src/landings/components/ArticleCard.tsx b/src/landings/components/ArticleCard.tsx index 4bd7788fd2bb..e834ddfdf44c 100644 --- a/src/landings/components/ArticleCard.tsx +++ b/src/landings/components/ArticleCard.tsx @@ -1,7 +1,7 @@ import { Label } from '@primer/react' -import { ArticleGuide } from 'src/landings/components/ProductGuidesContext' -import { Link } from 'src/frame/components/Link' +import { ArticleGuide } from '@/landings/components/ProductGuidesContext' +import { Link } from '@/frame/components/Link' type Props = { card: ArticleGuide diff --git a/src/landings/components/ArticleCards.tsx b/src/landings/components/ArticleCards.tsx index 832ace6bae39..1107bcec5939 100644 --- a/src/landings/components/ArticleCards.tsx +++ b/src/landings/components/ArticleCards.tsx @@ -1,7 +1,7 @@ import React, { useRef } from 'react' -import { useProductGuidesContext } from 'src/landings/components/ProductGuidesContext' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useProductGuidesContext } from '@/landings/components/ProductGuidesContext' +import { useTranslation } from '@/languages/components/useTranslation' import { ArticleCard } from './ArticleCard' export const ArticleCards = () => { diff --git a/src/landings/components/ArticleList.tsx b/src/landings/components/ArticleList.tsx index edd10e122a42..a1c7233d67ff 100644 --- a/src/landings/components/ArticleList.tsx +++ b/src/landings/components/ArticleList.tsx @@ -1,11 +1,11 @@ import cx from 'classnames' import dayjs from 'dayjs' import { ActionList } from '@primer/react' -import { useTranslation } from 'src/languages/components/useTranslation' -import { Link } from 'src/frame/components/Link' +import { useTranslation } from '@/languages/components/useTranslation' +import { Link } from '@/frame/components/Link' import { ArrowRightIcon } from '@primer/octicons-react' -import { FeaturedLink } from 'src/landings/components/ProductLandingContext' -import { BumpLink } from 'src/frame/components/ui/BumpLink' +import { FeaturedLink } from '@/landings/components/ProductLandingContext' +import { BumpLink } from '@/frame/components/ui/BumpLink' export type ArticleListPropsT = { title?: string diff --git a/src/landings/components/CategoryLanding.tsx b/src/landings/components/CategoryLanding.tsx index c32e73178756..633185881d1f 100644 --- a/src/landings/components/CategoryLanding.tsx +++ b/src/landings/components/CategoryLanding.tsx @@ -3,15 +3,15 @@ import { useRouter } from 'next/router' import cx from 'classnames' import { CookBookArticleCard } from './CookBookArticleCard' import { CookBookFilter } from './CookBookFilter' -import { useTranslation } from 'src/languages/components/useTranslation' -import { DefaultLayout } from 'src/frame/components/DefaultLayout' -import { ArticleTitle } from 'src/frame/components/article/ArticleTitle' -import { Lead } from 'src/frame/components/ui/Lead' -import { useCategoryLandingContext } from 'src/frame/components/context/CategoryLandingContext' -import { ClientSideRedirects } from 'src/rest/components/ClientSideRedirects' -import { RestRedirect } from 'src/rest/components/RestRedirect' -import { Breadcrumbs } from 'src/frame/components/page-header/Breadcrumbs' -import { ArticleCardItems } from 'src/landings/types' +import { useTranslation } from '@/languages/components/useTranslation' +import { DefaultLayout } from '@/frame/components/DefaultLayout' +import { ArticleTitle } from '@/frame/components/article/ArticleTitle' +import { Lead } from '@/frame/components/ui/Lead' +import { useCategoryLandingContext } from '@/frame/components/context/CategoryLandingContext' +import { ClientSideRedirects } from '@/rest/components/ClientSideRedirects' +import { RestRedirect } from '@/rest/components/RestRedirect' +import { Breadcrumbs } from '@/frame/components/page-header/Breadcrumbs' +import { ArticleCardItems } from '@/landings/types' export const CategoryLanding = () => { const { t } = useTranslation('cookbook_landing') diff --git a/src/landings/components/CommunityExamples.tsx b/src/landings/components/CommunityExamples.tsx index 884b2a285225..0aa685c5f095 100644 --- a/src/landings/components/CommunityExamples.tsx +++ b/src/landings/components/CommunityExamples.tsx @@ -1,5 +1,5 @@ -import { useProductLandingContext } from 'src/landings/components/ProductLandingContext' -import { RepoCard } from 'src/landings/components/RepoCard' +import { useProductLandingContext } from '@/landings/components/ProductLandingContext' +import { RepoCard } from '@/landings/components/RepoCard' export const CommunityExamples = () => { const { productCommunityExamples } = useProductLandingContext() diff --git a/src/landings/components/CookBookFilter.tsx b/src/landings/components/CookBookFilter.tsx index dff73abe1cb5..247d52a4d2e4 100644 --- a/src/landings/components/CookBookFilter.tsx +++ b/src/landings/components/CookBookFilter.tsx @@ -1,8 +1,8 @@ import { TextInput, ActionMenu, ActionList, Button, Box } from '@primer/react' import { SearchIcon } from '@primer/octicons-react' import { useRef, useEffect, useState } from 'react' -import { ArticleCardItems } from '#src/landings/types.ts' -import { useTranslation } from 'src/languages/components/useTranslation' +import { ArticleCardItems } from '@/landings/types' +import { useTranslation } from '@/languages/components/useTranslation' type Props = { tokens: ArticleCardItems diff --git a/src/landings/components/FeaturedArticles.tsx b/src/landings/components/FeaturedArticles.tsx index 0d2e80de7e52..9981defd5ae9 100644 --- a/src/landings/components/FeaturedArticles.tsx +++ b/src/landings/components/FeaturedArticles.tsx @@ -1,8 +1,8 @@ import cx from 'classnames' -import { useProductLandingContext } from 'src/landings/components/ProductLandingContext' -import { useTranslation } from 'src/languages/components/useTranslation' -import { ArticleList } from 'src/landings/components/ArticleList' +import { useProductLandingContext } from '@/landings/components/ProductLandingContext' +import { useTranslation } from '@/languages/components/useTranslation' +import { ArticleList } from '@/landings/components/ArticleList' export const FeaturedArticles = () => { const { featuredArticles = [], whatsNewChangelog, changelogUrl } = useProductLandingContext() diff --git a/src/landings/components/GuideCard.tsx b/src/landings/components/GuideCard.tsx index f7886fe93d2b..a57d080c466f 100644 --- a/src/landings/components/GuideCard.tsx +++ b/src/landings/components/GuideCard.tsx @@ -1,4 +1,4 @@ -import type { FeaturedLink } from 'src/landings/components/ProductLandingContext' +import type { FeaturedLink } from '@/landings/components/ProductLandingContext' import cx from 'classnames' import styles from './Landings.module.scss' diff --git a/src/landings/components/GuideCards.tsx b/src/landings/components/GuideCards.tsx index ac9fb979dfcb..a83c3b9f0e1c 100644 --- a/src/landings/components/GuideCards.tsx +++ b/src/landings/components/GuideCards.tsx @@ -1,12 +1,12 @@ import { useRouter } from 'next/router' -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import { ArrowRightIcon } from '@primer/octicons-react' -import { useMainContext } from 'src/frame/components/context/MainContext' +import { useMainContext } from '@/frame/components/context/MainContext' -import { useProductLandingContext } from 'src/landings/components/ProductLandingContext' -import { GuideCard } from 'src/landings/components/GuideCard' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useProductLandingContext } from '@/landings/components/ProductLandingContext' +import { GuideCard } from '@/landings/components/GuideCard' +import { useTranslation } from '@/languages/components/useTranslation' export const GuideCards = () => { const router = useRouter() diff --git a/src/landings/components/GuidesHero.tsx b/src/landings/components/GuidesHero.tsx index 7af76a3754e1..983375aeb91b 100644 --- a/src/landings/components/GuidesHero.tsx +++ b/src/landings/components/GuidesHero.tsx @@ -1,5 +1,5 @@ -import { useProductGuidesContext } from 'src/landings/components/ProductGuidesContext' -import { Lead } from 'src/frame/components/ui/Lead' +import { useProductGuidesContext } from '@/landings/components/ProductGuidesContext' +import { Lead } from '@/frame/components/ui/Lead' export function GuidesHero() { const { title, intro } = useProductGuidesContext() diff --git a/src/landings/components/HomePageHero.tsx b/src/landings/components/HomePageHero.tsx index bd22ef8f5656..d5ee7b2f7257 100644 --- a/src/landings/components/HomePageHero.tsx +++ b/src/landings/components/HomePageHero.tsx @@ -1,5 +1,5 @@ -import { OctocatHeader } from 'src/landings/components/OctocatHeader' -import { useTranslation } from 'src/languages/components/useTranslation' +import { OctocatHeader } from '@/landings/components/OctocatHeader' +import { useTranslation } from '@/languages/components/useTranslation' export const HomePageHero = () => { const { t } = useTranslation(['header', 'homepage']) diff --git a/src/landings/components/LandingHero.tsx b/src/landings/components/LandingHero.tsx index a12a1721b61c..abee30152333 100644 --- a/src/landings/components/LandingHero.tsx +++ b/src/landings/components/LandingHero.tsx @@ -3,11 +3,11 @@ import cx from 'classnames' import { useRouter } from 'next/router' import { LinkExternalIcon, NoteIcon } from '@primer/octicons-react' -import { Link } from 'src/frame/components/Link' -import { useProductLandingContext } from 'src/landings/components/ProductLandingContext' -import { useTranslation } from 'src/languages/components/useTranslation' -import { useVersion } from 'src/versions/components/useVersion' -import { Lead } from 'src/frame/components/ui/Lead' +import { Link } from '@/frame/components/Link' +import { useProductLandingContext } from '@/landings/components/ProductLandingContext' +import { useTranslation } from '@/languages/components/useTranslation' +import { useVersion } from '@/versions/components/useVersion' +import { Lead } from '@/frame/components/ui/Lead' export const LandingHero = () => { const { diff --git a/src/landings/components/LandingSection.tsx b/src/landings/components/LandingSection.tsx index e14bc0867249..d318ce9a40f0 100644 --- a/src/landings/components/LandingSection.tsx +++ b/src/landings/components/LandingSection.tsx @@ -1,5 +1,5 @@ import cx from 'classnames' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' +import { HeadingLink } from '@/frame/components/article/HeadingLink' type Props = { title?: string diff --git a/src/landings/components/ProductArticlesList.tsx b/src/landings/components/ProductArticlesList.tsx index 81fbd224aa36..f8cdc3a30995 100644 --- a/src/landings/components/ProductArticlesList.tsx +++ b/src/landings/components/ProductArticlesList.tsx @@ -2,8 +2,8 @@ import cx from 'classnames' import { ActionList } from '@primer/react' -import { ProductTreeNode, useMainContext } from 'src/frame/components/context/MainContext' -import { Link } from 'src/frame/components/Link' +import { ProductTreeNode, useMainContext } from '@/frame/components/context/MainContext' +import { Link } from '@/frame/components/Link' export const ProductArticlesList = () => { const { currentProductTree } = useMainContext() diff --git a/src/landings/components/ProductGuides.tsx b/src/landings/components/ProductGuides.tsx index aa0039b97a4e..ac886f53acf8 100644 --- a/src/landings/components/ProductGuides.tsx +++ b/src/landings/components/ProductGuides.tsx @@ -1,11 +1,11 @@ -import { DefaultLayout } from 'src/frame/components/DefaultLayout' -import { useProductGuidesContext } from 'src/landings/components/ProductGuidesContext' -import { LandingSection } from 'src/landings/components/LandingSection' -import { GuidesHero } from 'src/landings/components/GuidesHero' -import { LearningTracks } from 'src/learning-track/components/guides/LearningTracks' -import { ArticleCards } from 'src/landings/components/ArticleCards' -import { useTranslation } from 'src/languages/components/useTranslation' -import { useMainContext } from 'src/frame/components/context/MainContext' +import { DefaultLayout } from '@/frame/components/DefaultLayout' +import { useProductGuidesContext } from '@/landings/components/ProductGuidesContext' +import { LandingSection } from '@/landings/components/LandingSection' +import { GuidesHero } from '@/landings/components/GuidesHero' +import { LearningTracks } from '@/learning-track/components/guides/LearningTracks' +import { ArticleCards } from '@/landings/components/ArticleCards' +import { useTranslation } from '@/languages/components/useTranslation' +import { useMainContext } from '@/frame/components/context/MainContext' export const ProductGuides = () => { const { title, learningTracks, includeGuides } = useProductGuidesContext() diff --git a/src/landings/components/ProductLanding.tsx b/src/landings/components/ProductLanding.tsx index 0dbed5fa6361..5cdabd582a06 100644 --- a/src/landings/components/ProductLanding.tsx +++ b/src/landings/components/ProductLanding.tsx @@ -1,18 +1,18 @@ import { useRouter } from 'next/router' -import { DefaultLayout } from 'src/frame/components/DefaultLayout' -import { useProductLandingContext } from 'src/landings/components/ProductLandingContext' +import { DefaultLayout } from '@/frame/components/DefaultLayout' +import { useProductLandingContext } from '@/landings/components/ProductLandingContext' -import { LandingHero } from 'src/landings/components/LandingHero' -import { FeaturedArticles } from 'src/landings/components/FeaturedArticles' -import { GuideCards } from 'src/landings/components/GuideCards' -import { SponsorsExamples } from 'src/landings/components/SponsorsExamples' -import { CommunityExamples } from 'src/landings/components/CommunityExamples' -import { LandingSection } from 'src/landings/components/LandingSection' -import { useTranslation } from 'src/languages/components/useTranslation' -import { ProductArticlesList } from 'src/landings/components/ProductArticlesList' -import { ProductReleases } from 'src/landings/components/ProductReleases' -import { useVersion } from 'src/versions/components/useVersion' -import { RestRedirect } from 'src/rest/components/RestRedirect' +import { LandingHero } from '@/landings/components/LandingHero' +import { FeaturedArticles } from '@/landings/components/FeaturedArticles' +import { GuideCards } from '@/landings/components/GuideCards' +import { SponsorsExamples } from '@/landings/components/SponsorsExamples' +import { CommunityExamples } from '@/landings/components/CommunityExamples' +import { LandingSection } from '@/landings/components/LandingSection' +import { useTranslation } from '@/languages/components/useTranslation' +import { ProductArticlesList } from '@/landings/components/ProductArticlesList' +import { ProductReleases } from '@/landings/components/ProductReleases' +import { useVersion } from '@/versions/components/useVersion' +import { RestRedirect } from '@/rest/components/RestRedirect' export const ProductLanding = () => { const router = useRouter() diff --git a/src/landings/components/ProductReleases.tsx b/src/landings/components/ProductReleases.tsx index 7096d819d7d3..df992b89ad71 100644 --- a/src/landings/components/ProductReleases.tsx +++ b/src/landings/components/ProductReleases.tsx @@ -1,8 +1,8 @@ import { ArrowRightIcon, ArrowUpIcon, FileIcon, ListUnorderedIcon } from '@primer/octicons-react' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { useProductLandingContext } from 'src/landings/components/ProductLandingContext' -import { useTranslation } from 'src/languages/components/useTranslation' -import { Link } from 'src/frame/components/Link' +import { useMainContext } from '@/frame/components/context/MainContext' +import { useProductLandingContext } from '@/landings/components/ProductLandingContext' +import { useTranslation } from '@/languages/components/useTranslation' +import { Link } from '@/frame/components/Link' import { useRouter } from 'next/router' export function ProductReleases() { diff --git a/src/landings/components/ProductSelectionCard.tsx b/src/landings/components/ProductSelectionCard.tsx index d60e55ae37b7..80d83c1ff11f 100644 --- a/src/landings/components/ProductSelectionCard.tsx +++ b/src/landings/components/ProductSelectionCard.tsx @@ -1,7 +1,7 @@ -import type { ProductGroupT } from 'src/landings/components/ProductSelections' +import type { ProductGroupT } from '@/landings/components/ProductSelections' import React from 'react' -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import * as Octicons from '@primer/octicons-react' import { LinkExternalIcon } from '@primer/octicons-react' diff --git a/src/landings/components/ProductSelections.tsx b/src/landings/components/ProductSelections.tsx index ec02c3f5e933..2a6836b0e62d 100644 --- a/src/landings/components/ProductSelections.tsx +++ b/src/landings/components/ProductSelections.tsx @@ -1,6 +1,6 @@ import React from 'react' -import type { ProductT } from 'src/frame/components/context/MainContext' +import type { ProductT } from '@/frame/components/context/MainContext' import { ProductSelectionCard } from './ProductSelectionCard' export type ProductGroupT = { diff --git a/src/landings/components/SidebarProduct.tsx b/src/landings/components/SidebarProduct.tsx index a3b16015d6fe..1057debad720 100644 --- a/src/landings/components/SidebarProduct.tsx +++ b/src/landings/components/SidebarProduct.tsx @@ -3,8 +3,8 @@ import { useRouter } from 'next/router' import { useEffect, useState } from 'react' import { NavList } from '@primer/react' -import { ProductTreeNode, useMainContext } from 'src/frame/components/context/MainContext' -import { useAutomatedPageContext } from 'src/automated-pipelines/components/AutomatedPageContext' +import { ProductTreeNode, useMainContext } from '@/frame/components/context/MainContext' +import { useAutomatedPageContext } from '@/automated-pipelines/components/AutomatedPageContext' import { nonAutomatedRestPaths } from '../../rest/lib/config.js' export const SidebarProduct = () => { diff --git a/src/landings/components/SponsorsExamples.tsx b/src/landings/components/SponsorsExamples.tsx index a6c549d26abf..5061b53b253d 100644 --- a/src/landings/components/SponsorsExamples.tsx +++ b/src/landings/components/SponsorsExamples.tsx @@ -1,5 +1,5 @@ -import { useProductLandingContext } from 'src/landings/components/ProductLandingContext' -import { UserCard } from 'src/landings/components/UserCard' +import { useProductLandingContext } from '@/landings/components/ProductLandingContext' +import { UserCard } from '@/landings/components/UserCard' export const SponsorsExamples = () => { const { productUserExamples } = useProductLandingContext() diff --git a/src/landings/components/TableOfContents.tsx b/src/landings/components/TableOfContents.tsx index 27b74458d3cc..67ad04435240 100644 --- a/src/landings/components/TableOfContents.tsx +++ b/src/landings/components/TableOfContents.tsx @@ -2,8 +2,8 @@ import React from 'react' import cx from 'classnames' import { ActionList } from '@primer/react' -import { Link } from 'src/frame/components/Link' -import type { TocItem } from 'src/landings/components/ProductLandingContext' +import { Link } from '@/frame/components/Link' +import type { TocItem } from '@/landings/components/ProductLandingContext' type Props = { items: Array diff --git a/src/landings/components/TocLanding.tsx b/src/landings/components/TocLanding.tsx index 047c7843bd35..9084461e8f82 100644 --- a/src/landings/components/TocLanding.tsx +++ b/src/landings/components/TocLanding.tsx @@ -1,20 +1,20 @@ import { useRouter } from 'next/router' import cx from 'classnames' -import { useTocLandingContext } from 'src/frame/components/context/TocLandingContext' -import { useTranslation } from 'src/languages/components/useTranslation' -import { DefaultLayout } from 'src/frame/components/DefaultLayout' -import { TableOfContents } from 'src/landings/components/TableOfContents' -import { ArticleTitle } from 'src/frame/components/article/ArticleTitle' -import { MarkdownContent } from 'src/frame/components/ui/MarkdownContent' -import { ArticleList } from 'src/landings/components/ArticleList' -import { ArticleGridLayout } from 'src/frame/components/article/ArticleGridLayout' -import { PermissionsStatement } from 'src/frame/components/ui/PermissionsStatement' -import { Lead } from 'src/frame/components/ui/Lead' -import { LearningTrackNav } from 'src/learning-track/components/article/LearningTrackNav' -import { ClientSideRedirects } from 'src/rest/components/ClientSideRedirects' -import { RestRedirect } from 'src/rest/components/RestRedirect' -import { Breadcrumbs } from 'src/frame/components/page-header/Breadcrumbs' +import { useTocLandingContext } from '@/frame/components/context/TocLandingContext' +import { useTranslation } from '@/languages/components/useTranslation' +import { DefaultLayout } from '@/frame/components/DefaultLayout' +import { TableOfContents } from '@/landings/components/TableOfContents' +import { ArticleTitle } from '@/frame/components/article/ArticleTitle' +import { MarkdownContent } from '@/frame/components/ui/MarkdownContent' +import { ArticleList } from '@/landings/components/ArticleList' +import { ArticleGridLayout } from '@/frame/components/article/ArticleGridLayout' +import { PermissionsStatement } from '@/frame/components/ui/PermissionsStatement' +import { Lead } from '@/frame/components/ui/Lead' +import { LearningTrackNav } from '@/learning-track/components/article/LearningTrackNav' +import { ClientSideRedirects } from '@/rest/components/ClientSideRedirects' +import { RestRedirect } from '@/rest/components/RestRedirect' +import { Breadcrumbs } from '@/frame/components/page-header/Breadcrumbs' export const TocLanding = () => { const router = useRouter() diff --git a/src/landings/pages/home.tsx b/src/landings/pages/home.tsx index 728485237e26..f3ccf36fe38f 100644 --- a/src/landings/pages/home.tsx +++ b/src/landings/pages/home.tsx @@ -6,14 +6,14 @@ import { MainContext, getMainContext, addUINamespaces, -} from 'src/frame/components/context/MainContext' +} from '@/frame/components/context/MainContext' -import { DefaultLayout } from 'src/frame/components/DefaultLayout' -import { useTranslation } from 'src/languages/components/useTranslation' -import { ArticleList } from 'src/landings/components/ArticleList' -import { HomePageHero } from 'src/landings/components/HomePageHero' -import type { ProductGroupT } from 'src/landings/components/ProductSelections' -import { ProductSelections } from 'src/landings/components/ProductSelections' +import { DefaultLayout } from '@/frame/components/DefaultLayout' +import { useTranslation } from '@/languages/components/useTranslation' +import { ArticleList } from '@/landings/components/ArticleList' +import { HomePageHero } from '@/landings/components/HomePageHero' +import type { ProductGroupT } from '@/landings/components/ProductSelections' +import { ProductSelections } from '@/landings/components/ProductSelections' type FeaturedLink = { href: string diff --git a/src/landings/pages/product.tsx b/src/landings/pages/product.tsx index d40871964167..44b41bbddf7f 100644 --- a/src/landings/pages/product.tsx +++ b/src/landings/pages/product.tsx @@ -3,49 +3,49 @@ import { useRouter } from 'next/router' // "legacy" javascript needed to maintain existing functionality // typically operating on elements **within** an article. -import copyCode from 'src/frame/components/lib/copy-code' -import toggleAnnotation from 'src/frame/components/lib/toggle-annotations' -import wrapCodeTerms from 'src/frame/components/lib/wrap-code-terms' +import copyCode from '@/frame/components/lib/copy-code' +import toggleAnnotation from '@/frame/components/lib/toggle-annotations' +import wrapCodeTerms from '@/frame/components/lib/wrap-code-terms' import { MainContextT, MainContext, getMainContext, addUINamespaces, -} from 'src/frame/components/context/MainContext' +} from '@/frame/components/context/MainContext' import { getProductLandingContextFromRequest, ProductLandingContextT, ProductLandingContext, -} from 'src/landings/components/ProductLandingContext' +} from '@/landings/components/ProductLandingContext' import { getProductGuidesContextFromRequest, ProductGuidesContextT, ProductGuidesContext, -} from 'src/landings/components/ProductGuidesContext' +} from '@/landings/components/ProductGuidesContext' import { getArticleContextFromRequest, ArticleContextT, ArticleContext, -} from 'src/frame/components/context/ArticleContext' -import { ArticlePage } from 'src/frame/components/article/ArticlePage' +} from '@/frame/components/context/ArticleContext' +import { ArticlePage } from '@/frame/components/article/ArticlePage' -import { ProductLanding } from 'src/landings/components/ProductLanding' -import { ProductGuides } from 'src/landings/components/ProductGuides' -import { TocLanding } from 'src/landings/components/TocLanding' -import { CategoryLanding } from 'src/landings/components/CategoryLanding' +import { ProductLanding } from '@/landings/components/ProductLanding' +import { ProductGuides } from '@/landings/components/ProductGuides' +import { TocLanding } from '@/landings/components/TocLanding' +import { CategoryLanding } from '@/landings/components/CategoryLanding' import { getTocLandingContextFromRequest, TocLandingContext, TocLandingContextT, -} from 'src/frame/components/context/TocLandingContext' +} from '@/frame/components/context/TocLandingContext' import { getCategoryLandingContextFromRequest, CategoryLandingContext, CategoryLandingContextT, -} from 'src/frame/components/context/CategoryLandingContext' +} from '@/frame/components/context/CategoryLandingContext' import { useEffect } from 'react' function initiateArticleScripts() { diff --git a/src/landings/tests/curated-homepage-links.ts b/src/landings/tests/curated-homepage-links.ts index 3133167320c3..7e966f384ed8 100644 --- a/src/landings/tests/curated-homepage-links.ts +++ b/src/landings/tests/curated-homepage-links.ts @@ -1,7 +1,7 @@ import { describe, expect, test, vi } from 'vitest' import cheerio from 'cheerio' -import { getDOM } from '#src/tests/helpers/e2etest.js' +import { getDOM } from '@/tests/helpers/e2etest.js' describe('curated homepage links', () => { vi.setConfig({ testTimeout: 3 * 60 * 1000 }) diff --git a/src/landings/tests/homepage.ts b/src/landings/tests/homepage.ts index acf6d9d9c5d5..33f9f3e83878 100644 --- a/src/landings/tests/homepage.ts +++ b/src/landings/tests/homepage.ts @@ -1,6 +1,6 @@ import { describe, expect, test, vi } from 'vitest' -import { getDOM } from '#src/tests/helpers/e2etest.js' +import { getDOM } from '@/tests/helpers/e2etest.js' describe('rendering the home page(s)', () => { vi.setConfig({ testTimeout: 60 * 1000 }) diff --git a/src/languages/components/LanguagePicker.tsx b/src/languages/components/LanguagePicker.tsx index bcb227a34afb..b3dff7207a3d 100644 --- a/src/languages/components/LanguagePicker.tsx +++ b/src/languages/components/LanguagePicker.tsx @@ -1,9 +1,9 @@ import { useRouter } from 'next/router' import { GlobeIcon } from '@primer/octicons-react' -import { useLanguages } from 'src/languages/components/LanguagesContext' -import { useTranslation } from 'src/languages/components/useTranslation' -import { useUserLanguage } from 'src/languages/components/useUserLanguage' +import { useLanguages } from '@/languages/components/LanguagesContext' +import { useTranslation } from '@/languages/components/useTranslation' +import { useUserLanguage } from '@/languages/components/useUserLanguage' import { ActionList, ActionMenu, IconButton, Link } from '@primer/react' type Props = { diff --git a/src/languages/components/useTranslation.ts b/src/languages/components/useTranslation.ts index e537c0695c28..8d93349dd310 100644 --- a/src/languages/components/useTranslation.ts +++ b/src/languages/components/useTranslation.ts @@ -1,5 +1,5 @@ -import type { UIStrings } from 'src/frame/components/context/MainContext' -import { useMainContext } from 'src/frame/components/context/MainContext' +import type { UIStrings } from '@/frame/components/context/MainContext' +import { useMainContext } from '@/frame/components/context/MainContext' class TranslationNamespaceError extends Error {} class UngettableError extends Error {} diff --git a/src/languages/components/useUserLanguage.ts b/src/languages/components/useUserLanguage.ts index 08fc9356b929..d1c75997508e 100644 --- a/src/languages/components/useUserLanguage.ts +++ b/src/languages/components/useUserLanguage.ts @@ -1,9 +1,9 @@ import { useState, useEffect } from 'react' -import Cookies from 'src/frame/components/lib/cookies' +import Cookies from '@/frame/components/lib/cookies' import { useRouter } from 'next/router' -import { useLanguages } from 'src/languages/components/LanguagesContext' -import { USER_LANGUAGE_COOKIE_NAME } from 'src/frame/lib/constants.js' +import { useLanguages } from '@/languages/components/LanguagesContext' +import { USER_LANGUAGE_COOKIE_NAME } from '@/frame/lib/constants.js' export function useUserLanguage() { const { locale } = useRouter() diff --git a/src/learning-track/components/article/LearningTrackCard.tsx b/src/learning-track/components/article/LearningTrackCard.tsx index a1eb33a0bffc..3a02d325fe49 100644 --- a/src/learning-track/components/article/LearningTrackCard.tsx +++ b/src/learning-track/components/article/LearningTrackCard.tsx @@ -1,8 +1,8 @@ import { useRouter } from 'next/router' -import { Link } from 'src/frame/components/Link' -import type { LearningTrack } from 'src/frame/components/context/ArticleContext' -import { useTranslation } from 'src/languages/components/useTranslation' +import { Link } from '@/frame/components/Link' +import type { LearningTrack } from '@/frame/components/context/ArticleContext' +import { useTranslation } from '@/languages/components/useTranslation' type Props = { track: LearningTrack diff --git a/src/learning-track/components/article/LearningTrackNav.tsx b/src/learning-track/components/article/LearningTrackNav.tsx index e6688d0f3208..6c3a776bb021 100644 --- a/src/learning-track/components/article/LearningTrackNav.tsx +++ b/src/learning-track/components/article/LearningTrackNav.tsx @@ -1,6 +1,6 @@ -import { Link } from 'src/frame/components/Link' -import type { LearningTrack } from 'src/frame/components/context/ArticleContext' -import { useTranslation } from 'src/languages/components/useTranslation' +import { Link } from '@/frame/components/Link' +import type { LearningTrack } from '@/frame/components/context/ArticleContext' +import { useTranslation } from '@/languages/components/useTranslation' type Props = { track: LearningTrack diff --git a/src/learning-track/components/guides/LearningTrack.tsx b/src/learning-track/components/guides/LearningTrack.tsx index a5fd9e302636..1e87aec54fd0 100644 --- a/src/learning-track/components/guides/LearningTrack.tsx +++ b/src/learning-track/components/guides/LearningTrack.tsx @@ -1,9 +1,9 @@ -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { ArrowRightIcon } from '@primer/octicons-react' -import { LearningTrack as LearningTrackT } from 'src/landings/components/ProductGuidesContext' -import { Link } from 'src/frame/components/Link' +import { LearningTrack as LearningTrackT } from '@/landings/components/ProductGuidesContext' +import { Link } from '@/frame/components/Link' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' +import { HeadingLink } from '@/frame/components/article/HeadingLink' type Props = { track: LearningTrackT diff --git a/src/learning-track/components/guides/LearningTracks.tsx b/src/learning-track/components/guides/LearningTracks.tsx index e63888538637..c1b8b4d2eda2 100644 --- a/src/learning-track/components/guides/LearningTracks.tsx +++ b/src/learning-track/components/guides/LearningTracks.tsx @@ -1,5 +1,5 @@ -import { useProductGuidesContext } from 'src/landings/components/ProductGuidesContext' -import { LearningTrack } from 'src/learning-track/components/guides/LearningTrack' +import { useProductGuidesContext } from '@/landings/components/ProductGuidesContext' +import { LearningTrack } from '@/learning-track/components/guides/LearningTrack' export const LearningTracks = () => { const { learningTracks } = useProductGuidesContext() diff --git a/src/links/components/DomainNameEdit.tsx b/src/links/components/DomainNameEdit.tsx index 550b60481353..a724683e6921 100644 --- a/src/links/components/DomainNameEdit.tsx +++ b/src/links/components/DomainNameEdit.tsx @@ -2,12 +2,12 @@ import { useEffect, useState, useRef } from 'react' import { useRouter } from 'next/router' import { BeakerIcon } from '@primer/octicons-react' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { Box, Flash, FormControl, Spinner, TextInput } from '@primer/react' import { Dialog } from '@primer/react/experimental' import { useEditableDomainName } from './useEditableDomainContext' -import { sendEvent } from 'src/events/components/events' -import { EventType } from 'src/events/types' +import { sendEvent } from '@/events/components/events' +import { EventType } from '@/events/types' type Props = { xs?: boolean diff --git a/src/links/components/replace-domain.ts b/src/links/components/replace-domain.ts index 8e57fd785ee8..9751a08958c5 100644 --- a/src/links/components/replace-domain.ts +++ b/src/links/components/replace-domain.ts @@ -1,7 +1,7 @@ import { useEffect } from 'react' import { useRouter } from 'next/router' -import { useVersion } from 'src/versions/components/useVersion' +import { useVersion } from '@/versions/components/useVersion' import { useEditableDomainName } from './useEditableDomainContext' import { createPenSVG } from './pen-icon' diff --git a/src/links/lib/update-internal-links.ts b/src/links/lib/update-internal-links.ts index 8af5eabb0985..5f6d1d281ec6 100644 --- a/src/links/lib/update-internal-links.ts +++ b/src/links/lib/update-internal-links.ts @@ -9,19 +9,19 @@ import yaml from 'js-yaml' // eslint-disable-next-line import/no-unresolved import { type Node, type Nodes, type Definition, type Link } from 'mdast' -import frontmatter from 'src/frame/lib/read-frontmatter.js' +import frontmatter from '@/frame/lib/read-frontmatter.js' import { getPathWithLanguage, getPathWithoutLanguage, getPathWithoutVersion, getVersionStringFromPath, -} from 'src/frame/lib/path-utils.js' -import loadRedirects from 'src/redirects/lib/precompile.js' -import patterns from 'src/frame/lib/patterns.js' -import { loadUnversionedTree, loadPages, loadPageMap } from 'src/frame/lib/page-data.js' -import getRedirect, { splitPathByLanguage } from 'src/redirects/lib/get-redirect.js' -import nonEnterpriseDefaultVersion from 'src/versions/lib/non-enterprise-default-version.js' -import { deprecated } from 'src/versions/lib/enterprise-server-releases.js' +} from '@/frame/lib/path-utils.js' +import loadRedirects from '@/redirects/lib/precompile.js' +import patterns from '@/frame/lib/patterns.js' +import { loadUnversionedTree, loadPages, loadPageMap } from '@/frame/lib/page-data.js' +import getRedirect, { splitPathByLanguage } from '@/redirects/lib/get-redirect.js' +import nonEnterpriseDefaultVersion from '@/versions/lib/non-enterprise-default-version.js' +import { deprecated } from '@/versions/lib/enterprise-server-releases.js' // That magical string that can be turned into the actual title when // we, at runtime, render out the links diff --git a/src/links/scripts/check-github-github-links.ts b/src/links/scripts/check-github-github-links.ts index 1b1a760b8516..a8ff08e7effb 100755 --- a/src/links/scripts/check-github-github-links.ts +++ b/src/links/scripts/check-github-github-links.ts @@ -15,7 +15,7 @@ import fs from 'fs/promises' import got, { RequestError } from 'got' import { program } from 'commander' -import { getContents, getPathsWithMatchingStrings } from 'src/workflows/git-utils' +import { getContents, getPathsWithMatchingStrings } from '@/workflows/git-utils' if (!process.env.GITHUB_TOKEN) { throw new Error('Error! You must have a GITHUB_TOKEN set in an .env file to run this script.') diff --git a/src/links/scripts/update-internal-links.ts b/src/links/scripts/update-internal-links.ts index d36d9ce19c82..e7b76a451327 100755 --- a/src/links/scripts/update-internal-links.ts +++ b/src/links/scripts/update-internal-links.ts @@ -14,9 +14,9 @@ import { program } from 'commander' import chalk from 'chalk' import yaml from 'js-yaml' -import { updateInternalLinks } from '#src/links/lib/update-internal-links.js' -import frontmatter from 'src/frame/lib/read-frontmatter.js' -import walkFiles from 'src/workflows/walk-files' +import { updateInternalLinks } from '@/links/lib/update-internal-links.js' +import frontmatter from '@/frame/lib/read-frontmatter.js' +import walkFiles from '@/workflows/walk-files' program .description('Update internal links in content files') diff --git a/src/pages/404.tsx b/src/pages/404.tsx index eed7fa2e4b20..8fbbfedfdaaf 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,7 +1,7 @@ -import { SimpleHeader, SimpleFooter } from 'src/frame/components/GenericError' +import { SimpleHeader, SimpleFooter } from '@/frame/components/GenericError' import Head from 'next/head' import { CommentDiscussionIcon } from '@primer/octicons-react' -import { Lead } from 'src/frame/components/ui/Lead' +import { Lead } from '@/frame/components/ui/Lead' const Custom404 = () => { return ( diff --git a/src/pages/[versionId]/[productId]/index.tsx b/src/pages/[versionId]/[productId]/index.tsx index 0bfccb6df194..fc53392c8a10 100644 --- a/src/pages/[versionId]/[productId]/index.tsx +++ b/src/pages/[versionId]/[productId]/index.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/landings/pages/product' +export { default, getServerSideProps } from '@/landings/pages/product' diff --git a/src/pages/[versionId]/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise.tsx b/src/pages/[versionId]/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise.tsx index defbded50a44..58dff6cb3fe1 100644 --- a/src/pages/[versionId]/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise.tsx +++ b/src/pages/[versionId]/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/audit-logs/pages/audit-log-events' +export { default, getServerSideProps } from '@/audit-logs/pages/audit-log-events' diff --git a/src/pages/[versionId]/admin/release-notes.tsx b/src/pages/[versionId]/admin/release-notes.tsx index c4257436dba3..86d8f3e82b77 100644 --- a/src/pages/[versionId]/admin/release-notes.tsx +++ b/src/pages/[versionId]/admin/release-notes.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/release-notes/pages/release-notes' +export { default, getServerSideProps } from '@/release-notes/pages/release-notes' diff --git a/src/pages/[versionId]/authentication/keeping-your-account-and-data-secure/security-log-events.tsx b/src/pages/[versionId]/authentication/keeping-your-account-and-data-secure/security-log-events.tsx index defbded50a44..58dff6cb3fe1 100644 --- a/src/pages/[versionId]/authentication/keeping-your-account-and-data-secure/security-log-events.tsx +++ b/src/pages/[versionId]/authentication/keeping-your-account-and-data-secure/security-log-events.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/audit-logs/pages/audit-log-events' +export { default, getServerSideProps } from '@/audit-logs/pages/audit-log-events' diff --git a/src/pages/[versionId]/graphql/overview/breaking-changes.tsx b/src/pages/[versionId]/graphql/overview/breaking-changes.tsx index c9f4f60dff2d..9662d2c3f44f 100644 --- a/src/pages/[versionId]/graphql/overview/breaking-changes.tsx +++ b/src/pages/[versionId]/graphql/overview/breaking-changes.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/graphql/pages/breaking-changes' +export { default, getServerSideProps } from '@/graphql/pages/breaking-changes' diff --git a/src/pages/[versionId]/graphql/overview/changelog.tsx b/src/pages/[versionId]/graphql/overview/changelog.tsx index af9575de9ff3..aa1b8acc769a 100644 --- a/src/pages/[versionId]/graphql/overview/changelog.tsx +++ b/src/pages/[versionId]/graphql/overview/changelog.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/graphql/pages/changelog' +export { default, getServerSideProps } from '@/graphql/pages/changelog' diff --git a/src/pages/[versionId]/graphql/overview/explorer.tsx b/src/pages/[versionId]/graphql/overview/explorer.tsx index e3ac4b231c65..a993f8af65f5 100644 --- a/src/pages/[versionId]/graphql/overview/explorer.tsx +++ b/src/pages/[versionId]/graphql/overview/explorer.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/graphql/pages/explorer' +export { default, getServerSideProps } from '@/graphql/pages/explorer' diff --git a/src/pages/[versionId]/graphql/overview/schema-previews.tsx b/src/pages/[versionId]/graphql/overview/schema-previews.tsx index e0d02b512be7..fe964e15c71a 100644 --- a/src/pages/[versionId]/graphql/overview/schema-previews.tsx +++ b/src/pages/[versionId]/graphql/overview/schema-previews.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/graphql/pages/schema-previews' +export { default, getServerSideProps } from '@/graphql/pages/schema-previews' diff --git a/src/pages/[versionId]/graphql/reference/[page].tsx b/src/pages/[versionId]/graphql/reference/[page].tsx index ee07ebd8083e..0b2e837e57e9 100644 --- a/src/pages/[versionId]/graphql/reference/[page].tsx +++ b/src/pages/[versionId]/graphql/reference/[page].tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/graphql/pages/reference' +export { default, getServerSideProps } from '@/graphql/pages/reference' diff --git a/src/pages/[versionId]/organizations/keeping-your-organization-secure/audit-log-events-for-your-organization.tsx b/src/pages/[versionId]/organizations/keeping-your-organization-secure/audit-log-events-for-your-organization.tsx index defbded50a44..58dff6cb3fe1 100644 --- a/src/pages/[versionId]/organizations/keeping-your-organization-secure/audit-log-events-for-your-organization.tsx +++ b/src/pages/[versionId]/organizations/keeping-your-organization-secure/audit-log-events-for-your-organization.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/audit-logs/pages/audit-log-events' +export { default, getServerSideProps } from '@/audit-logs/pages/audit-log-events' diff --git a/src/pages/[versionId]/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/audit-log-events-for-your-organization.tsx b/src/pages/[versionId]/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/audit-log-events-for-your-organization.tsx index defbded50a44..58dff6cb3fe1 100644 --- a/src/pages/[versionId]/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/audit-log-events-for-your-organization.tsx +++ b/src/pages/[versionId]/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/audit-log-events-for-your-organization.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/audit-logs/pages/audit-log-events' +export { default, getServerSideProps } from '@/audit-logs/pages/audit-log-events' diff --git a/src/pages/[versionId]/rest/[category]/[subcategory].tsx b/src/pages/[versionId]/rest/[category]/[subcategory].tsx index bd591a7ac4a1..30fd4eaf7aaf 100644 --- a/src/pages/[versionId]/rest/[category]/[subcategory].tsx +++ b/src/pages/[versionId]/rest/[category]/[subcategory].tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/rest/pages/subcategory' +export { default, getServerSideProps } from '@/rest/pages/subcategory' diff --git a/src/pages/[versionId]/rest/[category]/index.tsx b/src/pages/[versionId]/rest/[category]/index.tsx index 24160fe5165f..32c98654d515 100644 --- a/src/pages/[versionId]/rest/[category]/index.tsx +++ b/src/pages/[versionId]/rest/[category]/index.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/rest/pages/category' +export { default, getServerSideProps } from '@/rest/pages/category' diff --git a/src/pages/[versionId]/rest/authentication/endpoints-available-for-fine-grained-personal-access-tokens.tsx b/src/pages/[versionId]/rest/authentication/endpoints-available-for-fine-grained-personal-access-tokens.tsx index a78ab6414ee7..eaef3e175cdc 100644 --- a/src/pages/[versionId]/rest/authentication/endpoints-available-for-fine-grained-personal-access-tokens.tsx +++ b/src/pages/[versionId]/rest/authentication/endpoints-available-for-fine-grained-personal-access-tokens.tsx @@ -1,4 +1,4 @@ export { default, getServerSideProps, -} from 'src/github-apps/pages/endpoints-available-for-fine-grained-personal-access-tokens' +} from '@/github-apps/pages/endpoints-available-for-fine-grained-personal-access-tokens' diff --git a/src/pages/[versionId]/rest/authentication/endpoints-available-for-github-app-installation-access-tokens.tsx b/src/pages/[versionId]/rest/authentication/endpoints-available-for-github-app-installation-access-tokens.tsx index fbef76f9fbd5..2856a3a68fab 100644 --- a/src/pages/[versionId]/rest/authentication/endpoints-available-for-github-app-installation-access-tokens.tsx +++ b/src/pages/[versionId]/rest/authentication/endpoints-available-for-github-app-installation-access-tokens.tsx @@ -1,4 +1,4 @@ export { default, getServerSideProps, -} from 'src/github-apps/pages/endpoints-available-for-github-app-installation-access-tokens' +} from '@/github-apps/pages/endpoints-available-for-github-app-installation-access-tokens' diff --git a/src/pages/[versionId]/rest/authentication/endpoints-available-for-github-app-user-access-tokens.tsx b/src/pages/[versionId]/rest/authentication/endpoints-available-for-github-app-user-access-tokens.tsx index 5651428a7963..529d61a3d825 100644 --- a/src/pages/[versionId]/rest/authentication/endpoints-available-for-github-app-user-access-tokens.tsx +++ b/src/pages/[versionId]/rest/authentication/endpoints-available-for-github-app-user-access-tokens.tsx @@ -1,4 +1,4 @@ export { default, getServerSideProps, -} from 'src/github-apps/pages/endpoints-available-for-github-app-user-access-tokens' +} from '@/github-apps/pages/endpoints-available-for-github-app-user-access-tokens' diff --git a/src/pages/[versionId]/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens.tsx b/src/pages/[versionId]/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens.tsx index a5983d100bb0..8122bc4448c2 100644 --- a/src/pages/[versionId]/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens.tsx +++ b/src/pages/[versionId]/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens.tsx @@ -1,4 +1,4 @@ export { default, getServerSideProps, -} from 'src/github-apps/pages/permissions-required-for-fine-grained-personal-access-tokens' +} from '@/github-apps/pages/permissions-required-for-fine-grained-personal-access-tokens' diff --git a/src/pages/[versionId]/rest/authentication/permissions-required-for-github-apps.tsx b/src/pages/[versionId]/rest/authentication/permissions-required-for-github-apps.tsx index 4acbdd763575..7970f8722377 100644 --- a/src/pages/[versionId]/rest/authentication/permissions-required-for-github-apps.tsx +++ b/src/pages/[versionId]/rest/authentication/permissions-required-for-github-apps.tsx @@ -1,4 +1,4 @@ export { default, getServerSideProps, -} from 'src/github-apps/pages/permissions-required-for-github-apps' +} from '@/github-apps/pages/permissions-required-for-github-apps' diff --git a/src/pages/[versionId]/webhooks/webhook-events-and-payloads.tsx b/src/pages/[versionId]/webhooks/webhook-events-and-payloads.tsx index 060277eaa1f5..c1b9544ffcfa 100644 --- a/src/pages/[versionId]/webhooks/webhook-events-and-payloads.tsx +++ b/src/pages/[versionId]/webhooks/webhook-events-and-payloads.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/webhooks/pages/webhook-events-and-payloads' +export { default, getServerSideProps } from '@/webhooks/pages/webhook-events-and-payloads' diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index b06968126740..a7647b0abdd6 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,3 +1,3 @@ -import 'src/frame/stylesheets/index.scss' +import '@/frame/stylesheets/index.scss' -export { default } from 'src/frame/pages/app' +export { default } from '@/frame/pages/app' diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index e66f05ccfec0..1ac7037b2ce3 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -1,7 +1,7 @@ import Document, { DocumentContext, Html, Head, Main, NextScript } from 'next/document' import { ServerStyleSheet } from 'styled-components' -import { defaultCSSTheme } from 'src/color-schemes/components/useTheme' +import { defaultCSSTheme } from '@/color-schemes/components/useTheme' export default class MyDocument extends Document { static async getInitialProps(ctx: DocumentContext) { diff --git a/src/pages/_error.tsx b/src/pages/_error.tsx index 0f26b8764982..614935133d13 100644 --- a/src/pages/_error.tsx +++ b/src/pages/_error.tsx @@ -1,6 +1,6 @@ import type { NextPageContext } from 'next' -import { GenericError } from 'src/frame/components/GenericError' +import { GenericError } from '@/frame/components/GenericError' function Error() { return diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 6e92751c3bf1..38e697c73741 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/landings/pages/home' +export { default, getServerSideProps } from '@/landings/pages/home' diff --git a/src/pages/search.tsx b/src/pages/search.tsx index 644b5dfac792..88223742cdbc 100644 --- a/src/pages/search.tsx +++ b/src/pages/search.tsx @@ -1 +1 @@ -export { default, getServerSideProps } from 'src/search/pages/search-results' +export { default, getServerSideProps } from '@/search/pages/search-results' diff --git a/src/products/lib/all-products.ts b/src/products/lib/all-products.ts index f858812431cc..2219aab47b75 100644 --- a/src/products/lib/all-products.ts +++ b/src/products/lib/all-products.ts @@ -1,9 +1,9 @@ import fs from 'fs/promises' import path from 'path' -import frontmatter from '#src/frame/lib/read-frontmatter.js' -import getApplicableVersions from '#src/versions/lib/get-applicable-versions.js' -import removeFPTFromPath from '#src/versions/lib/remove-fpt-from-path.js' -import { ROOT } from '#src/frame/lib/constants.js' +import frontmatter from '@/frame/lib/read-frontmatter.js' +import getApplicableVersions from '@/versions/lib/get-applicable-versions.js' +import removeFPTFromPath from '@/versions/lib/remove-fpt-from-path.js' +import { ROOT } from '@/frame/lib/constants.js' /** * Represents a product in the documentation diff --git a/src/products/tests/products.ts b/src/products/tests/products.ts index a827ba617bbf..c870a52e114c 100644 --- a/src/products/tests/products.ts +++ b/src/products/tests/products.ts @@ -1,10 +1,10 @@ import { describe, expect, test } from 'vitest' -import { getJsonValidator } from '#src/tests/lib/validate-json-schema.js' -import { productMap } from '#src/products/lib/all-products.ts' -import { formatAjvErrors } from '#src/tests/helpers/schemas.js' +import { getJsonValidator } from '@/tests/lib/validate-json-schema.js' +import { productMap } from '@/products/lib/all-products' +import { formatAjvErrors } from '@/tests/helpers/schemas.js' // @ts-ignore - Products schema doesn't have TypeScript types yet -import schema from '#src/tests/helpers/schemas/products-schema.js' +import schema from '@/tests/helpers/schemas/products-schema.js' const validate = getJsonValidator(schema) diff --git a/src/release-notes/components/GHESReleaseNotePatch.tsx b/src/release-notes/components/GHESReleaseNotePatch.tsx index bae0ab7cae5c..3942eb53223a 100644 --- a/src/release-notes/components/GHESReleaseNotePatch.tsx +++ b/src/release-notes/components/GHESReleaseNotePatch.tsx @@ -1,9 +1,9 @@ import { useRef } from 'react' import dayjs from 'dayjs' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { PatchNotes } from './PatchNotes' -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import { CurrentVersion, ReleaseNotePatch, GHESMessage } from './types' type Props = { diff --git a/src/release-notes/components/GHESReleaseNotes.tsx b/src/release-notes/components/GHESReleaseNotes.tsx index b05773c6cc8d..a5d2d709b43b 100644 --- a/src/release-notes/components/GHESReleaseNotes.tsx +++ b/src/release-notes/components/GHESReleaseNotes.tsx @@ -1,6 +1,6 @@ import cx from 'classnames' -import { MarkdownContent } from 'src/frame/components/ui/MarkdownContent' +import { MarkdownContent } from '@/frame/components/ui/MarkdownContent' import { GHESReleaseNotesContextT } from './types' import { GHESReleaseNotePatch } from './GHESReleaseNotePatch' diff --git a/src/release-notes/components/PatchNotes.tsx b/src/release-notes/components/PatchNotes.tsx index 438a5242326c..7fead859162f 100644 --- a/src/release-notes/components/PatchNotes.tsx +++ b/src/release-notes/components/PatchNotes.tsx @@ -1,6 +1,6 @@ import { slug } from 'github-slugger' import { ReleaseNotePatch } from './types' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' +import { HeadingLink } from '@/frame/components/article/HeadingLink' const SectionToLabelMap: Record = { features: 'Features', diff --git a/src/release-notes/pages/release-notes.tsx b/src/release-notes/pages/release-notes.tsx index 7eb9debbfca6..7fc7cd70be34 100644 --- a/src/release-notes/pages/release-notes.tsx +++ b/src/release-notes/pages/release-notes.tsx @@ -7,10 +7,10 @@ import { MainContext, getMainContext, addUINamespaces, -} from 'src/frame/components/context/MainContext' -import { DefaultLayout } from 'src/frame/components/DefaultLayout' -import { GHESReleaseNotes } from 'src/release-notes/components/GHESReleaseNotes' -import { GHESReleaseNotesContextT } from 'src/release-notes/components/types' +} from '@/frame/components/context/MainContext' +import { DefaultLayout } from '@/frame/components/DefaultLayout' +import { GHESReleaseNotes } from '@/release-notes/components/GHESReleaseNotes' +import { GHESReleaseNotesContextT } from '@/release-notes/components/types' const liquid = new Liquid() type Props = { diff --git a/src/release-notes/tests/yaml.ts b/src/release-notes/tests/yaml.ts index 0246ca11a93a..0831d2b86d5d 100644 --- a/src/release-notes/tests/yaml.ts +++ b/src/release-notes/tests/yaml.ts @@ -5,7 +5,7 @@ import path from 'path' import { beforeAll, describe, expect, test } from 'vitest' import yaml from 'js-yaml' -import { liquid } from '#src/content-render/index.js' +import { liquid } from '@/content-render/index.js' interface ReleaseNoteContent { intro: string diff --git a/src/rest/components/ApiVersionPicker.tsx b/src/rest/components/ApiVersionPicker.tsx index 09b59a63dfe6..38880d22e41a 100644 --- a/src/rest/components/ApiVersionPicker.tsx +++ b/src/rest/components/ApiVersionPicker.tsx @@ -1,13 +1,13 @@ import { useRouter } from 'next/router' -import Cookies from 'src/frame/components/lib/cookies' +import Cookies from '@/frame/components/lib/cookies' import { InfoIcon } from '@primer/octicons-react' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { DEFAULT_VERSION, useVersion } from 'src/versions/components/useVersion' -import { Picker } from 'src/tools/components/Picker' -import { useTranslation } from 'src/languages/components/useTranslation' -import { API_VERSION_COOKIE_NAME } from 'src/rest/components/RestRedirect' -import { apiVersionPath } from 'src/rest/lib/config.js' +import { useMainContext } from '@/frame/components/context/MainContext' +import { DEFAULT_VERSION, useVersion } from '@/versions/components/useVersion' +import { Picker } from '@/tools/components/Picker' +import { useTranslation } from '@/languages/components/useTranslation' +import { API_VERSION_COOKIE_NAME } from '@/rest/components/RestRedirect' +import { apiVersionPath } from '@/rest/lib/config.js' const API_VERSION_SUFFIX = ' (latest)' diff --git a/src/rest/components/ClientSideRedirects.tsx b/src/rest/components/ClientSideRedirects.tsx index 7d3043ee604a..266a1a924e4e 100644 --- a/src/rest/components/ClientSideRedirects.tsx +++ b/src/rest/components/ClientSideRedirects.tsx @@ -3,7 +3,7 @@ import dynamic from 'next/dynamic' import { useRouter } from 'next/router' const ClientSideRedirectExceptions = dynamic( - () => import('src/rest/components/ClientSideRedirectExceptions'), + () => import('@/rest/components/ClientSideRedirectExceptions'), { ssr: false, }, diff --git a/src/rest/components/RestAuth.tsx b/src/rest/components/RestAuth.tsx index 157d03f60922..902244501dfa 100644 --- a/src/rest/components/RestAuth.tsx +++ b/src/rest/components/RestAuth.tsx @@ -1,8 +1,8 @@ import { useRouter } from 'next/router' -import { useTranslation } from 'src/languages/components/useTranslation' -import { DEFAULT_VERSION, useVersion } from 'src/versions/components/useVersion' -import { Link } from 'src/frame/components/Link' +import { useTranslation } from '@/languages/components/useTranslation' +import { DEFAULT_VERSION, useVersion } from '@/versions/components/useVersion' +import { Link } from '@/frame/components/Link' import { ProgAccessT } from './types' // Documentation paths may be moved around by content team in the future diff --git a/src/rest/components/RestBanner.tsx b/src/rest/components/RestBanner.tsx index ac7c4d264226..77841e75a552 100644 --- a/src/rest/components/RestBanner.tsx +++ b/src/rest/components/RestBanner.tsx @@ -2,10 +2,10 @@ import React from 'react' import { Flash } from '@primer/react' import { useRouter } from 'next/router' -import { DEFAULT_VERSION, useVersion } from 'src/versions/components/useVersion' -import { Link } from 'src/frame/components/Link' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { useTranslation } from 'src/languages/components/useTranslation' +import { DEFAULT_VERSION, useVersion } from '@/versions/components/useVersion' +import { Link } from '@/frame/components/Link' +import { useMainContext } from '@/frame/components/context/MainContext' +import { useTranslation } from '@/languages/components/useTranslation' const restRepoDisplayPages = [ 'branches', diff --git a/src/rest/components/RestCodeSamples.tsx b/src/rest/components/RestCodeSamples.tsx index 5f3fb0ae8962..468d3274076a 100644 --- a/src/rest/components/RestCodeSamples.tsx +++ b/src/rest/components/RestCodeSamples.tsx @@ -2,7 +2,7 @@ import { useState, useEffect, useRef, FormEvent } from 'react' import { FormControl, IconButton, Select, TabNav } from '@primer/react' import { CheckIcon, CopyIcon, InfoIcon } from '@primer/octicons-react' import { announce } from '@primer/live-region-element' -import Cookies from 'src/frame/components/lib/cookies' +import Cookies from '@/frame/components/lib/cookies' import cx from 'classnames' import hljs from 'highlight.js/lib/core' @@ -10,19 +10,19 @@ import json from 'highlight.js/lib/languages/json' import javascript from 'highlight.js/lib/languages/javascript' import hljsCurl from 'highlightjs-curl' -import { useTranslation } from 'src/languages/components/useTranslation' -import useClipboard from 'src/rest/components/useClipboard' +import { useTranslation } from '@/languages/components/useTranslation' +import useClipboard from '@/rest/components/useClipboard' import { getShellExample, getGHExample, getJSExample, -} from 'src/rest/components/get-rest-code-samples' +} from '@/rest/components/get-rest-code-samples' import styles from './RestCodeSamples.module.scss' import { RestMethod } from './RestMethod' import type { Operation, ExampleT } from './types' import { ResponseKeys, CodeSampleKeys } from './types' -import { useVersion } from 'src/versions/components/useVersion' -import { useMainContext } from 'src/frame/components/context/MainContext' +import { useVersion } from '@/versions/components/useVersion' +import { useMainContext } from '@/frame/components/context/MainContext' type Props = { slug: string diff --git a/src/rest/components/RestOperation.tsx b/src/rest/components/RestOperation.tsx index 8f580cdf67d7..409fb55ee32a 100644 --- a/src/rest/components/RestOperation.tsx +++ b/src/rest/components/RestOperation.tsx @@ -3,10 +3,10 @@ import { useRouter } from 'next/router' import { slug } from 'github-slugger' import cx from 'classnames' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' -import { useTranslation } from 'src/languages/components/useTranslation' +import { HeadingLink } from '@/frame/components/article/HeadingLink' +import { useTranslation } from '@/languages/components/useTranslation' import { RestPreviewNotice } from './RestPreviewNotice' -import { ParameterTable } from 'src/automated-pipelines/components/parameter-table/ParameterTable' +import { ParameterTable } from '@/automated-pipelines/components/parameter-table/ParameterTable' import { RestCodeSamples } from './RestCodeSamples' import { RestStatusCodes } from './RestStatusCodes' import { RestAuth } from './RestAuth' diff --git a/src/rest/components/RestPreviewNotice.tsx b/src/rest/components/RestPreviewNotice.tsx index 9cff06b29cb5..c184c1bdabe3 100644 --- a/src/rest/components/RestPreviewNotice.tsx +++ b/src/rest/components/RestPreviewNotice.tsx @@ -1,4 +1,4 @@ -import { Alert } from 'src/frame/components/ui/Alert' +import { Alert } from '@/frame/components/ui/Alert' type Props = { slug: string diff --git a/src/rest/components/RestRedirect.tsx b/src/rest/components/RestRedirect.tsx index f5ce70b942b9..cbb16ee87fcb 100644 --- a/src/rest/components/RestRedirect.tsx +++ b/src/rest/components/RestRedirect.tsx @@ -1,9 +1,9 @@ import { useEffect } from 'react' import { useRouter } from 'next/router' -import Cookies from 'src/frame/components/lib/cookies' +import Cookies from '@/frame/components/lib/cookies' -import { useVersion } from 'src/versions/components/useVersion' -import { useMainContext } from 'src/frame/components/context/MainContext' +import { useVersion } from '@/versions/components/useVersion' +import { useMainContext } from '@/frame/components/context/MainContext' export const API_VERSION_COOKIE_NAME = 'apiVersionPreferred' diff --git a/src/rest/components/RestReferencePage.tsx b/src/rest/components/RestReferencePage.tsx index 599a528af7c7..24355938a8ca 100644 --- a/src/rest/components/RestReferencePage.tsx +++ b/src/rest/components/RestReferencePage.tsx @@ -1,15 +1,15 @@ import { useEffect } from 'react' -import { DefaultLayout } from 'src/frame/components/DefaultLayout' -import { MarkdownContent } from 'src/frame/components/ui/MarkdownContent' -import { Lead } from 'src/frame/components/ui/Lead' -import { PermissionsStatement } from 'src/frame/components/ui/PermissionsStatement' +import { DefaultLayout } from '@/frame/components/DefaultLayout' +import { MarkdownContent } from '@/frame/components/ui/MarkdownContent' +import { Lead } from '@/frame/components/ui/Lead' +import { PermissionsStatement } from '@/frame/components/ui/PermissionsStatement' import { RestOperation } from './RestOperation' -import { useAutomatedPageContext } from 'src/automated-pipelines/components/AutomatedPageContext' +import { useAutomatedPageContext } from '@/automated-pipelines/components/AutomatedPageContext' import { Operation } from './types' -import { ClientSideRedirects } from 'src/rest/components/ClientSideRedirects' -import { RestRedirect } from 'src/rest/components/RestRedirect' -import { Breadcrumbs } from 'src/frame/components/page-header/Breadcrumbs' +import { ClientSideRedirects } from '@/rest/components/ClientSideRedirects' +import { RestRedirect } from '@/rest/components/RestRedirect' +import { Breadcrumbs } from '@/frame/components/page-header/Breadcrumbs' export type StructuredContentT = { restOperations: Operation[] diff --git a/src/rest/components/RestStatusCodes.tsx b/src/rest/components/RestStatusCodes.tsx index 8a148a18f0eb..6645c87d3f63 100644 --- a/src/rest/components/RestStatusCodes.tsx +++ b/src/rest/components/RestStatusCodes.tsx @@ -1,4 +1,4 @@ -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { StatusCode } from './types' type Props = { diff --git a/src/rest/components/get-rest-code-samples.ts b/src/rest/components/get-rest-code-samples.ts index 9f566effbfbf..ef2706368eae 100644 --- a/src/rest/components/get-rest-code-samples.ts +++ b/src/rest/components/get-rest-code-samples.ts @@ -1,8 +1,8 @@ import { parseTemplate } from 'url-template' import { stringify } from 'javascript-stringify' -import type { CodeSample, Operation } from 'src/rest/components/types' -import { type VersionItem } from 'src/frame/components/context/MainContext' +import type { CodeSample, Operation } from '@/rest/components/types' +import { type VersionItem } from '@/frame/components/context/MainContext' type CodeExamples = Record diff --git a/src/rest/data/fpt-2022-11-28/schema.json b/src/rest/data/fpt-2022-11-28/schema.json index 1df2b6528b61..afbbbffbc71b 100644 --- a/src/rest/data/fpt-2022-11-28/schema.json +++ b/src/rest/data/fpt-2022-11-28/schema.json @@ -250692,6 +250692,69 @@ } ] }, + { + "serverUrl": "https://api.github.com", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access", + "title": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "category": "dependabot", + "subcategory": "repository-access", + "parameters": [ + { + "name": "org", + "description": "

The organization name. The name is not case sensitive.

", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Administration\" organization permissions": "write" + } + ] + }, + "codeExamples": [ + { + "key": "204", + "request": { + "contentType": "application/json", + "description": "Example with a 'succeeded' status.", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG" + } + }, + "response": { + "statusCode": "204", + "description": "

Response

" + } + } + ], + "previews": [], + "descriptionHTML": "

Note

\n

\nThis operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.

\n
", + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "

No Content

" + }, + { + "httpStatusCode": "403", + "description": "

Forbidden

" + }, + { + "httpStatusCode": "404", + "description": "

Resource not found

" + } + ] + }, { "serverUrl": "https://api.github.com", "verb": "put", @@ -388784,7 +388847,7 @@ } ], "previews": [], - "descriptionHTML": "

This endpoint allows you to run an inference request attributed to a specific organization. You must be a member of the organization to use this endpoint.\nThe request body should contain the model ID and the messages for the chat completion request.\nThe response will include either a non-streaming or streaming response based on the request parameters.

", + "descriptionHTML": "

This endpoint allows you to run an inference request attributed to a specific organization. You must be a member of the organization and have enabled models to use this endpoint.\nThe token used to authenticate must have the models: read permission if using a fine-grained PAT or GitHub App minted token.\nThe request body should contain the model ID and the messages for the chat completion request. The response will include either a non-streaming or streaming response based on the request parameters.

", "statusCodes": [ { "httpStatusCode": "200", @@ -389116,7 +389179,7 @@ } ], "previews": [], - "descriptionHTML": "

This endpoint allows you to run an inference request.

", + "descriptionHTML": "

This endpoint allows you to run an inference request. The token used to authenticate must have the models: read permission if using a fine-grained PAT or GitHub App minted token.\nThe request body should contain the model ID and\nthe messages for the chat completion request. The response will include either a non-streaming or streaming response based on the request parameters.

", "statusCodes": [ { "httpStatusCode": "200", diff --git a/src/rest/data/ghec-2022-11-28/schema.json b/src/rest/data/ghec-2022-11-28/schema.json index 0741450a299d..754cef7239aa 100644 --- a/src/rest/data/ghec-2022-11-28/schema.json +++ b/src/rest/data/ghec-2022-11-28/schema.json @@ -117933,7 +117933,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "

The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.

", + "description": "

The security product to get GitHub Advanced Security active committers for.

\n

For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.

", "required": false, "schema": { "type": "string", @@ -264836,6 +264836,69 @@ } ] }, + { + "serverUrl": "https://api.github.com", + "verb": "patch", + "requestPath": "/organizations/{org}/dependabot/repository-access", + "title": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "category": "dependabot", + "subcategory": "repository-access", + "parameters": [ + { + "name": "org", + "description": "

The organization name. The name is not case sensitive.

", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Administration\" organization permissions": "write" + } + ] + }, + "codeExamples": [ + { + "key": "204", + "request": { + "contentType": "application/json", + "description": "Example with a 'succeeded' status.", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG" + } + }, + "response": { + "statusCode": "204", + "description": "

Response

" + } + } + ], + "previews": [], + "descriptionHTML": "

Note

\n

\nThis operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.

\n
", + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "

No Content

" + }, + { + "httpStatusCode": "403", + "description": "

Forbidden

" + }, + { + "httpStatusCode": "404", + "description": "

Resource not found

" + } + ] + }, { "serverUrl": "https://api.github.com", "verb": "put", @@ -282300,7 +282363,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "

The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.

", + "description": "

The security product to get GitHub Advanced Security active committers for.

\n

For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.

", "required": false, "schema": { "type": "string", diff --git a/src/rest/data/ghes-3.13-2022-11-28/schema.json b/src/rest/data/ghes-3.13-2022-11-28/schema.json index 3fc790036267..2b9537234c16 100644 --- a/src/rest/data/ghes-3.13-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.13-2022-11-28/schema.json @@ -1080,13 +1080,13 @@ } ], "previews": [], - "descriptionHTML": "

Gets the GitHub Actions cache usage policy for an enterprise.

\n

OAuth tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Gets the GitHub Actions cache usage policy for an enterprise.

\n

OAuth tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -3178,13 +3178,13 @@ } ], "previews": [], - "descriptionHTML": "

Sets the actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for allowed_actions must be configured to selected. For more information, see \"Set GitHub Actions permissions for an enterprise.\"

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Sets the actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for allowed_actions must be configured to selected. For more information, see \"Set GitHub Actions permissions for an enterprise.\"

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -4867,13 +4867,13 @@ } ], "previews": [], - "descriptionHTML": "

Removes a repository from the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories must be configured to selected. For more information, see \"Set GitHub Actions permissions for an organization.\"

\n

OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Removes a repository from the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories must be configured to selected. For more information, see \"Set GitHub Actions permissions for an organization.\"

\n

OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -5112,13 +5112,13 @@ } ], "previews": [], - "descriptionHTML": "

Gets the default workflow permissions granted to the GITHUB_TOKEN when running workflows in an organization,\nas well as whether GitHub Actions can submit approving pull request reviews. For more information, see\n\"Setting the permissions of the GITHUB_TOKEN for your organization.\"

\n

OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Gets the default workflow permissions granted to the GITHUB_TOKEN when running workflows in an organization,\nas well as whether GitHub Actions can submit approving pull request reviews. For more information, see\n\"Setting the permissions of the GITHUB_TOKEN for your organization.\"

\n

OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -7483,13 +7483,13 @@ } ], "previews": [], - "descriptionHTML": "

Lists all repositories that have been selected when the visibility\nfor repository access to a secret is set to selected.

\n

Authenticated users must have collaborator access to a repository to create, update, or read secrets.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. If the repository is private, the repo scope is also required.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Lists all repositories that have been selected when the visibility\nfor repository access to a secret is set to selected.

\n

Authenticated users must have collaborator access to a repository to create, update, or read secrets.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. If the repository is private, the repo scope is also required.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -9783,13 +9783,13 @@ } ], "previews": [], - "descriptionHTML": "

Deletes a self-hosted runner group for an enterprise.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Deletes a self-hosted runner group for an enterprise.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -9995,13 +9995,13 @@ } ], "previews": [], - "descriptionHTML": "

Lists the organizations with access to a self-hosted runner group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Lists the organizations with access to a self-hosted runner group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -10140,13 +10140,13 @@ } ], "previews": [], - "descriptionHTML": "

Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -10524,13 +10524,13 @@ } ], "previews": [], - "descriptionHTML": "

Replaces the list of self-hosted runners that are part of an enterprise runner group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Replaces the list of self-hosted runners that are part of an enterprise runner group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -10664,13 +10664,13 @@ } ], "previews": [], - "descriptionHTML": "

Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -11068,13 +11068,13 @@ } ], "previews": [], - "descriptionHTML": "

Creates a new self-hosted runner group for an organization.

\n

OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "201", "description": "

Created

" } - ] + ], + "descriptionHTML": "

Creates a new self-hosted runner group for an organization.

\n

OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -11211,13 +11211,13 @@ } ], "previews": [], - "descriptionHTML": "

Gets a specific self-hosted runner group for an organization.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Gets a specific self-hosted runner group for an organization.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -11398,13 +11398,13 @@ } ], "previews": [], - "descriptionHTML": "

Updates the name and visibility of a self-hosted runner group in an organization.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Updates the name and visibility of a self-hosted runner group in an organization.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -12847,13 +12847,13 @@ } ], "previews": [], - "descriptionHTML": "

Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an organization.\"

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an organization.\"

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -13090,13 +13090,13 @@ } ], "previews": [], - "descriptionHTML": "

Lists self-hosted runners that are in a specific organization group.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Lists self-hosted runners that are in a specific organization group.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -13552,13 +13552,13 @@ } ], "previews": [], - "descriptionHTML": "

Lists all self-hosted runners configured for an enterprise.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Lists all self-hosted runners configured for an enterprise.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -18655,13 +18655,13 @@ } ], "previews": [], - "descriptionHTML": "

Returns a token that you can pass to the config script. The token expires after one hour.

\n

For example, you can replace TOKEN in the following example with the registration token provided by this endpoint to configure your self-hosted runner:

\n
./config.sh --url https://github.com/octo-org --token TOKEN\n
\n

Authenticated users must have admin access to the organization to use this endpoint.

\n

OAuth tokens and personal access tokens (classic) need theadmin:org scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "201", "description": "

Created

" } - ] + ], + "descriptionHTML": "

Returns a token that you can pass to the config script. The token expires after one hour.

\n

For example, you can replace TOKEN in the following example with the registration token provided by this endpoint to configure your self-hosted runner:

\n
./config.sh --url https://github.com/octo-org --token TOKEN\n
\n

Authenticated users must have admin access to the organization to use this endpoint.

\n

OAuth tokens and personal access tokens (classic) need theadmin:org scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -20098,7 +20098,6 @@ } ], "previews": [], - "descriptionHTML": "

Lists all labels for a self-hosted runner configured in an organization.

\n

Authenticated users must have admin access to the organization to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. If the repository is private, the repo scope is also required.

", "statusCodes": [ { "httpStatusCode": "200", @@ -20108,7 +20107,8 @@ "httpStatusCode": "404", "description": "

Resource not found

" } - ] + ], + "descriptionHTML": "

Lists all labels for a self-hosted runner configured in an organization.

\n

Authenticated users must have admin access to the organization to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. If the repository is private, the repo scope is also required.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -22404,13 +22404,13 @@ } ], "previews": [], - "descriptionHTML": "

Returns a token that you can pass to the config script. The token expires after one hour.

\n

For example, you can replace TOKEN in the following example with the registration token provided by this endpoint to configure your self-hosted runner:

\n
./config.sh --url https://github.com/octo-org --token TOKEN\n
\n

Authenticated users must have admin access to the repository to use this endpoint.

\n

OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "201", "description": "

Created

" } - ] + ], + "descriptionHTML": "

Returns a token that you can pass to the config script. The token expires after one hour.

\n

For example, you can replace TOKEN in the following example with the registration token provided by this endpoint to configure your self-hosted runner:

\n
./config.sh --url https://github.com/octo-org --token TOKEN\n
\n

Authenticated users must have admin access to the repository to use this endpoint.

\n

OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -23478,13 +23478,13 @@ } ], "previews": [], - "descriptionHTML": "

Returns a token that you can pass to the config script to remove a self-hosted runner from an repository. The token expires after one hour.

\n

For example, you can replace TOKEN in the following example with the registration token provided by this endpoint to remove your self-hosted runner from an organization:

\n
./config.sh remove --token TOKEN\n
\n

Authenticated users must have admin access to the repository to use this endpoint.

\n

OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "201", "description": "

Created

" } - ] + ], + "descriptionHTML": "

Returns a token that you can pass to the config script to remove a self-hosted runner from an repository. The token expires after one hour.

\n

For example, you can replace TOKEN in the following example with the registration token provided by this endpoint to remove your self-hosted runner from an organization:

\n
./config.sh remove --token TOKEN\n
\n

Authenticated users must have admin access to the repository to use this endpoint.

\n

OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -26487,13 +26487,13 @@ } ], "previews": [], - "descriptionHTML": "

Lists all organization variables shared with a repository.

\n

Authenticated users must have collaborator access to a repository to create, update, or read variables.

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Lists all organization variables shared with a repository.

\n

Authenticated users must have collaborator access to a repository to create, update, or read variables.

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -29260,13 +29260,13 @@ } ], "previews": [], - "descriptionHTML": "

Lists jobs for a workflow run. You can use parameters to narrow the list of results. For more information\nabout using parameters, see Parameters.

\n

Anyone with read access to the repository can use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint with a private repository.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Lists jobs for a workflow run. You can use parameters to narrow the list of results. For more information\nabout using parameters, see Parameters.

\n

Anyone with read access to the repository can use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint with a private repository.

" } ], "workflow-runs": [ @@ -39276,13 +39276,13 @@ } ], "previews": [], - "descriptionHTML": "

Get all deployment environments for a workflow run that are waiting for protection rules to pass.

\n

Anyone with read access to the repository can use this endpoint.

\n

If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Get all deployment environments for a workflow run that are waiting for protection rules to pass.

\n

Anyone with read access to the repository can use this endpoint.

\n

If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -43686,13 +43686,13 @@ } ], "previews": [], - "descriptionHTML": "

Disables a workflow and sets the state of the workflow to disabled_manually. You can replace workflow_id with the workflow file name. For example, you could use main.yaml.

\n

OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Disables a workflow and sets the state of the workflow to disabled_manually. You can replace workflow_id with the workflow file name. For example, you could use main.yaml.

\n

OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -62859,13 +62859,13 @@ } ], "previews": [], - "descriptionHTML": "

If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. Optional: use the fine-grained token with following permission set to view private events: \"Events\" user permissions (read).

\n

Note

\n

\nThis API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.

\n
", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. Optional: use the fine-grained token with following permission set to view private events: \"Events\" user permissions (read).

\n

Note

\n

\nThis API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.

\n
" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -80708,13 +80708,13 @@ } ], "previews": [], - "descriptionHTML": "

Marks a thread as \"done.\" Marking a thread as \"done\" is equivalent to marking a notification in your notification inbox on GitHub Enterprise Server as done: https://github.com/notifications.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No content

" } - ] + ], + "descriptionHTML": "

Marks a thread as \"done.\" Marking a thread as \"done\" is equivalent to marking a notification in your notification inbox on GitHub Enterprise Server as done: https://github.com/notifications.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -107899,7 +107899,6 @@ } ], "previews": [], - "descriptionHTML": "

OAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization.

", "statusCodes": [ { "httpStatusCode": "204", @@ -107909,7 +107908,8 @@ "httpStatusCode": "422", "description": "

Validation failed, or the endpoint has been spammed.

" } - ] + ], + "descriptionHTML": "

OAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization.

" } ], "webhooks": [ @@ -185488,13 +185488,13 @@ } ], "previews": [], - "descriptionHTML": "

Lists all secrets available in an organization without revealing their\nencrypted values.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Lists all secrets available in an organization without revealing their\nencrypted values.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -186957,13 +186957,13 @@ } ], "previews": [], - "descriptionHTML": "

Replaces all repositories for an organization secret when the visibility\nfor repository access is set to selected. The visibility is set when you Create\nor update an organization secret.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Replaces all repositories for an organization secret when the visibility\nfor repository access is set to selected. The visibility is set when you Create\nor update an organization secret.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -195421,13 +195421,13 @@ } ], "previews": [], - "descriptionHTML": "

Enable a custom deployment protection rule for an environment.

\n

The authenticated user must have admin or owner permissions to the repository to use this endpoint.

\n

For more information about the app that is providing this custom deployment rule, see the documentation for the GET /apps/{app_slug} endpoint, as well as the guide to creating custom deployment protection rules.

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "201", "description": "

The enabled custom deployment protection rule

" } - ] + ], + "descriptionHTML": "

Enable a custom deployment protection rule for an environment.

\n

The authenticated user must have admin or owner permissions to the repository to use this endpoint.

\n

For more information about the app that is providing this custom deployment rule, see the documentation for the GET /apps/{app_slug} endpoint, as well as the guide to creating custom deployment protection rules.

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -200976,13 +200976,13 @@ } ], "previews": [], - "descriptionHTML": "", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -201165,13 +201165,13 @@ } ], "previews": [], - "descriptionHTML": "", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -201349,13 +201349,13 @@ } ], "previews": [], - "descriptionHTML": "

Gets the statistics about security products for a GitHub Enterprise Server instance.

\n

To use this endpoint, you must be a site admin.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Gets the statistics about security products for a GitHub Enterprise Server instance.

\n

To use this endpoint, you must be a site admin.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -201647,13 +201647,13 @@ } ], "previews": [], - "descriptionHTML": "

Removes the global announcement banner in your enterprise.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Removes the global announcement banner in your enterprise.

" } ], "audit-log": [ @@ -202079,13 +202079,13 @@ } ], "previews": [], - "descriptionHTML": "

Gets the audit log for an enterprise.

\n

The authenticated user must be an enterprise admin to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Gets the audit log for an enterprise.

\n

The authenticated user must be an enterprise admin to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

" } ], "billing": [ @@ -203426,13 +203426,13 @@ } ], "previews": [], - "descriptionHTML": "

Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -324561,7 +324561,6 @@ } ], "previews": [], - "descriptionHTML": "

Warning

\n

\nClosing down notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November 13, 2020. For more information, including scheduled brownouts, see the blog post.

\n
\n

You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes returned are the union of scopes authorized for the application. For example, if an application has one token with repo scope and another token with user scope, the grant will return [\"repo\", \"user\"].

", "statusCodes": [ { "httpStatusCode": "200", @@ -324583,7 +324582,8 @@ "httpStatusCode": "404", "description": "

Resource not found

" } - ] + ], + "descriptionHTML": "

Warning

\n

\nClosing down notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November 13, 2020. For more information, including scheduled brownouts, see the blog post.

\n
\n

You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes returned are the union of scopes authorized for the application. For example, if an application has one token with repo scope and another token with user scope, the grant will return [\"repo\", \"user\"].

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -333026,7 +333026,6 @@ } ], "previews": [], - "descriptionHTML": "

Warning

\n

\nClosing down notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November 13, 2020. For more information, including scheduled brownouts, see the blog post.

\n
\n

If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"

\n

You can only send one of these scope keys at a time.

", "statusCodes": [ { "httpStatusCode": "200", @@ -333036,7 +333035,8 @@ "httpStatusCode": "422", "description": "

Validation failed, or the endpoint has been spammed.

" } - ] + ], + "descriptionHTML": "

Warning

\n

\nClosing down notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November 13, 2020. For more information, including scheduled brownouts, see the blog post.

\n
\n

If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"

\n

You can only send one of these scope keys at a time.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -338681,13 +338681,13 @@ } ], "previews": [], - "descriptionHTML": "

List the custom repository roles available in this organization. For more information on custom repository roles, see \"About custom repository roles.\"

\n

The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org or repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

Response - list of custom role names

" } - ] + ], + "descriptionHTML": "

List the custom repository roles available in this organization. For more information on custom repository roles, see \"About custom repository roles.\"

\n

The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org or repo scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -426100,13 +426100,13 @@ } ], "previews": [], - "descriptionHTML": "

Note

\n

\nYou can also specify a repository by repository_id using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id.

\n
\n

Delete a reaction to a release.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Note

\n

\nYou can also specify a repository by repository_id using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id.

\n
\n

Delete a reaction to a release.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -452540,13 +452540,13 @@ } ], "previews": [], - "descriptionHTML": "

A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original owner, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see about repository transfers.

", "statusCodes": [ { "httpStatusCode": "202", "description": "

Accepted

" } - ] + ], + "descriptionHTML": "

A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original owner, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see about repository transfers.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -519836,13 +519836,13 @@ } ], "previews": [], - "descriptionHTML": "

Delete a discussion from a team's page.

\n

Note

\n

\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}.

\n
\n

OAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ] + ], + "descriptionHTML": "

Delete a discussion from a team's page.

\n

Note

\n

\nYou can also specify a team by org_id and team_id using the route DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}.

\n
\n

OAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -522197,13 +522197,13 @@ } ], "previews": [], - "descriptionHTML": "

Lists external groups available in an organization. You can query the groups using the display_name parameter, only groups with a group_name containing the text provided in the display_name parameter will be returned. You can also limit your page results using the per_page parameter. GitHub Enterprise Server generates a url-encoded page token using a cursor value for where the next page begins. For more information on cursor pagination, see \"Offset and Cursor Pagination explained.\"

\n

You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"GitHub's products\" in the GitHub Help documentation.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Lists external groups available in an organization. You can query the groups using the display_name parameter, only groups with a group_name containing the text provided in the display_name parameter will be returned. You can also limit your page results using the per_page parameter. GitHub Enterprise Server generates a url-encoded page token using a cursor value for where the next page begins. For more information on cursor pagination, see \"Offset and Cursor Pagination explained.\"

\n

You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"GitHub's products\" in the GitHub Help documentation.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -522564,13 +522564,13 @@ } ], "previews": [], - "descriptionHTML": "

Creates a connection between a team and an external group. Only one external group can be linked to a team.

\n

You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"GitHub's products\" in the GitHub Help documentation.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ] + ], + "descriptionHTML": "

Creates a connection between a team and an external group. Only one external group can be linked to a team.

\n

You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"GitHub's products\" in the GitHub Help documentation.

" }, { "serverUrl": "http(s)://HOSTNAME/api/v3", diff --git a/src/rest/data/ghes-3.16-2022-11-28/schema.json b/src/rest/data/ghes-3.16-2022-11-28/schema.json index 09381967e480..582c06027a19 100644 --- a/src/rest/data/ghes-3.16-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.16-2022-11-28/schema.json @@ -2634,13 +2634,13 @@ } ], "previews": [], + "descriptionHTML": "

Sets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise.

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Sets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise.

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -2836,13 +2836,13 @@ } ], "previews": [], + "descriptionHTML": "

Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use this endpoint, the enterprise permission policy for enabled_organizations must be configured to selected. For more information, see \"Set GitHub Actions permissions for an enterprise.\"

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use this endpoint, the enterprise permission policy for enabled_organizations must be configured to selected. For more information, see \"Set GitHub Actions permissions for an enterprise.\"

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -2901,13 +2901,13 @@ } ], "previews": [], + "descriptionHTML": "

Replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for enabled_organizations must be configured to selected. For more information, see \"Set GitHub Actions permissions for an enterprise.\"

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for enabled_organizations must be configured to selected. For more information, see \"Set GitHub Actions permissions for an enterprise.\"

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -3420,13 +3420,13 @@ } ], "previews": [], + "descriptionHTML": "

Gets the GitHub Actions permissions policy for repositories and allowed actions in an organization.

\n

You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub Apps must have the administration organization permission to use this API.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Gets the GitHub Actions permissions policy for repositories and allowed actions in an organization.

\n

You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub Apps must have the administration organization permission to use this API.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -4668,13 +4668,13 @@ } ], "previews": [], + "descriptionHTML": "

Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories must be configured to selected. For more information, see \"Set GitHub Actions permissions for an organization.\"

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories must be configured to selected. For more information, see \"Set GitHub Actions permissions for an organization.\"

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -5032,13 +5032,13 @@ } ], "previews": [], + "descriptionHTML": "

Sets the actions that are allowed in an organization. To use this endpoint, the organization permission policy for allowed_actions must be configured to selected. For more information, see \"Set GitHub Actions permissions for an organization.\"

\n

If the organization belongs to an enterprise that has selected actions set at the enterprise level, then you cannot override any of the enterprise's allowed actions settings.

\n

To use the patterns_allowed setting for private repositories, the organization must belong to an enterprise. If the organization does not belong to an enterprise, then the patterns_allowed setting only applies to public repositories in the organization.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Sets the actions that are allowed in an organization. To use this endpoint, the organization permission policy for allowed_actions must be configured to selected. For more information, see \"Set GitHub Actions permissions for an organization.\"

\n

If the organization belongs to an enterprise that has selected actions set at the enterprise level, then you cannot override any of the enterprise's allowed actions settings.

\n

To use the patterns_allowed setting for private repositories, the organization must belong to an enterprise. If the organization does not belong to an enterprise, then the patterns_allowed setting only applies to public repositories in the organization.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -6066,13 +6066,13 @@ } ], "previews": [], + "descriptionHTML": "

Lists all secrets available in an organization without revealing their\nencrypted values.

\n

Authenticated users must have collaborator access to a repository to create, update, or read secrets.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. If the repository is private, the repo scope is also required.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Lists all secrets available in an organization without revealing their\nencrypted values.

\n

Authenticated users must have collaborator access to a repository to create, update, or read secrets.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. If the repository is private, the repo scope is also required.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -6174,13 +6174,13 @@ } ], "previews": [], + "descriptionHTML": "

Gets your public key, which you need to encrypt secrets. You need to\nencrypt a secret before you can create or update secrets.

\n

The authenticated user must have collaborator access to a repository to create, update, or read secrets.

\n

OAuth tokens and personal access tokens (classic) need theadmin:org scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Gets your public key, which you need to encrypt secrets. You need to\nencrypt a secret before you can create or update secrets.

\n

The authenticated user must have collaborator access to a repository to create, update, or read secrets.

\n

OAuth tokens and personal access tokens (classic) need theadmin:org scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -6499,13 +6499,13 @@ } ], "previews": [], + "descriptionHTML": "

Deletes a secret in an organization using the secret name.

\n

Authenticated users must have collaborator access to a repository to create, update, or read secrets.

\n

OAuth tokens and personal access tokens (classic) need theadmin:org scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Deletes a secret in an organization using the secret name.

\n

Authenticated users must have collaborator access to a repository to create, update, or read secrets.

\n

OAuth tokens and personal access tokens (classic) need theadmin:org scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -8716,13 +8716,13 @@ } ], "previews": [], + "descriptionHTML": "

Get the public key for an environment, which you need to encrypt environment\nsecrets. You need to encrypt a secret before you can create or update secrets.

\n

Anyone with read access to the repository can use this endpoint.

\n

If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Get the public key for an environment, which you need to encrypt environment\nsecrets. You need to encrypt a secret before you can create or update secrets.

\n

Anyone with read access to the repository can use this endpoint.

\n

If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -9562,13 +9562,13 @@ } ], "previews": [], + "descriptionHTML": "

Gets a specific self-hosted runner group for an enterprise.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Gets a specific self-hosted runner group for an enterprise.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -10007,13 +10007,13 @@ } ], "previews": [], + "descriptionHTML": "

Lists the organizations with access to a self-hosted runner group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Lists the organizations with access to a self-hosted runner group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -10152,13 +10152,13 @@ } ], "previews": [], + "descriptionHTML": "

Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -10461,13 +10461,13 @@ } ], "previews": [], + "descriptionHTML": "

Lists the self-hosted runners that are in a specific enterprise group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Lists the self-hosted runners that are in a specific enterprise group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -10676,13 +10676,13 @@ } ], "previews": [], + "descriptionHTML": "

Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -10882,13 +10882,13 @@ } ], "previews": [], + "descriptionHTML": "

Lists all self-hosted runner groups configured in an organization and inherited from an enterprise.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Lists all self-hosted runner groups configured in an organization and inherited from an enterprise.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -13704,13 +13704,13 @@ } ], "previews": [], + "descriptionHTML": "

Lists binaries for the runner application that you can download and run.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Lists binaries for the runner application that you can download and run.

\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -16058,13 +16058,13 @@ } ], "previews": [], + "descriptionHTML": "

Returns a token that you can pass to the config script to remove a self-hosted runner from an enterprise. The token expires after one hour.

\n

Example using remove token:

\n

To remove your self-hosted runner from an enterprise, replace TOKEN with the remove token provided by this\nendpoint.

\n
./config.sh remove --token TOKEN\n
\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "201", "description": "

Created

" } - ], - "descriptionHTML": "

Returns a token that you can pass to the config script to remove a self-hosted runner from an enterprise. The token expires after one hour.

\n

Example using remove token:

\n

To remove your self-hosted runner from an enterprise, replace TOKEN with the remove token provided by this\nendpoint.

\n
./config.sh remove --token TOKEN\n
\n

OAuth app tokens and personal access tokens (classic) need the manage_runners:enterprise scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -25062,13 +25062,13 @@ } ], "previews": [], + "descriptionHTML": "

Updates an organization variable that you can reference in a GitHub Actions workflow.

\n

Authenticated users must have collaborator access to a repository to create, update, or read variables.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. If the repository is private, the repo scope is also required.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Updates an organization variable that you can reference in a GitHub Actions workflow.

\n

Authenticated users must have collaborator access to a repository to create, update, or read variables.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. If the repository is private, the repo scope is also required.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -25126,13 +25126,13 @@ } ], "previews": [], + "descriptionHTML": "

Deletes an organization variable using the variable name.

\n

Authenticated users must have collaborator access to a repository to create, update, or read variables.

\n

OAuth tokens and personal access tokens (classic) need theadmin:org scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Deletes an organization variable using the variable name.

\n

Authenticated users must have collaborator access to a repository to create, update, or read variables.

\n

OAuth tokens and personal access tokens (classic) need theadmin:org scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -27465,13 +27465,13 @@ } ], "previews": [], + "descriptionHTML": "

Gets a specific variable in an environment.

\n

Authenticated users must have collaborator access to a repository to create, update, or read variables.

\n

OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Gets a specific variable in an environment.

\n

Authenticated users must have collaborator access to a repository to create, update, or read variables.

\n

OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -59256,13 +59256,13 @@ } ], "previews": [], + "descriptionHTML": "

Note

\n

\nThis API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.

\n
", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Note

\n

\nThis API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.

\n
" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -63057,13 +63057,13 @@ } ], "previews": [], + "descriptionHTML": "

If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. Optional: use the fine-grained token with following permission set to view private events: \"Events\" user permissions (read).

\n

Note

\n

\nThis API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.

\n
", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. Optional: use the fine-grained token with following permission set to view private events: \"Events\" user permissions (read).

\n

Note

\n

\nThis API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.

\n
" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -90962,13 +90962,13 @@ } ], "previews": [], + "descriptionHTML": "

Sets the announcement banner to display for the organization.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Sets the announcement banner to display for the organization.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -91016,13 +91016,13 @@ } ], "previews": [], + "descriptionHTML": "

Removes the announcement banner currently set for the organization.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Removes the announcement banner currently set for the organization.

" + ] } ] }, @@ -101373,6 +101373,7 @@ } ], "previews": [], + "descriptionHTML": "

Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to.

\n

You must use a JWT to access this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", @@ -101386,8 +101387,7 @@ "httpStatusCode": "404", "description": "

Resource not found

" } - ], - "descriptionHTML": "

Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to.

\n

You must use a JWT to access this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -143635,13 +143635,13 @@ } ], "previews": [], + "descriptionHTML": "

Lists check runs for a commit ref. The ref can be a SHA, branch name, or a tag name.

\n

Note

\n

\nThe endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests array.

\n
\n

If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the List check suites for a Git reference endpoint and provide the check_suite_id parameter to the List check runs in a check suite endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint on a private repository.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Lists check runs for a commit ref. The ref can be a SHA, branch name, or a tag name.

\n

Note

\n

\nThe endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests array.

\n
\n

If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the List check suites for a Git reference endpoint and provide the check_suite_id parameter to the List check runs in a check suite endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint on a private repository.

" + ] } ], "suites": [ @@ -193938,13 +193938,13 @@ } ], "previews": [], + "descriptionHTML": "

Deletes a secret in an organization using the secret name.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Deletes a secret in an organization using the secret name.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -200691,13 +200691,13 @@ } ], "previews": [], + "descriptionHTML": "

Deletes a deployment branch or tag policy for an environment.

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Deletes a deployment branch or tag policy for an environment.

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

" + ] } ], "environments": [ @@ -203674,13 +203674,13 @@ } ], "previews": [], + "descriptionHTML": "

Gets all custom deployment protection rule integrations that are available for an environment.

\n

The authenticated user must have admin or owner permissions to the repository to use this endpoint.

\n

For more information about environments, see \"Using environments for deployment.\"

\n

For more information about the app that is providing this custom deployment rule, see \"GET an app\".

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint with a private repository.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

A list of custom deployment rule integrations available for this environment.

" } - ], - "descriptionHTML": "

Gets all custom deployment protection rule integrations that are available for an environment.

\n

The authenticated user must have admin or owner permissions to the repository to use this endpoint.

\n

For more information about environments, see \"Using environments for deployment.\"

\n

For more information about the app that is providing this custom deployment rule, see \"GET an app\".

\n

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint with a private repository.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -209600,13 +209600,13 @@ } ], "previews": [], + "descriptionHTML": "

Gets the current message and expiration date of the global announcement banner in your enterprise.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Gets the current message and expiration date of the global announcement banner in your enterprise.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -210252,13 +210252,13 @@ } ], "previews": [], + "descriptionHTML": "

Retrieves the audit log streaming public key for encrypting secrets.

\n

When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See \"Encrypting secrets for the REST API.\"

", "statusCodes": [ { "httpStatusCode": "200", "description": "

The stream key for the audit log streaming configuration was retrieved successfully.

" } - ], - "descriptionHTML": "

Retrieves the audit log streaming public key for encrypting secrets.

\n

When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See \"Encrypting secrets for the REST API.\"

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -212898,13 +212898,13 @@ } ], "previews": [], + "descriptionHTML": "

Note that this API call does not automatically initiate an LDAP sync. Rather, if a 201 is returned, the sync job is queued successfully, and is performed when the instance is ready.

", "statusCodes": [ { "httpStatusCode": "201", "description": "

Created

" } - ], - "descriptionHTML": "

Note that this API call does not automatically initiate an LDAP sync. Rather, if a 201 is returned, the sync job is queued successfully, and is performed when the instance is ready.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -216535,13 +216535,13 @@ } ], "previews": [], + "descriptionHTML": "

Removes any overrides for this hook at the org level for this org.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Removes any overrides for this hook at the org level for this org.

" + ] } ], "orgs": [ @@ -218386,13 +218386,13 @@ } ], "previews": [], + "descriptionHTML": "", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -218578,13 +218578,13 @@ } ], "previews": [], + "descriptionHTML": "

List all pre-receive hooks that are enabled or testing for this repository as well as any disabled hooks that are allowed to be enabled at the repository level. Pre-receive hooks that are disabled at a higher level and are not configurable will not be listed.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

List all pre-receive hooks that are enabled or testing for this repository as well as any disabled hooks that are allowed to be enabled at the repository level. Pre-receive hooks that are disabled at a higher level and are not configurable will not be listed.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -218676,13 +218676,13 @@ } ], "previews": [], + "descriptionHTML": "", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -245715,6 +245715,7 @@ } ], "previews": [], + "descriptionHTML": "

List all templates available to pass as an option when creating a repository.

", "statusCodes": [ { "httpStatusCode": "200", @@ -245724,8 +245725,7 @@ "httpStatusCode": "304", "description": "

Not modified

" } - ], - "descriptionHTML": "

List all templates available to pass as an option when creating a repository.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -321563,6 +321563,7 @@ } ], "previews": [], + "descriptionHTML": "

You must send Markdown as plain text (using a Content-Type header of text/plain or text/x-markdown) to this endpoint, rather than using JSON format. In raw mode, GitHub Flavored Markdown is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.

", "statusCodes": [ { "httpStatusCode": "200", @@ -321572,8 +321573,7 @@ "httpStatusCode": "304", "description": "

Not modified

" } - ], - "descriptionHTML": "

You must send Markdown as plain text (using a Content-Type header of text/plain or text/x-markdown) to this endpoint, rather than using JSON format. In raw mode, GitHub Flavored Markdown is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.

" + ] } ] }, @@ -322060,13 +322060,13 @@ } ], "previews": [], + "descriptionHTML": "

Get the octocat as ASCII art

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Get the octocat as ASCII art

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -328668,6 +328668,7 @@ } ], "previews": [], + "descriptionHTML": "

List all the repositories for this organization migration.

", "statusCodes": [ { "httpStatusCode": "200", @@ -328677,8 +328678,7 @@ "httpStatusCode": "404", "description": "

Resource not found

" } - ], - "descriptionHTML": "

List all the repositories for this organization migration.

" + ] } ], "users": [ @@ -346978,13 +346978,13 @@ } ], "previews": [], + "descriptionHTML": "

Warning

\n

\nClosing down notice: This operation is closing down and will be removed in the future. Use the \"List custom repository roles\" endpoint instead.

\n
\n

List the custom repository roles available in this organization. For more information on custom repository roles, see \"About custom repository roles.\"

\n

The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org or repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

Response - list of custom role names

" } - ], - "descriptionHTML": "

Warning

\n

\nClosing down notice: This operation is closing down and will be removed in the future. Use the \"List custom repository roles\" endpoint instead.

\n
\n

List the custom repository roles available in this organization. For more information on custom repository roles, see \"About custom repository roles.\"

\n

The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org or repo scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -348019,6 +348019,7 @@ } ], "previews": [], + "descriptionHTML": "

Gets a custom repository role that is available to all repositories owned by the organization. For more information on custom repository roles, see \"About custom repository roles.\"

\n

The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org or repo scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "200", @@ -348028,8 +348029,7 @@ "httpStatusCode": "404", "description": "

Resource not found

" } - ], - "descriptionHTML": "

Gets a custom repository role that is available to all repositories owned by the organization. For more information on custom repository roles, see \"About custom repository roles.\"

\n

The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org or repo scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -348982,6 +348982,7 @@ } ], "previews": [], + "descriptionHTML": "

Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories.

", "statusCodes": [ { "httpStatusCode": "204", @@ -348991,8 +348992,7 @@ "httpStatusCode": "403", "description": "

Forbidden

" } - ], - "descriptionHTML": "

Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -350241,13 +350241,13 @@ } ], "previews": [], + "descriptionHTML": "

Members of an organization can choose to have their membership publicized or not.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Members of an organization can choose to have their membership publicized or not.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -353014,13 +353014,13 @@ } ], "previews": [], + "descriptionHTML": "

Revokes all assigned organization roles from a user. For more information on organization roles, see \"Using organization roles.\"

\n

The authenticated user must be an administrator for the organization to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Revokes all assigned organization roles from a user. For more information on organization roles, see \"Using organization roles.\"

\n

The authenticated user must be an administrator for the organization to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -367771,13 +367771,13 @@ } ], "previews": [], + "descriptionHTML": "

Returns the webhook configuration for an organization. To get more information about the webhook, including the active state and events, use \"Get an organization webhook .\"

\n

You must be an organization owner to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need admin:org_hook scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Returns the webhook configuration for an organization. To get more information about the webhook, including the active state and events, use \"Get an organization webhook .\"

\n

You must be an organization owner to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need admin:org_hook scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -367917,13 +367917,13 @@ } ], "previews": [], + "descriptionHTML": "

Updates the webhook configuration for an organization. To update more information about the webhook, including the active state and events, use \"Update an organization webhook .\"

\n

You must be an organization owner to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need admin:org_hook scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.

", "statusCodes": [ { "httpStatusCode": "200", "description": "

OK

" } - ], - "descriptionHTML": "

Updates the webhook configuration for an organization. To update more information about the webhook, including the active state and events, use \"Update an organization webhook .\"

\n

You must be an organization owner to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need admin:org_hook scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", @@ -445727,13 +445727,13 @@ } ], "previews": [], + "descriptionHTML": "

Users with push access to the repository can delete a release.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Users with push access to the repository can delete a release.

" + ] } ], "assets": [ @@ -489489,13 +489489,13 @@ } ], "previews": [], + "descriptionHTML": "

Disables Git LFS for a repository.

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Disables Git LFS for a repository.

\n

OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

" + ] } ], "rule-suites": [ @@ -529285,13 +529285,13 @@ } ], "previews": [], + "descriptionHTML": "

Warning

\n

\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.

\n
\n

If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.

", "statusCodes": [ { "httpStatusCode": "204", "description": "

No Content

" } - ], - "descriptionHTML": "

Warning

\n

\nEndpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.

\n
\n

If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.

" + ] }, { "serverUrl": "http(s)://HOSTNAME/api/v3", diff --git a/src/rest/data/ghes-3.17-2022-11-28/schema.json b/src/rest/data/ghes-3.17-2022-11-28/schema.json index 39ae8fff633d..92e562728ba9 100644 --- a/src/rest/data/ghes-3.17-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.17-2022-11-28/schema.json @@ -109423,7 +109423,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "

The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.

", + "description": "

The security product to get GitHub Advanced Security active committers for.

\n

For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.

", "required": false, "schema": { "type": "string", @@ -212292,7 +212292,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "

The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.

", + "description": "

The security product to get GitHub Advanced Security active committers for.

\n

For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.

", "required": false, "schema": { "type": "string", diff --git a/src/rest/lib/config.json b/src/rest/lib/config.json index 4795049b3e7f..97a6bf64a080 100644 --- a/src/rest/lib/config.json +++ b/src/rest/lib/config.json @@ -47,5 +47,5 @@ ] } }, - "sha": "31cc3f663aaf18c192fbccf6ea5d574ef40dbb20" + "sha": "bf4af7c248a68067f570e103053a01b1c9725a92" } \ No newline at end of file diff --git a/src/rest/pages/category.tsx b/src/rest/pages/category.tsx index e6750c506393..f20deffb508f 100644 --- a/src/rest/pages/category.tsx +++ b/src/rest/pages/category.tsx @@ -1,25 +1,25 @@ import { GetServerSideProps } from 'next' -import { Operation } from 'src/rest/components/types' -import { RestReferencePage } from 'src/rest/components/RestReferencePage' +import { Operation } from '@/rest/components/types' +import { RestReferencePage } from '@/rest/components/RestReferencePage' import { addUINamespaces, getMainContext, MainContext, MainContextT, -} from 'src/frame/components/context/MainContext' +} from '@/frame/components/context/MainContext' import { AutomatedPageContext, AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import type { MiniTocItem } from 'src/frame/components/context/ArticleContext' +} from '@/automated-pipelines/components/AutomatedPageContext' +import type { MiniTocItem } from '@/frame/components/context/ArticleContext' import { getTocLandingContextFromRequest, TocItem, TocLandingContext, TocLandingContextT, -} from 'src/frame/components/context/TocLandingContext' -import { TocLanding } from 'src/landings/components/TocLanding' +} from '@/frame/components/context/TocLandingContext' +import { TocLanding } from '@/landings/components/TocLanding' type MinitocItemsT = { restOperationsMiniTocItems: MiniTocItem[] @@ -60,7 +60,7 @@ export default function Category({ } export const getServerSideProps: GetServerSideProps = async (context) => { - const { default: getRest, getRestMiniTocItems } = await import('src/rest/lib/index.js') + const { default: getRest, getRestMiniTocItems } = await import('@/rest/lib/index.js') const nonEnterpriseDefaultVersionModule = await import( 'src/versions/lib/non-enterprise-default-version.js' ) diff --git a/src/rest/pages/subcategory.tsx b/src/rest/pages/subcategory.tsx index 85994a8d623c..6bb9e8439080 100644 --- a/src/rest/pages/subcategory.tsx +++ b/src/rest/pages/subcategory.tsx @@ -1,18 +1,18 @@ import { GetServerSideProps } from 'next' -import { Operation } from 'src/rest/components/types' -import { RestReferencePage } from 'src/rest/components/RestReferencePage' +import { Operation } from '@/rest/components/types' +import { RestReferencePage } from '@/rest/components/RestReferencePage' import { addUINamespaces, getMainContext, MainContext, MainContextT, -} from 'src/frame/components/context/MainContext' +} from '@/frame/components/context/MainContext' import { AutomatedPageContext, AutomatedPageContextT, getAutomatedPageContextFromRequest, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import type { MiniTocItem } from 'src/frame/components/context/ArticleContext' +} from '@/automated-pipelines/components/AutomatedPageContext' +import type { MiniTocItem } from '@/frame/components/context/ArticleContext' type MinitocItemsT = { restOperationsMiniTocItems: MiniTocItem[] @@ -35,7 +35,7 @@ export default function SubCategory({ mainContext, automatedPageContext, restOpe } export const getServerSideProps: GetServerSideProps = async (context) => { - const { default: getRest, getRestMiniTocItems } = await import('src/rest/lib/index.js') + const { default: getRest, getRestMiniTocItems } = await import('@/rest/lib/index.js') const req = context.req as any const res = context.res as any diff --git a/src/rest/tests/get-schema-files.ts b/src/rest/tests/get-schema-files.ts index 984aac696ba2..7633754292a3 100644 --- a/src/rest/tests/get-schema-files.ts +++ b/src/rest/tests/get-schema-files.ts @@ -1,7 +1,7 @@ import { describe, expect, test } from 'vitest' import { getOpenApiSchemaFiles } from '../scripts/utils/sync' -import { allVersions } from '#src/versions/lib/all-versions.js' +import { allVersions } from '@/versions/lib/all-versions.js' const supportedReleases = Object.keys(allVersions).map( (version) => allVersions[version].openApiVersionName, diff --git a/src/search/components/helpers/execute-search-actions.ts b/src/search/components/helpers/execute-search-actions.ts index 8c746101dc51..5d7dffa4da4c 100644 --- a/src/search/components/helpers/execute-search-actions.ts +++ b/src/search/components/helpers/execute-search-actions.ts @@ -2,7 +2,7 @@ import { EventType } from '@/events/types' import { CombinedSearchResponse } from '@/search/types' import { DEFAULT_VERSION } from '@/versions/components/useVersion' import { NextRouter } from 'next/router' -import { sendEvent } from 'src/events/components/events' +import { sendEvent } from '@/events/components/events' import { SEARCH_OVERLAY_EVENT_GROUP } from '@/events/components/event-groups' // Search context values for identifying each search event diff --git a/src/search/components/input/OldSearchInput.tsx b/src/search/components/input/OldSearchInput.tsx index 9c9d32cc6585..3ea8b941c0eb 100644 --- a/src/search/components/input/OldSearchInput.tsx +++ b/src/search/components/input/OldSearchInput.tsx @@ -3,12 +3,12 @@ import { useRouter } from 'next/router' import { IconButton, TextInput } from '@primer/react' import { SearchIcon } from '@primer/octicons-react' -import { useTranslation } from 'src/languages/components/useTranslation' -import { DEFAULT_VERSION, useVersion } from 'src/versions/components/useVersion' -import { useQuery } from 'src/search/components/hooks/useQuery' -import { useMinWidthBreakpoint } from 'src/search/components/hooks/useBreakpoint' -import { sendEvent } from 'src/events/components/events' -import { EventType } from 'src/events/types' +import { useTranslation } from '@/languages/components/useTranslation' +import { DEFAULT_VERSION, useVersion } from '@/versions/components/useVersion' +import { useQuery } from '@/search/components/hooks/useQuery' +import { useMinWidthBreakpoint } from '@/search/components/hooks/useBreakpoint' +import { sendEvent } from '@/events/components/events' +import { EventType } from '@/events/types' import { GENERAL_SEARCH_CONTEXT } from '../helpers/execute-search-actions' type Props = { isSearchOpen: boolean } diff --git a/src/search/components/input/SearchBarButton.tsx b/src/search/components/input/SearchBarButton.tsx index eef75d1c29d9..43a6aa56f8bf 100644 --- a/src/search/components/input/SearchBarButton.tsx +++ b/src/search/components/input/SearchBarButton.tsx @@ -2,7 +2,7 @@ import cx from 'classnames' import { IconButton } from '@primer/react' import { CopilotIcon, SearchIcon } from '@primer/octicons-react' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import { QueryParams } from '@/search/components/hooks/useMultiQueryParams' import { useCTAPopoverContext } from '@/frame/components/context/CTAContext' diff --git a/src/search/components/input/SearchOverlay.tsx b/src/search/components/input/SearchOverlay.tsx index 939776917b83..523c2779e3d0 100644 --- a/src/search/components/input/SearchOverlay.tsx +++ b/src/search/components/input/SearchOverlay.tsx @@ -25,8 +25,8 @@ import { } from '@primer/octicons-react' import { focusTrap } from '@primer/behaviors' -import { useTranslation } from 'src/languages/components/useTranslation' -import { useVersion } from 'src/versions/components/useVersion' +import { useTranslation } from '@/languages/components/useTranslation' +import { useVersion } from '@/versions/components/useVersion' import { AI_SEARCH_CONTEXT, executeGeneralSearch, diff --git a/src/search/components/results/Aggregations.tsx b/src/search/components/results/Aggregations.tsx index 415acbde5e58..0520e1ed3220 100644 --- a/src/search/components/results/Aggregations.tsx +++ b/src/search/components/results/Aggregations.tsx @@ -2,9 +2,9 @@ import { CheckboxGroup, Checkbox, FormControl } from '@primer/react' import { useRouter } from 'next/router' import Link from 'next/link' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' -import type { SearchResultAggregations } from 'src/search/types' +import type { SearchResultAggregations } from '@/search/types' type Props = { aggregations: SearchResultAggregations diff --git a/src/search/components/results/NoQuery.tsx b/src/search/components/results/NoQuery.tsx index e3e121560395..6f4b5c1a84a6 100644 --- a/src/search/components/results/NoQuery.tsx +++ b/src/search/components/results/NoQuery.tsx @@ -1,7 +1,7 @@ import { Heading, Flash } from '@primer/react' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useMainContext } from '@/frame/components/context/MainContext' +import { useTranslation } from '@/languages/components/useTranslation' export function NoQuery() { const { t } = useTranslation('old_search') diff --git a/src/search/components/results/SearchResults.tsx b/src/search/components/results/SearchResults.tsx index b3cf1763412d..9cac096f17be 100644 --- a/src/search/components/results/SearchResults.tsx +++ b/src/search/components/results/SearchResults.tsx @@ -4,15 +4,15 @@ import { useRouter } from 'next/router' import { useEffect, useRef, useState } from 'react' import cx from 'classnames' -import { useTranslation } from 'src/languages/components/useTranslation' -import { Link } from 'src/frame/components/Link' -import { sendEvent, uuidv4 } from 'src/events/components/events' -import { EventType } from 'src/events/types' +import { useTranslation } from '@/languages/components/useTranslation' +import { Link } from '@/frame/components/Link' +import { sendEvent, uuidv4 } from '@/events/components/events' +import { EventType } from '@/events/types' import styles from './SearchResults.module.scss' -import type { SearchQueryContentT } from 'src/search/components/types' -import type { GeneralSearchHitWithoutIncludes, GeneralSearchResponse } from 'src/search/types' +import type { SearchQueryContentT } from '@/search/components/types' +import type { GeneralSearchHitWithoutIncludes, GeneralSearchResponse } from '@/search/types' import type { SearchTotalHits } from '@elastic/elasticsearch/lib/api/types' import { GENERAL_SEARCH_RESULTS } from '@/events/components/event-groups' diff --git a/src/search/components/results/ValidationErrors.tsx b/src/search/components/results/ValidationErrors.tsx index 75f9e6b74bf7..bf6c928ba8c8 100644 --- a/src/search/components/results/ValidationErrors.tsx +++ b/src/search/components/results/ValidationErrors.tsx @@ -1,6 +1,6 @@ import { Flash } from '@primer/react' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useTranslation } from '@/languages/components/useTranslation' import type { SearchValidationErrorEntry } from '../../types' interface Props { diff --git a/src/search/components/results/index.tsx b/src/search/components/results/index.tsx index 242dfa78187c..7359038c6ec7 100644 --- a/src/search/components/results/index.tsx +++ b/src/search/components/results/index.tsx @@ -1,14 +1,14 @@ import Head from 'next/head' import { Heading } from '@primer/react' -import { useTranslation } from 'src/languages/components/useTranslation' -import { DEFAULT_VERSION, useVersion } from 'src/versions/components/useVersion' -import { useNumberFormatter } from 'src/search/components/hooks/useNumberFormatter' -import { SearchResults } from 'src/search/components/results/SearchResults' -import { NoQuery } from 'src/search/components/results/NoQuery' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { ValidationErrors } from 'src/search/components/results/ValidationErrors' -import { useSearchContext } from 'src/search/components/context/SearchContext' +import { useTranslation } from '@/languages/components/useTranslation' +import { DEFAULT_VERSION, useVersion } from '@/versions/components/useVersion' +import { useNumberFormatter } from '@/search/components/hooks/useNumberFormatter' +import { SearchResults } from '@/search/components/results/SearchResults' +import { NoQuery } from '@/search/components/results/NoQuery' +import { useMainContext } from '@/frame/components/context/MainContext' +import { ValidationErrors } from '@/search/components/results/ValidationErrors' +import { useSearchContext } from '@/search/components/context/SearchContext' import type { SearchTotalHits } from '@elastic/elasticsearch/lib/api/types' export function Search() { diff --git a/src/search/components/types.ts b/src/search/components/types.ts index 3a56c685849b..be20112d1de5 100644 --- a/src/search/components/types.ts +++ b/src/search/components/types.ts @@ -1,4 +1,4 @@ -import { GeneralSearchResponse, SearchValidationErrorEntry } from 'src/search/types' +import { GeneralSearchResponse, SearchValidationErrorEntry } from '@/search/types' export interface SearchContextT { search: { diff --git a/src/search/middleware/ai-search.ts b/src/search/middleware/ai-search.ts index 1b2416f140fc..639e5f6c8f3f 100644 --- a/src/search/middleware/ai-search.ts +++ b/src/search/middleware/ai-search.ts @@ -1,8 +1,8 @@ import express, { Request, Response } from 'express' -import catchMiddlewareError from '#src/observability/middleware/catch-middleware-error.js' +import catchMiddlewareError from '@/observability/middleware/catch-middleware-error.js' import { aiSearchProxy } from '../lib/ai-search-proxy' -import { noCacheControl } from '#src/frame/middleware/cache-control.js' +import { noCacheControl } from '@/frame/middleware/cache-control.js' const router = express.Router() diff --git a/src/search/pages/search-results.tsx b/src/search/pages/search-results.tsx index a043ad3dc86a..70fa8350021a 100644 --- a/src/search/pages/search-results.tsx +++ b/src/search/pages/search-results.tsx @@ -5,12 +5,12 @@ import { MainContext, getMainContext, addUINamespaces, -} from 'src/frame/components/context/MainContext' -import { DefaultLayout } from 'src/frame/components/DefaultLayout' -import { SearchContext } from 'src/search/components/context/SearchContext' -import { Search } from 'src/search/components/results/index' -import { SearchOnReqObject } from 'src/search/types' -import type { SearchContextT } from 'src/search/components/types' +} from '@/frame/components/context/MainContext' +import { DefaultLayout } from '@/frame/components/DefaultLayout' +import { SearchContext } from '@/search/components/context/SearchContext' +import { Search } from '@/search/components/results/index' +import { SearchOnReqObject } from '@/search/types' +import type { SearchContextT } from '@/search/components/types' type Props = { mainContext: MainContextT diff --git a/src/search/scripts/index/lib/index-general-search.ts b/src/search/scripts/index/lib/index-general-search.ts index c5d00b0b3540..eca5b82e31c9 100644 --- a/src/search/scripts/index/lib/index-general-search.ts +++ b/src/search/scripts/index/lib/index-general-search.ts @@ -1,6 +1,6 @@ import { Client } from '@elastic/elasticsearch' -import { languageKeys } from '#src/languages/lib/languages.js' +import { languageKeys } from '@/languages/lib/languages.js' import { getElasticSearchIndex } from '@/search/lib/elasticsearch-indexes' import { getElasticsearchClient } from '@/search/lib/helpers/get-client' import { diff --git a/src/search/tests/api-ai-search.ts b/src/search/tests/api-ai-search.ts index faba979a138a..8a0d3c04272b 100644 --- a/src/search/tests/api-ai-search.ts +++ b/src/search/tests/api-ai-search.ts @@ -1,6 +1,6 @@ import { expect, test, describe, beforeAll, afterAll } from 'vitest' -import { post } from 'src/tests/helpers/e2etest.js' +import { post } from '@/tests/helpers/e2etest.js' import { startMockServer, stopMockServer } from '@/tests/mocks/start-mock-server' describe('AI Search Routes', () => { diff --git a/src/secret-scanning/data/public-docs-schema.ts b/src/secret-scanning/data/public-docs-schema.ts index 7c0e027a7ccd..9919f28fcda2 100644 --- a/src/secret-scanning/data/public-docs-schema.ts +++ b/src/secret-scanning/data/public-docs-schema.ts @@ -1,4 +1,4 @@ -import { schema } from '#src/frame/lib/frontmatter.js' +import { schema } from '@/frame/lib/frontmatter.js' // Secret scanning entries have `versions` blocks that match `versions` frontmatter, // so we can import that part of the FM schema. diff --git a/src/secret-scanning/tests/rendering.ts b/src/secret-scanning/tests/rendering.ts index c6ab1ff25f85..cd37b48f959f 100644 --- a/src/secret-scanning/tests/rendering.ts +++ b/src/secret-scanning/tests/rendering.ts @@ -1,7 +1,7 @@ import { describe, expect, test } from 'vitest' import { readFileSync } from 'fs' -import { get } from '#src/tests/helpers/e2etest.js' +import { get } from '@/tests/helpers/e2etest.js' interface ConfigFile { targetFilename: string diff --git a/src/tests/vitest.setup.ts b/src/tests/vitest.setup.ts index 3e7ce07708d4..8dc253d6e24e 100644 --- a/src/tests/vitest.setup.ts +++ b/src/tests/vitest.setup.ts @@ -1,4 +1,4 @@ -import { main } from 'src/frame/start-server' +import { main } from '@/frame/start-server' import { overrideEnvForTesting } from './mocks/start-mock-server' let teardownHappened = false diff --git a/src/tools/components/Fields.tsx b/src/tools/components/Fields.tsx index b589907ed476..7e727fa2335d 100644 --- a/src/tools/components/Fields.tsx +++ b/src/tools/components/Fields.tsx @@ -2,7 +2,7 @@ import { ReactNode } from 'react' import { ActionList } from '@primer/react' import { PickerItem } from './Picker' -import { Link } from 'src/frame/components/Link' +import { Link } from '@/frame/components/Link' import styles from './Fields.module.scss' diff --git a/src/tools/components/InArticlePicker.tsx b/src/tools/components/InArticlePicker.tsx index c44b255e4301..495d54d7fcec 100644 --- a/src/tools/components/InArticlePicker.tsx +++ b/src/tools/components/InArticlePicker.tsx @@ -1,8 +1,8 @@ import { useEffect, useState } from 'react' -import Cookies from 'src/frame/components/lib/cookies' +import Cookies from '@/frame/components/lib/cookies' import { UnderlineNav } from '@primer/react' -import { sendEvent } from 'src/events/components/events' -import { EventType } from 'src/events/types' +import { sendEvent } from '@/events/components/events' +import { EventType } from '@/events/types' import { useRouter } from 'next/router' type Option = { diff --git a/src/tools/components/PlatformPicker.tsx b/src/tools/components/PlatformPicker.tsx index c6afa31c4179..c2d427fdd8fd 100644 --- a/src/tools/components/PlatformPicker.tsx +++ b/src/tools/components/PlatformPicker.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react' -import { useArticleContext } from 'src/frame/components/context/ArticleContext' -import { parseUserAgent } from 'src/events/components/user-agent' +import { useArticleContext } from '@/frame/components/context/ArticleContext' +import { parseUserAgent } from '@/events/components/user-agent' import { InArticlePicker } from './InArticlePicker' const platformQueryKey = 'platform' diff --git a/src/tools/components/ToolPicker.tsx b/src/tools/components/ToolPicker.tsx index ec001df0da07..df023209f96c 100644 --- a/src/tools/components/ToolPicker.tsx +++ b/src/tools/components/ToolPicker.tsx @@ -1,6 +1,6 @@ import { preserveAnchorNodePosition } from 'scroll-anchoring' -import { useArticleContext } from 'src/frame/components/context/ArticleContext' +import { useArticleContext } from '@/frame/components/context/ArticleContext' import { InArticlePicker } from './InArticlePicker' // example: http://localhost:4000/en/codespaces/developing-in-codespaces/creating-a-codespace diff --git a/src/versions/components/DeprecationBanner.tsx b/src/versions/components/DeprecationBanner.tsx index f47f37ea66ce..ed989fb15344 100644 --- a/src/versions/components/DeprecationBanner.tsx +++ b/src/versions/components/DeprecationBanner.tsx @@ -1,6 +1,6 @@ -import type { EnterpriseDeprecation } from 'src/frame/components/context/MainContext' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { useVersion } from 'src/versions/components/useVersion' +import type { EnterpriseDeprecation } from '@/frame/components/context/MainContext' +import { useMainContext } from '@/frame/components/context/MainContext' +import { useVersion } from '@/versions/components/useVersion' import { Flash } from '@primer/react' import cx from 'classnames' diff --git a/src/versions/components/VersionPicker.tsx b/src/versions/components/VersionPicker.tsx index bb6ef29e2abc..921b1dde45f9 100644 --- a/src/versions/components/VersionPicker.tsx +++ b/src/versions/components/VersionPicker.tsx @@ -1,10 +1,10 @@ import { useRouter } from 'next/router' import { ArrowRightIcon, InfoIcon } from '@primer/octicons-react' -import { useMainContext } from 'src/frame/components/context/MainContext' -import { DEFAULT_VERSION, useVersion } from 'src/versions/components/useVersion' -import { useTranslation } from 'src/languages/components/useTranslation' -import { Picker } from 'src/tools/components/Picker' +import { useMainContext } from '@/frame/components/context/MainContext' +import { DEFAULT_VERSION, useVersion } from '@/versions/components/useVersion' +import { useTranslation } from '@/languages/components/useTranslation' +import { Picker } from '@/tools/components/Picker' import styles from './VersionPicker.module.scss' diff --git a/src/versions/lib/enterprise-server-releases.js b/src/versions/lib/enterprise-server-releases.js index a27a31340cc6..82ee7930fd00 100644 --- a/src/versions/lib/enterprise-server-releases.js +++ b/src/versions/lib/enterprise-server-releases.js @@ -15,7 +15,7 @@ export const nextNext = '3.19' export const supported = ['3.17', '3.16', '3.15', '3.14', '3.13'] // Edit this to `null` when it's no longer the release candidate -export const releaseCandidate = '3.17' +export const releaseCandidate = null // Ensure that: // "next" is ahead of "latest" by one minor or major release. diff --git a/src/webhooks/components/Webhook.tsx b/src/webhooks/components/Webhook.tsx index 0d58241e3c01..e4fb4ac3a5c9 100644 --- a/src/webhooks/components/Webhook.tsx +++ b/src/webhooks/components/Webhook.tsx @@ -5,11 +5,11 @@ import { useRouter } from 'next/router' import { slug } from 'github-slugger' import cx from 'classnames' -import { useVersion } from 'src/versions/components/useVersion' -import { HeadingLink } from 'src/frame/components/article/HeadingLink' -import { useTranslation } from 'src/languages/components/useTranslation' +import { useVersion } from '@/versions/components/useVersion' +import { HeadingLink } from '@/frame/components/article/HeadingLink' +import { useTranslation } from '@/languages/components/useTranslation' import type { WebhookAction, WebhookData } from './types' -import { ParameterTable } from 'src/automated-pipelines/components/parameter-table/ParameterTable' +import { ParameterTable } from '@/automated-pipelines/components/parameter-table/ParameterTable' import styles from './WebhookPayloadExample.module.scss' diff --git a/src/webhooks/components/types.ts b/src/webhooks/components/types.ts index af0bf766d9a7..70cf3536891f 100644 --- a/src/webhooks/components/types.ts +++ b/src/webhooks/components/types.ts @@ -1,4 +1,4 @@ -import { Parameter, StatusCode, CodeSample, BodyParameter } from 'src/rest/components/types' +import { Parameter, StatusCode, CodeSample, BodyParameter } from '@/rest/components/types' export interface WebhookT { actions: string[] diff --git a/src/webhooks/lib/config.json b/src/webhooks/lib/config.json index d7e01befb2da..3fe50bfb269b 100644 --- a/src/webhooks/lib/config.json +++ b/src/webhooks/lib/config.json @@ -1,3 +1,3 @@ { - "sha": "31cc3f663aaf18c192fbccf6ea5d574ef40dbb20" + "sha": "bf4af7c248a68067f570e103053a01b1c9725a92" } \ No newline at end of file diff --git a/src/webhooks/lib/index.ts b/src/webhooks/lib/index.ts index a63472e2e77e..89e219628a9c 100644 --- a/src/webhooks/lib/index.ts +++ b/src/webhooks/lib/index.ts @@ -1,7 +1,7 @@ import path from 'path' -import { getOpenApiVersion } from '#src/versions/lib/all-versions.js' -import { readCompressedJsonFileFallback } from '#src/frame/lib/read-json-file.js' +import { getOpenApiVersion } from '@/versions/lib/all-versions.js' +import { readCompressedJsonFileFallback } from '@/frame/lib/read-json-file.js' export const WEBHOOK_DATA_DIR = 'src/webhooks/data' export const WEBHOOK_SCHEMA_FILENAME = 'schema.json' diff --git a/src/webhooks/middleware/webhooks.ts b/src/webhooks/middleware/webhooks.ts index bbfe377f0f52..02998ffa801e 100644 --- a/src/webhooks/middleware/webhooks.ts +++ b/src/webhooks/middleware/webhooks.ts @@ -1,7 +1,7 @@ import express from 'express' import { getWebhook } from '../lib/index.js' -import { allVersions } from '#src/versions/lib/all-versions.js' -import { defaultCacheControl } from '#src/frame/middleware/cache-control.js' +import { allVersions } from '@/versions/lib/all-versions.js' +import { defaultCacheControl } from '@/frame/middleware/cache-control.js' const router = express.Router() diff --git a/src/webhooks/pages/webhook-events-and-payloads.tsx b/src/webhooks/pages/webhook-events-and-payloads.tsx index dfb33013d8d7..caf2d19653aa 100644 --- a/src/webhooks/pages/webhook-events-and-payloads.tsx +++ b/src/webhooks/pages/webhook-events-and-payloads.tsx @@ -7,15 +7,15 @@ import { getMainContext, MainContext, MainContextT, -} from 'src/frame/components/context/MainContext' +} from '@/frame/components/context/MainContext' import { getAutomatedPageContextFromRequest, AutomatedPageContext, AutomatedPageContextT, -} from 'src/automated-pipelines/components/AutomatedPageContext' -import { WebhookAction } from 'src/webhooks/components/types' -import { Webhook } from 'src/webhooks/components/Webhook' -import { AutomatedPage } from 'src/automated-pipelines/components/AutomatedPage' +} from '@/automated-pipelines/components/AutomatedPageContext' +import { WebhookAction } from '@/webhooks/components/types' +import { Webhook } from '@/webhooks/components/Webhook' +import { AutomatedPage } from '@/automated-pipelines/components/AutomatedPage' type Props = { mainContext: MainContextT @@ -75,8 +75,8 @@ export default function WebhooksEventsAndPayloads({ } export const getServerSideProps: GetServerSideProps = async (context) => { - const { getInitialPageWebhooks } = await import('src/webhooks/lib') - const { getAutomatedPageMiniTocItems } = await import('src/frame/lib/get-mini-toc-items') + const { getInitialPageWebhooks } = await import('@/webhooks/lib') + const { getAutomatedPageMiniTocItems } = await import('@/frame/lib/get-mini-toc-items') const req = context.req as object const res = context.res as object diff --git a/src/webhooks/tests/api.ts b/src/webhooks/tests/api.ts index 7e8704cd0cfc..41a977cedeeb 100644 --- a/src/webhooks/tests/api.ts +++ b/src/webhooks/tests/api.ts @@ -1,10 +1,10 @@ import { describe, expect, test } from 'vitest' -import { get } from '#src/tests/helpers/e2etest.js' +import { get } from '@/tests/helpers/e2etest.js' import { SURROGATE_ENUMS, makeLanguageSurrogateKey, -} from '#src/frame/middleware/set-fastly-surrogate-key.js' +} from '@/frame/middleware/set-fastly-surrogate-key.js' describe('webhooks v1 middleware', () => { test('basic get webhook', async () => { diff --git a/src/webhooks/tests/get-schema-files.ts b/src/webhooks/tests/get-schema-files.ts index 06f09174a400..117f53a2d2eb 100644 --- a/src/webhooks/tests/get-schema-files.ts +++ b/src/webhooks/tests/get-schema-files.ts @@ -1,7 +1,7 @@ import { describe, expect, test } from 'vitest' import { getOpenApiSchemaFiles } from '../../rest/scripts/utils/sync' -import { allVersions } from '#src/versions/lib/all-versions.js' +import { allVersions } from '@/versions/lib/all-versions.js' describe('webhook data files are generated correctly from dereferenced openapi files', () => { test('webhook schema list should not include calendar date versions', async () => { diff --git a/src/webhooks/tests/rendering.ts b/src/webhooks/tests/rendering.ts index 4ab5ab1dc0a4..1a7fd506cb31 100644 --- a/src/webhooks/tests/rendering.ts +++ b/src/webhooks/tests/rendering.ts @@ -1,7 +1,7 @@ import { describe, expect, test, vi } from 'vitest' -import { getDOM } from '#src/tests/helpers/e2etest.js' -import { allVersions } from '#src/versions/lib/all-versions.js' +import { getDOM } from '@/tests/helpers/e2etest.js' +import { allVersions } from '@/versions/lib/all-versions.js' import { getWebhooks } from '../lib/index.js' describe('webhooks events and payloads', () => { diff --git a/src/workflows/delete-orphan-translation-files.ts b/src/workflows/delete-orphan-translation-files.ts index 0c20496bb4e8..7e6c2643c4aa 100644 --- a/src/workflows/delete-orphan-translation-files.ts +++ b/src/workflows/delete-orphan-translation-files.ts @@ -22,8 +22,8 @@ import fs from 'fs' import path from 'path' import { program } from 'commander' -import walkFiles from 'src/workflows/walk-files' -import { ROOT } from 'src/frame/lib/constants.js' +import walkFiles from '@/workflows/walk-files' +import { ROOT } from '@/frame/lib/constants.js' program .description('Delete orphan translation files')