Skip to content

Commit

Permalink
feat(deps): update dependency probot to v12.3.0 (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Jan 30, 2023
1 parent 1ea95b6 commit d2f9590
Show file tree
Hide file tree
Showing 20 changed files with 61 additions and 33 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -105,7 +105,7 @@
"jsonwebtoken": "9.0.0",
"liwi-mongo": "8.3.1",
"lock": "1.1.0",
"probot": "12.2.5",
"probot": "12.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"simple-oauth2": "4.3.0",
Expand Down
2 changes: 2 additions & 0 deletions src/context/initRepoLabels.ts
Expand Up @@ -92,6 +92,8 @@ export const initRepoLabels = async <
name: existingLabel.name !== labelConfig.name && labelConfig.name,
color: existingLabel.color !== labelColor && labelColor,
description: existingLabel.description !== description && description,
existingLabel,
labelColor,
},
'Needs to update label',
);
Expand Down
2 changes: 1 addition & 1 deletion src/context/repoContext.ts
Expand Up @@ -324,7 +324,7 @@ async function initRepoContext<
const getNeedsReviewGroupNames = (labels: PullRequestLabels): GroupNames[] =>
labels
.filter((label) => label.id && needsReviewLabelIds.includes(label.id))
.map((label) => labelIdToGroupName.get(label.id!))
.map((label) => labelIdToGroupName.get(label.id))
.filter(ExcludesFalsy);

const lock = Lock();
Expand Down
4 changes: 2 additions & 2 deletions src/events/pr-handlers/actions/utils/body/prOptions.ts
@@ -1,5 +1,5 @@
import type { RepoContext } from 'context/repoContext';
import type { PullRequestWithDecentData } from 'events/pr-handlers/utils/PullRequestData';
import type { PullRequestLabels } from 'events/pr-handlers/utils/PullRequestData';
import hasLabelInPR from '../labels/hasLabelInPR';
import type { RepositorySettings } from './repositorySettings';

Expand Down Expand Up @@ -61,7 +61,7 @@ export const optionsDescriptions: OptionDisplay[] = [

export const calcDefaultOptions = (
repoContext: RepoContext,
pullRequestLabels: PullRequestWithDecentData['labels'],
pullRequestLabels: PullRequestLabels,
): Options => {
const automergeLabel = repoContext.labels['merge/automerge'];
const skipCiLabel = repoContext.labels['merge/skip-ci'];
Expand Down
7 changes: 5 additions & 2 deletions src/events/pr-handlers/actions/utils/steps/BaseStepState.ts
@@ -1,5 +1,8 @@
import type { RepoContext } from 'context/repoContext';
import type { PullRequestWithDecentData } from '../../../utils/PullRequestData';
import type {
PullRequestLabels,
PullRequestWithDecentData,
} from '../../../utils/PullRequestData';

export type StepState = 'not-started' | 'in-progress' | 'failed' | 'passed';

Expand All @@ -10,5 +13,5 @@ export interface BaseStepState {
export interface CalcStepOptions<GroupNames extends string> {
repoContext: RepoContext<GroupNames>;
pullRequest: PullRequestWithDecentData;
labels: PullRequestWithDecentData['labels'];
labels: PullRequestLabels;
}
7 changes: 5 additions & 2 deletions src/events/pr-handlers/actions/utils/steps/calcStepsState.ts
@@ -1,5 +1,8 @@
import type { RepoContext } from 'context/repoContext';
import type { PullRequestWithDecentData } from 'events/pr-handlers/utils/PullRequestData';
import type {
PullRequestWithDecentData,
PullRequestLabels,
} from 'events/pr-handlers/utils/PullRequestData';
import type { ChecksStepState } from './checksStep';
import { calcChecksStep } from './checksStep';
import type { CodeReviewStepState } from './codeReviewStep';
Expand All @@ -12,7 +15,7 @@ import { calcWriteStep } from './writeStep';
export interface CalcStepsStateOptions<GroupNames extends string> {
repoContext: RepoContext<GroupNames>;
pullRequest: PullRequestWithDecentData;
labels?: PullRequestWithDecentData['labels'];
labels?: PullRequestLabels;
}

export interface StepsState<GroupNames extends string> {
Expand Down
3 changes: 2 additions & 1 deletion src/events/pr-handlers/labelsChanged.ts
Expand Up @@ -12,6 +12,7 @@ import { updateReviewStatus } from './actions/updateReviewStatus';
import { updateStatusCheckFromStepsState } from './actions/updateStatusCheckFromStepsState';
import hasLabelInPR from './actions/utils/labels/hasLabelInPR';
import { calcStepsState } from './actions/utils/steps/calcStepsState';
import type { PullRequestLabels } from './utils/PullRequestData';
import { createPullRequestHandler } from './utils/createPullRequestHandler';
import { fetchPr } from './utils/fetchPr';

Expand Down Expand Up @@ -72,7 +73,7 @@ export default function labelsChanged(
context.pullRequest({ event: 'APPROVE' }),
);

let labels = updatedPr.labels;
let labels: PullRequestLabels = updatedPr.labels;
const autoMergeWithSkipCi =
autoMergeSkipCiLabel &&
repoContext.config.autoMergeRenovateWithSkipCi;
Expand Down
5 changes: 4 additions & 1 deletion src/events/pr-handlers/utils/PullRequestData.ts
@@ -1,3 +1,4 @@
import type { LabelResponse } from 'context/initRepoLabels';
import type { CustomExtract, EventsWithRepository } from 'context/repoContext';
import type { ProbotEvent } from 'events/probot-types';
import type { EventsWithPullRequest } from './createPullRequestHandler';
Expand Down Expand Up @@ -30,4 +31,6 @@ export type PullRequestWithDecentData =
| PullRequestFromRestEndpoint
| PullRequestWithDecentDataFromWebhook;

export type PullRequestLabels = PullRequestWithDecentData['labels'];
export type PullRequestLabels =
| PullRequestWithDecentData['labels']
| LabelResponse[];
62 changes: 39 additions & 23 deletions yarn.lock
Expand Up @@ -1372,10 +1372,17 @@ __metadata:
languageName: node
linkType: hard

"@octokit/openapi-types@npm:^11.2.0":
version: 11.2.0
resolution: "@octokit/openapi-types@npm:11.2.0"
checksum: eb373ea496bc96bf0233505a0916eb38cb193d1829cab935e1cf1fd21839c402a1d835d3c0326290c756c0ed980a64d0ae73ad3c5d5decde9000f0828aa7ff52
"@octokit/openapi-types@npm:^12.11.0":
version: 12.11.0
resolution: "@octokit/openapi-types@npm:12.11.0"
checksum: 8a7d4bd6288cc4085cabe0ca9af2b87c875c303af932cb138aa1b2290eb69d32407759ac23707bb02776466e671244a902e9857896903443a69aff4b6b2b0e3b
languageName: node
linkType: hard

"@octokit/openapi-types@npm:^16.0.0":
version: 16.0.0
resolution: "@octokit/openapi-types@npm:16.0.0"
checksum: 844f30a545da380d63c712e0eb733366bc567d1aab34529c79fdfbec3d73810e81d83f06fdab13058a5cbc7dae786db1a9b90b5b61b1e606854ee45d5ec5f194
languageName: node
linkType: hard

Expand All @@ -1390,13 +1397,13 @@ __metadata:
linkType: hard

"@octokit/plugin-paginate-rest@npm:^2.16.8, @octokit/plugin-paginate-rest@npm:^2.6.2":
version: 2.17.0
resolution: "@octokit/plugin-paginate-rest@npm:2.17.0"
version: 2.21.3
resolution: "@octokit/plugin-paginate-rest@npm:2.21.3"
dependencies:
"@octokit/types": ^6.34.0
"@octokit/types": ^6.40.0
peerDependencies:
"@octokit/core": ">=2"
checksum: c8753cda6f7ede79d0e9df43a54e56020aa1c9c6887684e0e0d45cb6ee0dcabf460c3e4b8a18edabef711bb269fd826616e99e78dc29fb30d47c210c562603a0
checksum: acf31de2ba4021bceec7ff49c5b0e25309fc3c009d407f153f928ddf436ab66cd4217344138378d5523f5fb233896e1db58c9c7b3ffd9612a66d760bc5d319ed
languageName: node
linkType: hard

Expand All @@ -1410,14 +1417,14 @@ __metadata:
linkType: hard

"@octokit/plugin-rest-endpoint-methods@npm:^5.0.1, @octokit/plugin-rest-endpoint-methods@npm:^5.12.0":
version: 5.13.0
resolution: "@octokit/plugin-rest-endpoint-methods@npm:5.13.0"
version: 5.16.2
resolution: "@octokit/plugin-rest-endpoint-methods@npm:5.16.2"
dependencies:
"@octokit/types": ^6.34.0
"@octokit/types": ^6.39.0
deprecation: ^2.3.1
peerDependencies:
"@octokit/core": ">=3"
checksum: f331457e4317130adb456b27df2a99609fb54a4dc2da6f87009e567c7325680c901abf18ad08483535bab4ec1c892e4236f4135a2804603aebb12c0698c678c8
checksum: 30fcc50c335d1093f03573d9fa3a4b7d027fc98b215c43e07e82ee8dabfa0af0cf1b963feb542312ae32d897a2f68dc671577206f30850215517bebedc5a2c73
languageName: node
linkType: hard

Expand Down Expand Up @@ -1480,12 +1487,21 @@ __metadata:
languageName: node
linkType: hard

"@octokit/types@npm:^6.0.0, @octokit/types@npm:^6.0.1, @octokit/types@npm:^6.0.3, @octokit/types@npm:^6.1.1, @octokit/types@npm:^6.16.1, @octokit/types@npm:^6.34.0":
version: 6.34.0
resolution: "@octokit/types@npm:6.34.0"
"@octokit/types@npm:^6.0.0, @octokit/types@npm:^6.0.1, @octokit/types@npm:^6.0.3, @octokit/types@npm:^6.1.1, @octokit/types@npm:^6.16.1, @octokit/types@npm:^6.39.0, @octokit/types@npm:^6.40.0":
version: 6.41.0
resolution: "@octokit/types@npm:6.41.0"
dependencies:
"@octokit/openapi-types": ^11.2.0
checksum: f122b9aee8f6baddd515e34a0913e73b21d4bc82d6ee59d77a8aaf01b4a02c10867dd013003d087a83dc96db23511893669015af6d30c27cece185e21cf1df89
"@octokit/openapi-types": ^12.11.0
checksum: fd6f75e0b19b90d1a3d244d2b0c323ed8f2f05e474a281f60a321986683548ef2e0ec2b3a946aa9405d6092e055344455f69f58957c60f58368c8bdda5b7d2ab
languageName: node
linkType: hard

"@octokit/types@npm:^8.0.0":
version: 8.2.0
resolution: "@octokit/types@npm:8.2.0"
dependencies:
"@octokit/openapi-types": ^16.0.0
checksum: cdb73ba5f18d85dc5d5d72ee3152920dfdfc413eeadc827ac201bb807f40e4223f8147a7b2e0bdfde7ea4e1ab8f2e7c0f25f9d30609c5d38a4fdf591d96c709e
languageName: node
linkType: hard

Expand Down Expand Up @@ -8490,17 +8506,17 @@ __metadata:
languageName: node
linkType: hard

"probot@npm:12.2.5":
version: 12.2.5
resolution: "probot@npm:12.2.5"
"probot@npm:12.3.0":
version: 12.3.0
resolution: "probot@npm:12.3.0"
dependencies:
"@octokit/core": ^3.2.4
"@octokit/plugin-enterprise-compatibility": ^1.2.8
"@octokit/plugin-paginate-rest": ^2.6.2
"@octokit/plugin-rest-endpoint-methods": ^5.0.1
"@octokit/plugin-retry": ^3.0.6
"@octokit/plugin-throttling": ^3.3.4
"@octokit/types": ^6.1.1
"@octokit/types": ^8.0.0
"@octokit/webhooks": ^9.8.4
"@probot/get-private-key": ^1.1.0
"@probot/octokit-plugin-config": ^1.0.0
Expand Down Expand Up @@ -8529,7 +8545,7 @@ __metadata:
uuid: ^8.3.2
bin:
probot: bin/probot.js
checksum: d623627c62f213732151b2400d5fea763d80f1c8d93bd70885c6aaad2b9fbbda6a910b410062e36fd23421f90f8738f2d6d094797207a99b1ba69c50881b38a3
checksum: 0dbdf23f4b99c9c0545637055a21b225820115e3fe7aecd7150f823f025e15bc454fb7a2a77a36f857f4f5e0da6f58a12ca98e19a532d812007fe7a7945e336c
languageName: node
linkType: hard

Expand Down Expand Up @@ -9054,7 +9070,7 @@ resolve@^2.0.0-next.3:
lock: 1.1.0
nock: 13.3.0
pob-babel: 34.1.0
probot: 12.2.5
probot: 12.3.0
react: 18.2.0
react-dom: 18.2.0
simple-oauth2: 4.3.0
Expand Down

0 comments on commit d2f9590

Please sign in to comment.