diff --git a/docs/changelog.rst b/docs/changelog.rst index 73f0ad03..191f2d60 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,5 +1,6 @@ CHANGELOG ===================================== +| July 10, 2024: feat: Add trigger 'issue_comment' in validators `age`, `assignee`, `author`, `description`, `label`, `title` `#766 `_ | June 25 2024: feat: Add buildpacks for building docker image `#764 `_ | June 20, 2024: feat: Add options 'one_of' and 'none_of'. Support in filters `payload`, `author`, and in action `lastComment` to filter comments authors `#757 `_ | June 20, 2024: feat: Add annotations @sender @bot @repository @action and template helper {{formatDate}} `#756 `_ diff --git a/docs/validators/age.rst b/docs/validators/age.rst index 9f14ccc8..913f9b5b 100644 --- a/docs/validators/age.rst +++ b/docs/validators/age.rst @@ -14,4 +14,4 @@ Age Supported Events: :: - 'pull_request.*', 'pull_request_review.*', + 'pull_request.*', 'pull_request_review.*', 'issue_comment.*' diff --git a/docs/validators/assignee.rst b/docs/validators/assignee.rst index 1dd358b9..2d312f40 100644 --- a/docs/validators/assignee.rst +++ b/docs/validators/assignee.rst @@ -14,5 +14,5 @@ Assignee Supported Events: :: - 'pull_request.*', 'pull_request_review.*', 'issues.*' + 'pull_request.*', 'pull_request_review.*', 'issues.*', 'issue_comment.*' diff --git a/docs/validators/author.rst b/docs/validators/author.rst index c80fad3e..60597127 100644 --- a/docs/validators/author.rst +++ b/docs/validators/author.rst @@ -51,4 +51,4 @@ you can also nest ``and`` and ``or`` options Supported Events: :: - 'pull_request.*', 'pull_request_review.*' + 'pull_request.*', 'pull_request_review.*', 'issues.*', 'issue_comment.*' diff --git a/docs/validators/description.rst b/docs/validators/description.rst index 8104a537..8272a264 100644 --- a/docs/validators/description.rst +++ b/docs/validators/description.rst @@ -68,4 +68,4 @@ you can also nest ``and`` and ``or`` options Supported Events: :: - 'pull_request.*', 'pull_request_review.*', 'issues.*' \ No newline at end of file + 'pull_request.*', 'pull_request_review.*', 'issues.*', 'issue_comment.*' \ No newline at end of file diff --git a/docs/validators/label.rst b/docs/validators/label.rst index 2022de2f..d078f12a 100644 --- a/docs/validators/label.rst +++ b/docs/validators/label.rst @@ -66,4 +66,4 @@ you can also nest ``and`` and ``or`` options Supported Events: :: - 'pull_request.*', 'pull_request_review.*', 'issues.*' \ No newline at end of file + 'pull_request.*', 'pull_request_review.*', 'issues.*', 'issue_comment.*' \ No newline at end of file diff --git a/docs/validators/title.rst b/docs/validators/title.rst index ec2bc0ae..460f5b38 100644 --- a/docs/validators/title.rst +++ b/docs/validators/title.rst @@ -66,4 +66,4 @@ you can also nest ``and`` and ``or`` options Supported Events: :: - 'pull_request.*', 'pull_request_review.*', 'issues.*' + 'pull_request.*', 'pull_request_review.*', 'issues.*', 'issue_comment.*' diff --git a/lib/validators/age.js b/lib/validators/age.js index 88bbda48..c8a48686 100644 --- a/lib/validators/age.js +++ b/lib/validators/age.js @@ -21,7 +21,8 @@ class Age extends Validator { super('time') this.supportedEvents = [ 'pull_request.*', - 'pull_request_review.*' + 'pull_request_review.*', + 'issue_comment.*' ] this.supportedSettings = { updated_at: { diff --git a/lib/validators/assignee.js b/lib/validators/assignee.js index 84a804fc..7f220e00 100644 --- a/lib/validators/assignee.js +++ b/lib/validators/assignee.js @@ -6,7 +6,8 @@ class Assignee extends Validator { this.supportedEvents = [ 'pull_request.*', 'pull_request_review.*', - 'issues.*' + 'issues.*', + 'issue_comment.*' ] this.supportedSettings = { diff --git a/lib/validators/author.js b/lib/validators/author.js index 88f66ed2..7dbfbb7a 100644 --- a/lib/validators/author.js +++ b/lib/validators/author.js @@ -7,7 +7,9 @@ class Author extends Validator { super('author') this.supportedEvents = [ 'pull_request.*', - 'pull_request_review.*' + 'pull_request_review.*', + 'issues.*', + 'issue_comment.*' ] this.supportedSettings = { must_include: { diff --git a/lib/validators/description.js b/lib/validators/description.js index b09c93b0..cd0a821c 100644 --- a/lib/validators/description.js +++ b/lib/validators/description.js @@ -6,7 +6,8 @@ class Description extends Validator { this.supportedEvents = [ 'pull_request.*', 'pull_request_review.*', - 'issues.*' + 'issues.*', + 'issue_comment.*' ] this.supportedSettings = { no_empty: { diff --git a/lib/validators/label.js b/lib/validators/label.js index 973ab529..e148dc2a 100644 --- a/lib/validators/label.js +++ b/lib/validators/label.js @@ -6,7 +6,8 @@ class Label extends Validator { this.supportedEvents = [ 'pull_request.*', 'pull_request_review.*', - 'issues.*' + 'issues.*', + 'issue_comment.*' ] this.supportedSettings = { no_empty: { diff --git a/lib/validators/title.js b/lib/validators/title.js index 5e14cba4..4750a77b 100644 --- a/lib/validators/title.js +++ b/lib/validators/title.js @@ -6,7 +6,8 @@ class Title extends Validator { this.supportedEvents = [ 'pull_request.*', 'pull_request_review.*', - 'issues.*' + 'issues.*', + 'issue_comment.*' ] this.supportedSettings = { no_empty: {