Skip to content

Commit 27c78de

Browse files
authored
feat: add support for copilot branches [FTTECH-2189] (#130)
1 parent 5bc2559 commit 27c78de

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

lib/branch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ function isBranchNameValid(branchName) {
66
!!branchName.match(/^revert-([0-9]+)-([a-z0-9_\-@./_-]*)$/) ||
77
!!branchName.match(/^(mobsuccessbot)\/([a-z0-9_\-@./_-]*)$/) ||
88
!!branchName.match(/^(dependabot)\/([a-z][a-zA-Z0-9./_-]*)$/) ||
9-
!!branchName.match(/^(renovate)\/([a-z0-9_\-@./_-]*)$/)
9+
!!branchName.match(/^(renovate)\/([a-z0-9_\-@./_-]*)$/) ||
10+
!!branchName.match(/^(copilot)\/([a-z0-9_\-@./_-]*)$/)
1011
);
1112
}
1213

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
"name": "github-actions-mobsuccess",
33
"version": "1.0.0",
44
"description": "Action to validate conformance to Mobsuccess policies",
5-
"main": "index.js",
6-
"scripts": {
7-
"test": "jest --coverage",
8-
"prettier": "prettier --check .",
9-
"eslint": "eslint ."
10-
},
11-
"repository": {
12-
"type": "git",
13-
"url": "https://github.com/mobsuccess-devops/github-actions-mobsuccess"
14-
},
155
"keywords": [
166
"github-actions",
177
"git"
188
],
19-
"author": "Christopher Allène",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/mobsuccess-devops/github-actions-mobsuccess"
12+
},
2013
"license": "UNLICENSED",
14+
"author": "Christopher Allène",
15+
"main": "index.js",
16+
"scripts": {
17+
"eslint": "eslint .",
18+
"prettier": "prettier --check .",
19+
"test": "jest --coverage"
20+
},
2121
"dependencies": {
2222
"@actions/core": "^1.2.6",
2323
"@actions/github": "^4.0.0"

0 commit comments

Comments
 (0)