You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates a new pull request for a specified repository.
10
-
[See the documentation](https://docs.github.com/en/rest/pulls/pulls#create-a-pull-request)
11
-
`),
12
-
version: "0.0.9",
7
+
description: "Creates a new pull request for a specified repository. [See the documentation](https://docs.github.com/en/rest/pulls/pulls#create-a-pull-request)",
8
+
version: "0.1.{{ts}}",
13
9
type: "action",
14
10
props: {
15
11
github,
@@ -18,20 +14,8 @@ export default {
18
14
github,
19
15
"repoFullname",
20
16
],
21
-
},
22
-
head: {
23
-
propDefinition: [
24
-
github,
25
-
"branch",
26
-
(c)=>({
27
-
repoFullname: c.repoFullname,
28
-
}),
29
-
],
30
-
label: "Head Branch",
31
-
description: toSingleLineString(`
32
-
The name of the branch where your changes are implemented.
33
-
For cross-repository pull requests in the same network, \`namespace\` head with a user like this: \`username:branch\`.
34
-
`),
17
+
label: "Base Repository",
18
+
description: "The base repository, where the pull request will be created.",
35
19
},
36
20
base: {
37
21
propDefinition: [
@@ -42,58 +26,48 @@ export default {
42
26
}),
43
27
],
44
28
label: "Base Branch",
45
-
description: toSingleLineString(`
46
-
The name of the branch you want the changes pulled into.
47
-
This should be an existing branch on the current repository.
48
-
You cannot submit a pull request to one repository that requests a merge to a base of another repository.
49
-
`),
29
+
description: "The base branch, where the changes will be received.",
50
30
},
51
-
org: {
31
+
headRepo: {
52
32
propDefinition: [
53
33
github,
54
-
"orgName",
34
+
"repoFullname",
55
35
],
56
-
optional: true,
36
+
label: "Head Repository",
37
+
description: "The head repository, where the changes originate from. This can, but does not have to, be the same repository.",
57
38
},
58
-
headRepo: {
39
+
head: {
59
40
propDefinition: [
60
41
github,
61
-
"repoOrg",
42
+
"branch",
62
43
(c)=>({
63
-
org: c.org,
44
+
repoFullname: c.headRepo,
64
45
}),
65
46
],
66
-
label: "Head Repository's Name",
67
-
description: toSingleLineString(`
68
-
The name of the repository where the changes in the pull request were made.
69
-
This field is required for cross-repository pull requests if both repositories are owned by the same organization.
70
-
`),
71
-
optional: true,
47
+
label: "Head Branch",
48
+
description: "The head branch, where the changes originate from",
72
49
},
73
50
body: {
74
51
label: "Body",
75
-
description: "The contents of the pull request.",
52
+
description: "The text description of the pull request.",
76
53
type: "string",
77
54
optional: true,
78
55
},
79
56
maintainerCanModify: {
80
-
label: "Maintainer Can Modify",
57
+
label: "Maintainers Can Modify",
81
58
description: "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
82
59
type: "boolean",
83
60
optional: true,
84
61
},
85
62
draft: {
86
63
label: "Is Draft",
87
-
description: toSingleLineString(`
88
-
Indicates whether the pull request is a draft.
89
-
See "[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.
90
-
`),
64
+
description: "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.",
91
65
type: "boolean",
92
66
optional: true,
93
67
},
94
68
title: {
95
69
label: "Title",
96
-
description: "The title of the new pull request.",
70
+
description: "The title of the pull request.",
97
71
type: "string",
98
72
optional: true,
99
73
},
@@ -106,21 +80,15 @@ export default {
106
80
}),
107
81
],
108
82
label: "Issue",
109
-
description: toSingleLineString(`
110
-
An issue in the repository to convert to a pull request.
111
-
The issue title, body, and comments will become the title, body, and comments on the new pull request.
112
-
`),
83
+
description: "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request.",
113
84
min: 1,
114
85
optional: true,
115
86
},
116
87
},
117
88
asyncrun({ $ }){
118
89
119
90
if(!this.issue&&!this.title){
120
-
thrownewConfigurationError(toSingleLineString(`
121
-
Title is required if Issue is unspecified.
122
-
You can either specify a new pull request with Title or convert an existing issue to a pull request with Issue.
123
-
`));
91
+
thrownewConfigurationError("Title is required if Issue is unspecified. You can either specify a new pull request with Title or convert an existing issue to a pull request with Issue.");
0 commit comments