Skip to content

Commit 0730b1a

Browse files
committed
Merge branch 'master' into 17235-source-gmail-sources-return-too-much-text
2 parents e76531b + 9a236b8 commit 0730b1a

File tree

347 files changed

+7485
-1684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

347 files changed

+7485
-1684
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ jobs:
9696
format: 'csv'
9797
# NOTE: These steps are kept in this workflow to avoid re-rerunning the rest of the lint job
9898
# in the Components Checks workflow
99+
- name: Build TypeScript Components
100+
run: pnpm build
99101
- name: Check component keys
100102
run: node scripts/findBadKeys.js ${{ steps.changed_files.outputs.added_modified }} ${{ steps.changed_files.outputs.renamed }}
101103
- name: Check component app prop

components/add_to_calendar_pro/add_to_calendar_pro.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
import app from "../../akismet.app.mjs";
2+
3+
export default {
4+
key: "akismet-check-comment",
5+
name: "Check Comment",
6+
description: "Check if a comment is spam or not. [See the documentation](https://akismet.com/developers/detailed-docs/submit-spam-missed-spam/)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
blog: {
12+
propDefinition: [
13+
app,
14+
"blog",
15+
],
16+
},
17+
userIp: {
18+
propDefinition: [
19+
app,
20+
"userIp",
21+
],
22+
},
23+
userAgent: {
24+
propDefinition: [
25+
app,
26+
"userAgent",
27+
],
28+
},
29+
referrer: {
30+
propDefinition: [
31+
app,
32+
"referrer",
33+
],
34+
},
35+
permalink: {
36+
propDefinition: [
37+
app,
38+
"permalink",
39+
],
40+
},
41+
commentType: {
42+
propDefinition: [
43+
app,
44+
"commentType",
45+
],
46+
},
47+
commentAuthor: {
48+
propDefinition: [
49+
app,
50+
"commentAuthor",
51+
],
52+
},
53+
commentAuthorEmail: {
54+
propDefinition: [
55+
app,
56+
"commentAuthorEmail",
57+
],
58+
},
59+
commentAuthorUrl: {
60+
propDefinition: [
61+
app,
62+
"commentAuthorUrl",
63+
],
64+
},
65+
commentContent: {
66+
propDefinition: [
67+
app,
68+
"commentContent",
69+
],
70+
},
71+
72+
},
73+
async run({ $ }) {
74+
const response = await this.app.checkComment({
75+
$,
76+
data: {
77+
blog: this.blog,
78+
user_ip: this.userIp,
79+
user_agent: this.userAgent,
80+
referrer: this.referrer,
81+
permalink: this.permalink,
82+
comment_author: this.commentAuthor,
83+
comment_author_email: this.commentAuthorEmail,
84+
comment_author_url: this.commentAuthorUrl,
85+
comment_content: this.commentContent,
86+
comment_type: this.commentType,
87+
},
88+
});
89+
$.export("$summary", "Successfully submited comment to be checked. Akismet spam analysis response: " + response);
90+
return response;
91+
},
92+
};
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
import app from "../../akismet.app.mjs";
2+
3+
export default {
4+
key: "akismet-submit-ham",
5+
name: "Submit Ham",
6+
description: "Submit a comment that was incorrectly classified as spam. [See the documentation](https://akismet.com/developers/detailed-docs/submit-ham-false-positives/)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
blog: {
12+
propDefinition: [
13+
app,
14+
"blog",
15+
],
16+
},
17+
userIp: {
18+
propDefinition: [
19+
app,
20+
"userIp",
21+
],
22+
},
23+
permalink: {
24+
propDefinition: [
25+
app,
26+
"permalink",
27+
],
28+
},
29+
userAgent: {
30+
propDefinition: [
31+
app,
32+
"userAgent",
33+
],
34+
},
35+
commentAuthor: {
36+
propDefinition: [
37+
app,
38+
"commentAuthor",
39+
],
40+
},
41+
commentAuthorEmail: {
42+
propDefinition: [
43+
app,
44+
"commentAuthorEmail",
45+
],
46+
},
47+
commentAuthorUrl: {
48+
propDefinition: [
49+
app,
50+
"commentAuthorUrl",
51+
],
52+
},
53+
commentContent: {
54+
propDefinition: [
55+
app,
56+
"commentContent",
57+
],
58+
},
59+
commentType: {
60+
propDefinition: [
61+
app,
62+
"commentType",
63+
],
64+
},
65+
},
66+
async run({ $ }) {
67+
const response = await this.app.submitHam({
68+
$,
69+
data: {
70+
blog: this.blog,
71+
user_ip: this.userIp,
72+
user_agent: this.userAgent,
73+
permalink: this.permalink,
74+
comment_author: this.commentAuthor,
75+
comment_author_email: this.commentAuthorEmail,
76+
comment_author_url: this.commentAuthorUrl,
77+
comment_content: this.commentContent,
78+
comment_type: this.commentType,
79+
},
80+
});
81+
$.export("$summary", "Successfully submited comment as a false positive");
82+
return response;
83+
},
84+
};
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
import app from "../../akismet.app.mjs";
2+
3+
export default {
4+
key: "akismet-submit-spam",
5+
name: "Submit Spam",
6+
description: "Submit comment that was not marked as spam but should have been. [See the documentation](https://akismet.com/developers/detailed-docs/submit-spam-missed-spam/)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
blog: {
12+
propDefinition: [
13+
app,
14+
"blog",
15+
],
16+
},
17+
userIp: {
18+
propDefinition: [
19+
app,
20+
"userIp",
21+
],
22+
},
23+
permalink: {
24+
propDefinition: [
25+
app,
26+
"permalink",
27+
],
28+
},
29+
userAgent: {
30+
propDefinition: [
31+
app,
32+
"userAgent",
33+
],
34+
},
35+
referrer: {
36+
propDefinition: [
37+
app,
38+
"referrer",
39+
],
40+
},
41+
commentAuthor: {
42+
propDefinition: [
43+
app,
44+
"commentAuthor",
45+
],
46+
},
47+
commentAuthorEmail: {
48+
propDefinition: [
49+
app,
50+
"commentAuthorEmail",
51+
],
52+
},
53+
commentAuthorUrl: {
54+
propDefinition: [
55+
app,
56+
"commentAuthorUrl",
57+
],
58+
},
59+
commentContent: {
60+
propDefinition: [
61+
app,
62+
"commentContent",
63+
],
64+
},
65+
commentType: {
66+
propDefinition: [
67+
app,
68+
"commentType",
69+
],
70+
},
71+
},
72+
async run({ $ }) {
73+
74+
const response = await this.app.submitSpam({
75+
$,
76+
data: {
77+
blog: this.blog,
78+
user_ip: this.userIp,
79+
permalink: this.permalink,
80+
user_agent: this.userAgent,
81+
referrer: this.referrer,
82+
comment_author: this.commentAuthor,
83+
comment_author_email: this.commentAuthorEmail,
84+
comment_author_url: this.commentAuthorUrl,
85+
comment_content: this.commentContent,
86+
comment_type: this.commentType,
87+
},
88+
});
89+
90+
$.export("$summary", "Successfully submited comment as spam");
91+
return response;
92+
},
93+
};

0 commit comments

Comments
 (0)