Skip to content

Commit

Permalink
feat: set no notes in Dependabot PRs (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 committed May 8, 2024
1 parent da1b40e commit baaaa6b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ const submitFeedbackForPR = async (
const github = context.octokit;

if (!releaseNotes) {
if (pr.user.login === 'dependabot[bot]') {
debug(`Adding 'Notes: none' to Dependabot PR body`);
await github.pulls.update(
context.repo({
pull_number: pr.number,
body: pr.body + '\n---\n\nNotes: none',
}),
);
return;
}

debug(`No Release Notes: posting failed check.`);
await github.repos.createCommitStatus(
context.repo({
Expand Down

0 comments on commit baaaa6b

Please sign in to comment.