terse-cli 0.5.0 → 0.5.1

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.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
@@ -37,8 +37,8 @@
37
37
  "tsx": "^4.0.0",
38
38
  "typescript": "^5.0.0",
39
39
  "zod": "^4.3.6",
40
- "terse-sdk": "0.5.0",
41
- "terse-types": "0.5.0"
40
+ "terse-sdk": "0.5.1",
41
+ "terse-types": "0.5.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/luxon": "^3.7.1",
@@ -29,6 +29,10 @@ export const githubTriggers = {
29
29
  onPR(opts: { repo: Repos }): TypedTrigger<GithubPRTrigger> {
30
30
  return new GitHubConfig("{{escape section.id}}", [opts.repo.repositoryId], [GitHubEventType.PR_OPENED, GitHubEventType.PR_MERGED, GitHubEventType.PR_CLOSED, GitHubEventType.PR_SYNCHRONIZE])
31
31
  },
32
+ /** Trigger when an issue is created */
33
+ onIssueCreated(opts: { repo: Repos }): TypedTrigger<GithubIssueCreatedTrigger> {
34
+ return new GitHubConfig("{{escape section.id}}", [opts.repo.repositoryId], [GitHubEventType.ISSUE_CREATED])
35
+ },
32
36
  /** Trigger when a comment is created on an issue or pull request */
33
37
  onIssueComment(opts: { repo: Repos }): TypedTrigger<GithubIssueCommentCreatedTrigger> {
34
38
  return new GitHubConfig("{{escape section.id}}", [opts.repo.repositoryId], [GitHubEventType.ISSUE_COMMENT_CREATED])