@@ -2,7 +2,9 @@ import { PopupRoot } from "@/components/PopupRoot"
2
2
import type { CommentStorage , CommentTableRow } from "@/entrypoints/background"
3
3
import type { CommentSpot } from "@/lib/enhancer"
4
4
import type { GitHubIssueAppendSpot } from "@/lib/enhancers/github/GitHubIssueAppendEnhancer"
5
+ import type { GitHubIssueCreateSpot } from "@/lib/enhancers/github/GitHubIssueCreateEnhancer"
5
6
import type { GitHubPrAppendSpot } from "@/lib/enhancers/github/GitHubPrAppendEnhancer"
7
+ import type { GitHubPrCreateSpot } from "@/lib/enhancers/github/GitHubPrCreateEnhancer"
6
8
7
9
const gh_pr : GitHubPrAppendSpot = {
8
10
domain : "github.com" ,
@@ -12,6 +14,15 @@ const gh_pr: GitHubPrAppendSpot = {
12
14
type : "GH_PR_APPEND" ,
13
15
unique_key : "github.com:diffplug/selfie:517" ,
14
16
}
17
+ const gh_pr_new : GitHubPrCreateSpot = {
18
+ base : "main" ,
19
+ domain : "github.com" ,
20
+ head : "cavia-porcellus:selfie:main" ,
21
+ slug : "diffplug/selfie" ,
22
+ title : "Update README.md" ,
23
+ type : "GH_PR_CREATE" ,
24
+ unique_key : "github.com:diffplug/selfie:main...cavia-porcellus:selfie:main" ,
25
+ }
15
26
const gh_issue : GitHubIssueAppendSpot = {
16
27
domain : "github.com" ,
17
28
number : 523 ,
@@ -20,8 +31,15 @@ const gh_issue: GitHubIssueAppendSpot = {
20
31
type : "GH_ISSUE_APPEND" ,
21
32
unique_key : "github.com:diffplug/selfie:523" ,
22
33
}
34
+ const gh_issue_new : GitHubIssueCreateSpot = {
35
+ domain : "github.com" ,
36
+ slug : "diffplug/gitcasso" ,
37
+ title : "New issue title" ,
38
+ type : "GH_ISSUE_CREATE" ,
39
+ unique_key : "github.com:diffplug/gitcasso:new" ,
40
+ }
23
41
24
- const spots : CommentSpot [ ] = [ gh_pr , gh_issue ]
42
+ const spots : CommentSpot [ ] = [ gh_pr , gh_pr_new , gh_issue , gh_issue_new ]
25
43
const sampleSpots : CommentStorage [ ] = spots . map ( ( spot ) => {
26
44
const state : CommentStorage = {
27
45
drafts : [ [ 0 , "Lorem ipsum dolor sit amet, consectetur adipiscing elit." ] ] ,
0 commit comments