Skip to content

Commit

Permalink
fix: load messages for shared dependabot flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jun 22, 2021
1 parent d41cef6 commit b80d85b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/dependabot/automerge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import { Messages } from '@salesforce/core';
import { meetsVersionCriteria, maxVersionBumpFlag, getOwnerAndRepo } from '../../dependabot';

Messages.importMessagesDirectory(__dirname);
const messages = Messages.loadMessages('@salesforce/plugin-release-management', 'dependabot.automerge');
const messagesFromConsolidate = Messages.loadMessages(
'@salesforce/plugin-release-management',
'dependabot.consolidate'
);
const messages = Messages.loadMessages('@salesforce/plugin-release-management', 'dependabot.automerge');

interface PullRequest {
state: string;
Expand Down
1 change: 1 addition & 0 deletions src/dependabot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { PackageJson } from './package';

type BumpType = Extract<ReleaseType, 'major' | 'minor' | 'patch'>;

Messages.importMessagesDirectory(__dirname);
const messages = Messages.loadMessages('@salesforce/plugin-release-management', 'dependabot.consolidate');

export const meetsVersionCriteria = (title: string, maxVersionBump: BumpType): boolean => {
Expand Down

0 comments on commit b80d85b

Please sign in to comment.