Skip to content

Commit fd3f5cb

Browse files
authored
Merge pull request #24 from aha-develop/record-commands
Implement record actions in GitHub
2 parents 2c08f9e + 71d2da3 commit fd3f5cb

3 files changed

Lines changed: 32 additions & 34 deletions

File tree

package.json

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aha-develop/github",
3-
"description": "GitHub integration",
3+
"description": "GitHub",
44
"version": "1.3.0",
55
"author": "Aha! (support@aha.io)",
66
"repository": {
@@ -9,7 +9,8 @@
99
},
1010
"dependencies": {
1111
"@aha-app/aha-develop-react": "^1.0.0",
12-
"gql-tag": "^1.0.1"
12+
"gql-tag": "^1.0.1",
13+
"prettier": "^2.6.2"
1314
},
1415
"type": "module",
1516
"license": "MIT",
@@ -56,21 +57,35 @@
5657
}
5758
},
5859
"commands": {
59-
"createBranch": {
60-
"title": "GitHub: Create a branch",
61-
"entryPoint": "src/commands/createBranch.js"
62-
},
6360
"sync": {
64-
"title": "GitHub: Sync pull requests",
65-
"entryPoint": "src/commands/sync.js"
61+
"title": "Sync pull requests",
62+
"entryPoint": "src/commands/sync.js",
63+
"commandType": "recordAction",
64+
"recordTypes": [
65+
"Epic",
66+
"Feature",
67+
"Requirement"
68+
]
6669
},
6770
"addLink": {
68-
"title": "GitHub: Link pull request to record",
69-
"entryPoint": "src/commands/addLink.js"
71+
"title": "Link pull request to record",
72+
"entryPoint": "src/commands/addLink.js",
73+
"commandType": "recordAction",
74+
"recordTypes": [
75+
"Epic",
76+
"Feature",
77+
"Requirement"
78+
]
7079
},
7180
"removeLinks": {
72-
"title": "GitHub: Remove linked pull requests from record",
73-
"entryPoint": "src/commands/removeLinks.js"
81+
"title": "Remove linked pull requests from record",
82+
"entryPoint": "src/commands/removeLinks.js",
83+
"commandType": "recordAction",
84+
"recordTypes": [
85+
"Epic",
86+
"Feature",
87+
"Requirement"
88+
]
7489
}
7590
},
7691
"endpoints": {

src/commands/createBranch.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ gql-tag@^1.0.1:
4242
version "1.0.1"
4343
resolved "https://registry.yarnpkg.com/gql-tag/-/gql-tag-1.0.1.tgz#25294dc23986db5b950b81a8bc8debfb0acf6140"
4444
integrity sha512-eVxldTiOtJJ3ySNgYbfRwyIyDDMATJ/ykojlQng5ihX1V0Xpr4C7ZXSZuWo7tg+kf+GS8lzhlbZmKSDjbYGhyA==
45+
46+
prettier@^2.6.2:
47+
version "2.6.2"
48+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.2.tgz#e26d71a18a74c3d0f0597f55f01fb6c06c206032"
49+
integrity sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==

0 commit comments

Comments
 (0)