Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

triage automation updates #174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/policies/eventResponder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ configuration:
label: "Status: Won't Fix :broken_heart:"
- closeIssue

- description: 'ITA11 - When a reply from anyone to an issue occurs, remove the "Needs: Author Feedback :ear:" label and label with "Needs: Attention :wave:"'
- description: 'ITA11 - When the author replies, remove the "Needs: Author Feedback :ear:" label and label with "Needs: Attention :wave:"'
if:
- or:
- payloadType: Pull_Request_Review_Comment
Expand All @@ -57,9 +57,13 @@ configuration:
action: Closed
- hasLabel:
label: "Needs: Author Feedback :ear:"
- isActivitySender:
issueAuthor: true
then:
- removeLabel:
label: "Needs: Author Feedback :ear:"
- removeLabel:
label: "Status: No Recent Activity :zzz:"
- addLabel:
label: "Needs: Attention :wave:"

Expand Down
87 changes: 43 additions & 44 deletions .github/policies/scheduledSearches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,11 @@ configuration:
- assignTo:
user: Azure/terraform-avm

- description: "ITA04 - Label issues that have been marked as requiring author feedback but have not had any activity for 4 days."
- description: "ITA04 - Label issues and PRs that have been marked as requiring author feedback but have not had any activity for 4 days."
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: "Needs: Author Feedback :ear:"
Expand All @@ -198,46 +197,46 @@ configuration:
> [!IMPORTANT]
> @${issueAuthor}, this issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.

- description: 'ITA05A - Close issues that have been marked as requiring author feedback but have not had any activity for 3 days, unless it''s been marked with the "Status long term" label.'
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: "Needs: Author Feedback :ear:"
- hasLabel:
label: "Status: No Recent Activity :zzz:"
- isNotLabeledWith:
label: "Needs: Module Owner :mega:"
- noActivitySince:
days: 3
actions:
- addReply:
reply: |
> [!WARNING]
> @${issueAuthor}, this issue will now be closed, as it has been marked as requiring author feedback but has not had any activity for **7 days**.
- closeIssue
# - description: 'ITA05A - Close issues that have been marked as requiring author feedback but have not had any activity for 3 days, unless it''s been marked with the "Status long term" label.'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove commented out code

# frequencies:
# - hourly:
# hour: 3
# filters:
# - isIssue
# - isOpen
# - hasLabel:
# label: "Needs: Author Feedback :ear:"
# - hasLabel:
# label: "Status: No Recent Activity :zzz:"
# - isNotLabeledWith:
# label: "Needs: Module Owner :mega:"
# - noActivitySince:
# days: 3
# actions:
# - addReply:
# reply: |
# > [!WARNING]
# > @${issueAuthor}, this issue will now be closed, as it has been marked as requiring author feedback but has not had any activity for **7 days**.
# - closeIssue

- description: 'ITA05B - Close issues that have been marked as requiring author feedback but have not had any activity for 3 days, unless it''s been marked with the "Status long term" label.'
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: "Needs: Author Feedback :ear:"
- hasLabel:
label: "Status: No Recent Activity :zzz:"
- isNotLabeledWith:
label: "Status: Long Term :hourglass_flowing_sand:"
- noActivitySince:
days: 3
actions:
- addReply:
reply: |
> [!WARNING]
> @${issueAuthor}, this issue will now be closed, as it has been marked as requiring author feedback but has not had any activity for **7 days**.
- closeIssue
# - description: 'ITA05B - Close issues that have been marked as requiring author feedback but have not had any activity for 3 days, unless it''s been marked with the "Status long term" label.'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

# frequencies:
# - hourly:
# hour: 3
# filters:
# - isIssue
# - isOpen
# - hasLabel:
# label: "Needs: Author Feedback :ear:"
# - hasLabel:
# label: "Status: No Recent Activity :zzz:"
# - isNotLabeledWith:
# label: "Status: Long Term :hourglass_flowing_sand:"
# - noActivitySince:
# days: 3
# actions:
# - addReply:
# reply: |
# > [!WARNING]
# > @${issueAuthor}, this issue will now be closed, as it has been marked as requiring author feedback but has not had any activity for **7 days**.
# - closeIssue
Loading