mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-22 07:00:22 -05:00
feat: set up auto prs for snapshot metafile changes (#25052)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com> Co-authored-by: Ryan Manuel <ryanm@cypress.io> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -110,22 +110,9 @@ const updatePRTitle = async ({ context, github, baseBranch, branchName, descript
|
||||
})
|
||||
}
|
||||
|
||||
const createPullRequest = async ({ context, github, baseBranch, branchName, description }) => {
|
||||
await github.pulls.create({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
base: baseBranch,
|
||||
head: branchName,
|
||||
title: `chore: ${description}`,
|
||||
body: 'This PR was auto-generated to update the version(s) of Chrome for driver tests',
|
||||
maintainer_can_modify: true,
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getVersions,
|
||||
checkNeedForBranchUpdate,
|
||||
updateBrowserVersionsFile,
|
||||
updatePRTitle,
|
||||
createPullRequest,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user