Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

15 changes: 15 additions & 0 deletions packages/@react-native-windows/cli/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@react-native-windows/cli",
"entries": [
{
"date": "Sat, 07 Mar 2026 00:07:43 GMT",
"version": "0.74.12",
"tag": "@react-native-windows/cli_v0.74.12",
"comments": {
"none": [
{
"author": "yicyao@microsoft.com",
"package": "@react-native-windows/cli",
"commit": "d3ed6d4a5e4e632c3cbbb0d912e07f6bf9fe20d2",
"comment": "Scope various foo and bar test package to rnw-scripts.\""
}
]
}
},
{
"date": "Mon, 22 Sep 2025 15:31:50 GMT",
"version": "0.74.12",
Expand Down
15 changes: 15 additions & 0 deletions packages/@react-native-windows/telemetry/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@react-native-windows/telemetry",
"entries": [
{
"date": "Sat, 07 Mar 2026 00:07:43 GMT",
"version": "0.74.2",
"tag": "@react-native-windows/telemetry_v0.74.2",
"comments": {
"none": [
{
"author": "yicyao@microsoft.com",
"package": "@react-native-windows/telemetry",
"commit": "d3ed6d4a5e4e632c3cbbb0d912e07f6bf9fe20d2",
"comment": "Fix telemetry test."
}
]
}
},
{
"date": "Mon, 02 Sep 2024 15:14:36 GMT",
"version": "0.74.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Beachball change file detection and version bump invocation.
*
* @format
*/
/**
* Check whether there are pending beachball change files in the repo.
*
* Beachball stores change files as JSON in the `change/` directory at the
* repo root. If there are any .json files there, there are pending changes.
*/
export declare function hasChangeFiles(repoRoot: string): boolean;
/**
* Run beachball bump to consume change files and update versions/changelogs.
*
* Invokes: npx beachball bump --branch <remote>/<target> --yes --verbose
*
* The --yes flag suppresses prompts.
* The --verbose flag provides detailed output.
* The --branch flag tells beachball the baseline branch to diff against.
*/
export declare function bumpVersions(opts: {
targetBranch: string;
remote: string;
cwd: string;
}): Promise<void>;

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

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

54 changes: 54 additions & 0 deletions packages/@rnw-scripts/prepare-release/lib-commonjs/git.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/**
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Git operations module. Provides a typed wrapper around git CLI commands.
* Simplified from fork-sync/src/modules/git.ts.
*
* @format
*/
/**
* Typed wrapper around a git repository directory.
* All methods execute git commands with cwd set to the wrapped directory.
*/
export declare class GitRepo {
readonly dir: string;
constructor(dir: string);
/** Fetch from a remote. */
fetch(remote: string): Promise<void>;
/** Checkout an existing ref (branch, tag, or commit). */
checkout(ref: string): Promise<void>;
/**
* Create or reset a branch to a start point.
* Uses `git checkout -B` which creates the branch if it doesn't exist,
* or resets it if it does.
*/
checkoutNewBranch(name: string, startPoint?: string): Promise<void>;
/** Stage all changes (git add --all). */
stageAll(): Promise<void>;
/** Create a commit with the given message. */
commit(message: string): Promise<void>;
/** Push a branch to a remote, optionally with --force. */
push(remote: string, branch: string, opts?: {
force?: boolean;
}): Promise<void>;
/** Resolve a ref to its SHA (git rev-parse). */
revParse(ref: string): Promise<string>;
/** Get the current branch name, or 'HEAD' if in detached state. */
currentBranch(): Promise<string>;
/** Check for uncommitted changes (git status --porcelain). */
statusPorcelain(pathspec?: string): Promise<string>;
/** List all remotes with their URLs (git remote -v). */
remoteList(): Promise<string>;
/** Git log with format and optional range. */
log(opts: {
format: string;
range?: string;
}): Promise<string>;
/** Get file names changed between two refs, optionally filtered by path. */
diffNameOnly(ref1: string, ref2?: string, pathspec?: string): Promise<string>;
/** Check if a branch exists on a remote. Returns the ls-remote output or empty. */
lsRemote(remote: string, branch: string): Promise<string>;
/** Internal helper: run git with the repo's cwd. */
private git;
}
107 changes: 107 additions & 0 deletions packages/@rnw-scripts/prepare-release/lib-commonjs/git.js

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

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

48 changes: 48 additions & 0 deletions packages/@rnw-scripts/prepare-release/lib-commonjs/github.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* GitHub operations via the gh CLI.
*
* @format
*/
export interface PRInfo {
number: number;
url: string;
}
/**
* Find an existing open PR by head branch name.
* Returns null if no matching PR exists.
*/
export declare function findPR(opts: {
head: string;
cwd: string;
repo?: string;
}): Promise<PRInfo | null>;
/**
* Create a new pull request. Returns the PR number and URL.
*
* Uses --body-file with a temp file to avoid shell escaping issues
* with multiline markdown content on Windows cmd.exe.
*/
export declare function createPR(opts: {
head: string;
base: string;
title: string;
body: string;
cwd: string;
repo?: string;
}): Promise<PRInfo>;
/**
* Update an existing pull request's body text.
*
* Uses --body-file with a temp file to avoid shell escaping issues
* with multiline markdown content on Windows cmd.exe.
*/
export declare function updatePR(opts: {
number: number;
title: string;
body: string;
cwd: string;
repo?: string;
}): Promise<void>;
Loading
Loading