Skip to content

Commit

Permalink
chore: add title to ActionInfo interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ramos committed Jul 22, 2024
1 parent 954bcc5 commit d939cd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function getActionInfo({ context, root, branch, repoName }) {
let ref = context?.ref ?? context?.payload?.ref;
let headRef = context?.payload?.pull_request?.head?.ref ?? branch;
let isMerge = Boolean(context?.payload?.pull_request?.merged);
let title = context?.payload?.pull_request?.title;

if (isMerge && headRef) {
removeChange(headRef, projectRoot);
Expand All @@ -25,6 +26,7 @@ export function getActionInfo({ context, root, branch, repoName }) {
let packages = getChangedPackages("origin/main", projectRoot);

return {
title,
branch,
change,
packages,
Expand Down

0 comments on commit d939cd3

Please sign in to comment.