Compare commits

...

10 commits

Author SHA1 Message Date
Amish Kumar
8c762b8312
Merge a77e8a2651 into ab1ed9c421 2024-12-29 13:12:09 -03:00
Anton
ab1ed9c421
feat(preset): Add SlimMessageBus monorepo group (#33315)
Some checks are pending
Build / setup (push) Waiting to run
Build / setup-build (push) Waiting to run
Build / prefetch (push) Blocked by required conditions
Build / lint-eslint (push) Blocked by required conditions
Build / lint-prettier (push) Blocked by required conditions
Build / lint-docs (push) Blocked by required conditions
Build / lint-other (push) Blocked by required conditions
Build / (push) Blocked by required conditions
Build / codecov (push) Blocked by required conditions
Build / coverage-threshold (push) Blocked by required conditions
Build / test-success (push) Blocked by required conditions
Build / build (push) Blocked by required conditions
Build / build-docs (push) Blocked by required conditions
Build / test-e2e (push) Blocked by required conditions
Build / release (push) Blocked by required conditions
Code scanning / CodeQL-Build (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
whitesource-scan / WS_SCAN (push) Waiting to run
2024-12-29 07:11:58 +00:00
RahulGautamSingh
a42069da44
fix(platform/github): use correct url to find pr when only using branch name (#33324) 2024-12-29 06:58:30 +00:00
renovate[bot]
a4042bb863
chore(deps): update dependency memfs to v4.15.1 (#33327)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-29 03:38:46 +00:00
Amish Kumar
a77e8a2651
Merge branch 'main' into fix/30508-truncate-comment-length 2024-10-09 20:48:13 +05:30
amishk783
cb17b3d490 fixed linting error 2024-10-09 20:47:24 +05:30
amishk783
ee81dafdec additional changes based on feedback 2024-09-20 18:58:25 +05:30
Amish Kumar
6b18c79643
Merge branch 'renovatebot:main' into fix/30508-truncate-comment-length 2024-09-20 18:20:28 +05:30
Rhys Arkins
3c33d864a0
Merge branch 'main' into fix/30508-truncate-comment-length 2024-08-19 15:39:52 +02:00
amishk783
c0a5c25cb6 fixed comment lenght bug 2024-08-04 21:15:08 +05:30
6 changed files with 14 additions and 9 deletions

View file

@ -505,6 +505,7 @@
"skiasharp": "https://github.com/mono/SkiaSharp",
"slack-net": "https://github.com/soxtoby/SlackNet",
"slf4j": "https://github.com/qos-ch/slf4j",
"slim-message-bus": "https://github.com/zarusz/SlimMessageBus",
"spectre-console": "https://github.com/spectreconsole/spectre.console",
"springfox": "https://github.com/springfox/springfox",
"steeltoe": "https://github.com/SteeltoeOSS/steeltoe",

View file

@ -2568,7 +2568,7 @@ describe('modules/platform/github/index', () => {
const scope = httpMock.scope(githubApiHost);
initRepoMock(scope, 'some/repo');
scope
.get('/repos/some/repo/pulls?head=some/repo:branch&state=open')
.get('/repos/some/repo/pulls?head=some:branch&state=open')
.reply(200, [
{
number: 1,
@ -2598,7 +2598,7 @@ describe('modules/platform/github/index', () => {
const scope = httpMock.scope(githubApiHost);
initRepoMock(scope, 'some/repo');
scope
.get('/repos/some/repo/pulls?head=some/repo:branch&state=open')
.get('/repos/some/repo/pulls?head=some:branch&state=open')
.reply(200, []);
await github.initRepo({ repository: 'some/repo' });
const pr = await github.findPr({

View file

@ -855,9 +855,10 @@ export async function findPr({
if (includeOtherAuthors) {
const repo = config.parentRepo ?? config.repository;
const org = repo?.split('/')[0];
// PR might have been created by anyone, so don't use the cached Renovate PR list
const { body: prList } = await githubApi.getJson<GhRestPr[]>(
`repos/${repo}/pulls?head=${repo}:${branchName}&state=open`,
`repos/${repo}/pulls?head=${org}:${branchName}&state=open`,
{ cacheProvider: repoCacheProvider },
);

View file

@ -1364,6 +1364,7 @@ export async function ensureComment({
body = body
.replace(regEx(/Pull Request/g), 'Merge Request')
.replace(regEx(/PR/g), 'MR');
body = smartTruncate(body, maxBodyLength());
comments.forEach((comment: { body: string; id: number }) => {
if (comment.body.startsWith(`### ${massagedTopic!}\n\n`)) {
commentId = comment.id;
@ -1373,6 +1374,7 @@ export async function ensureComment({
} else {
logger.debug(`Ensuring content-only comment in #${number}`);
body = `${sanitizedContent}`;
body = smartTruncate(body, maxBodyLength());
comments.forEach((comment: { body: string; id: number }) => {
if (comment.body === body) {
commentId = comment.id;
@ -1380,6 +1382,7 @@ export async function ensureComment({
}
});
}
if (!commentId) {
await addComment(number, body);
logger.debug(

View file

@ -336,7 +336,7 @@
"jest-mock-extended": "3.0.7",
"jest-snapshot": "29.7.0",
"markdownlint-cli2": "0.16.0",
"memfs": "4.15.0",
"memfs": "4.15.1",
"nock": "13.5.6",
"npm-run-all2": "7.0.2",
"nyc": "17.1.0",

View file

@ -581,8 +581,8 @@ importers:
specifier: 0.16.0
version: 0.16.0
memfs:
specifier: 4.15.0
version: 4.15.0
specifier: 4.15.1
version: 4.15.1
nock:
specifier: 13.5.6
version: 13.5.6
@ -4507,8 +4507,8 @@ packages:
mdurl@2.0.0:
resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==}
memfs@4.15.0:
resolution: {integrity: sha512-q9MmZXd2rRWHS6GU3WEm3HyiXZyyoA1DqdOhEq0lxPBmKb5S7IAOwX0RgUCwJfqjelDCySa5h8ujOy24LqsWcw==}
memfs@4.15.1:
resolution: {integrity: sha512-ufCzgFwiVnR6R9cCYuvwznJdhdYXEvFl0hpnM4cCtVaVkHuqBR+6fo2sqt1SSMdp+uiHw9GyPZr3OMM5tqjSmQ==}
engines: {node: '>= 4.0.0'}
memorystream@0.3.1:
@ -11559,7 +11559,7 @@ snapshots:
mdurl@2.0.0: {}
memfs@4.15.0:
memfs@4.15.1:
dependencies:
'@jsonjoy.com/json-pack': 1.1.1(tslib@2.8.1)
'@jsonjoy.com/util': 1.5.0(tslib@2.8.1)