Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions github-actions/create-pr-for-changes/lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ async function main(): Promise<void> {
const {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: We could simplify this logic, if we keep re-using the same branch (like renovate)

data: {items: supersededPrs},
} = await git.github.search.issuesAndPullRequests({
advanced_search: 'true',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, when I read the commit description, I remembered that we already had logic for this in place. Is this just a fix because it didn't work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

q: toGithubSearchQuery({
repo: `${repo.owner}/${repo.name}`,
type: 'pull-request',
Expand Down Expand Up @@ -276,6 +277,7 @@ async function cleanUpObsoleteBranches(
const {
data: {items: obsoletePrs},
} = await git.github.search.issuesAndPullRequests({
advanced_search: 'true',
q: toGithubSearchQuery({
repo: `${repo.owner}/${repo.name}`,
type: 'pull-request',
Expand Down
2 changes: 2 additions & 0 deletions github-actions/create-pr-for-changes/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47995,6 +47995,7 @@ async function main() {
core.info(`No pre-existing PR found for branch '${branchName}'.`);
}
const { data: { items: supersededPrs } } = await git.github.search.issuesAndPullRequests({
advanced_search: "true",
q: toGithubSearchQuery({
repo: `${repo.owner}/${repo.name}`,
type: "pull-request",
Expand Down Expand Up @@ -48073,6 +48074,7 @@ ${prBody}`;
}
async function cleanUpObsoleteBranches(git, repo, forkRepo, branchPrefix) {
const { data: { items: obsoletePrs } } = await git.github.search.issuesAndPullRequests({
advanced_search: "true",
q: toGithubSearchQuery({
repo: `${repo.owner}/${repo.name}`,
type: "pull-request",
Expand Down