mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-13775] Upstream js - fix issue (#8484)
* fix issue * fix issue * put back \' * fix reg for release * add missing script * remove logs
This commit is contained in:
21
scripts/github/update/check-pr-already-exist.js
Executable file
21
scripts/github/update/check-pr-already-exist.js
Executable file
@@ -0,0 +1,21 @@
|
||||
module.exports = async ({github, context, version}) => {
|
||||
|
||||
const BRANCH_TO_CREATE = 'upstream-dependencies';
|
||||
|
||||
const { data: prs } = await github.rest.pulls.list({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
state: 'open',
|
||||
head: `${context.repo.owner}:${BRANCH_TO_CREATE}`,
|
||||
base: 'develop'
|
||||
});
|
||||
|
||||
if (prs?.length > 0) {
|
||||
const title = prs[0].title;
|
||||
const result = title.match(version);
|
||||
return result?.length > 0 ? true : false;
|
||||
}
|
||||
return false;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user