Override the pr title in case already exists (#6725)

This commit is contained in:
Maurizio Vitale 2021-02-24 14:20:07 +00:00 committed by GitHub
parent 3fd2f22fed
commit 1b39828b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,9 @@ class PrCreator {
if (prs.length < 1) {
const { data: pr } = await this.repo.createPullRequest({ title, head, base });
return pr.number;
} else {
// override the title to contains the latest adf dep number
prs[0].title = title;
}
return prs[0].number;