Skip to content

Commit

Permalink
feat: show notice message for generated pull requests (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored Feb 18, 2025
1 parent d878b05 commit af716c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions dist/index.cjs

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

7 changes: 6 additions & 1 deletion lib/createOrUpdatePullRequest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { info } from "@actions/core";
import { info, notice } from "@actions/core";
import { exec } from "@actions/exec";
import * as github from "@actions/github";
import { PACKAGE_NAME } from "./constants.js";
import splitRepo from "./utils/splitRepo.js";

/**
Expand Down Expand Up @@ -64,6 +65,7 @@ export default async function createOrUpdatePullRequest({
body: pullBody,
});
info(`The pull request was updated successfully: ${pull.html_url}`);
notice(`${PACKAGE_NAME} successfully updated PR #${pull.number}: ${pull.html_url}`);
} else {
const newPull = await octokit.rest.pulls.create({
owner,
Expand All @@ -74,6 +76,9 @@ export default async function createOrUpdatePullRequest({
base: baseBranch,
});
info(`The pull request was created successfully: ${newPull.data.html_url}`);
notice(
`${PACKAGE_NAME} successfully created PR #${newPull.data.number}: ${newPull.data.html_url}`,
);

const newLabels = await octokit.rest.issues.addLabels({
owner,
Expand Down

0 comments on commit af716c7

Please sign in to comment.