terse-cli 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-cli",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
@@ -40,8 +40,8 @@
40
40
  "typescript": "^5.0.0",
41
41
  "workflow": "5.0.0-beta.19",
42
42
  "zod": "^4.3.6",
43
- "terse-types": "0.1.4",
44
- "terse-sdk": "0.3.4"
43
+ "terse-types": "0.1.5",
44
+ "terse-sdk": "0.3.5"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/luxon": "^3.7.1",
@@ -33,6 +33,10 @@ export const githubTriggers = {
33
33
  onIssueComment(opts: { repo: Repos }): TypedTrigger<GithubIssueCommentCreatedTrigger> {
34
34
  return new GitHubConfig("{{escape section.id}}", [opts.repo.repositoryId], [GitHubEventType.ISSUE_COMMENT_CREATED])
35
35
  },
36
+ /** Trigger when a comment is created on a pull request */
37
+ onPRComment(opts: { repo: Repos }): TypedTrigger<GithubPRCommentCreatedTrigger> {
38
+ return new GitHubConfig("{{escape section.id}}", [opts.repo.repositoryId], [GitHubEventType.PR_COMMENT_CREATED])
39
+ },
36
40
  /** Trigger on specific GitHub events for the given repositories */
37
41
  trigger(opts: { repos: Repos[]; eventTypes?: GitHubEventType[] }): TypedTrigger<GithubTrigger> {
38
42
  return new GitHubConfig("{{escape section.id}}", opts.repos.map(r => r.repositoryId), opts.eventTypes)