Skip to content

Add changesets check action for missing changesets#1559

Merged
chainchad merged 11 commits into
mainfrom
dx-4236/changesets-check-action
May 19, 2026
Merged

Add changesets check action for missing changesets#1559
chainchad merged 11 commits into
mainfrom
dx-4236/changesets-check-action

Conversation

@chainchad
Copy link
Copy Markdown
Collaborator

  • Create initial action for Changesets checking
  • Run formatting
  • Rebuild
  • Create changeset
  • Add pagination support for comments

@chainchad chainchad requested review from erikburt and ibrajer May 19, 2026 16:20
@chainchad chainchad marked this pull request as ready for review May 19, 2026 16:38
@chainchad chainchad requested a review from a team as a code owner May 19, 2026 16:38
Comment on lines +34 to +48
const packageName = await getPackageName(octokit, {
...github.context.repo,
ref: pullRequest.head.ref,
});

const changesetFilename = randomBytes(8).toString("hex");
const changesetTemplate = [
"---",
`"${packageName ?? "<package-name>"}": patch`,
"---",
"",
"Description of the change",
"",
].join("\n");
addChangesetUrl = `${pullRequest.head.repo.html_url}/new/${pullRequest.head.ref}?filename=.changeset/${changesetFilename}.md&value=${encodeURIComponent(changesetTemplate)}`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this only works on single-package repos? As the root package.json may not be the thing we want to bump (like in this repository).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is for the link to create a markdown file via the GH UI and is more of a convenience thing and can be opted out altogether with the show-add-link input.

@chainchad chainchad merged commit 878b5dc into main May 19, 2026
18 checks passed
@chainchad chainchad deleted the dx-4236/changesets-check-action branch May 19, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants