Skip to content
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
4 changes: 2 additions & 2 deletions .github/policies/issues.needs-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

- description: Remove needs-info label when author comments on issue
if:
- payloadType: Issue_Comment

Check failure on line 45 in .github/policies/issues.needs-info.yml

View check run for this annotation

Microsoft GitHub Policy Service / GitOps/YmlSchemaValidation

.github/policies/issues.needs-info.yml#L45

Exception during deserialization. Unknown action specified.
- isAction:
action: Created
- isActivitySender:
Expand All @@ -51,8 +51,8 @@
label: needs-info
- isOpen
then:
- assignTo:
users: []
- unassign:
author: true
- addLabel:
label: needs-area
- removeLabel:
Expand Down
61 changes: 60 additions & 1 deletion .github/policies/pr.stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ configuration:
- addReply:
reply: >-
Hi @${issueAuthor}.
Your PR has had no update for 14 days and it is marked as a stale PR. If it is not updated within 14 days, the PR will automatically be closed. If you want to refresh the PR, please remove the `stale` label.
Your PR has had no update for 14 days and it is marked as a stale PR. If it is not updated within 14 days, the PR will automatically be closed.
The `stale` label is removed automatically when you update or comment on your PR, or when a maintainer reviews it. You can also remove the label manually.

- description: Close prs that have not been updated in 28 days
frequencies:
Expand All @@ -45,5 +46,63 @@ configuration:
Hi @${issueAuthor}.
This PR will be closed since it has had no update for 28 days. If this change is still relevant, please reopen the PR.

eventResponderTasks:
- description: Remove the stale label when the PR author updates the PR
if:
- payloadType: Pull_Request
- isActivitySender:
issueAuthor: true
- not:
labelAdded:
label: stale
- hasLabel:
label: stale
- isOpen
then:
- removeLabel:
label: stale

- description: Remove the stale label when the PR author comments
if:
- payloadType: Issue_Comment
- isPullRequest
- isAction:
action: Created
- isActivitySender:
issueAuthor: true
- hasLabel:
label: stale
- isOpen
then:
- removeLabel:
label: stale

- description: Remove the stale label when the PR author or a maintainer reviews the PR
if:
- or:
- and:
- payloadType: Pull_Request_Review
- isAction:
action: Submitted
- and:
- payloadType: Pull_Request_Review_Comment
- isAction:
action: Created
- or:
- isActivitySender:
issueAuthor: true
- activitySenderHasAssociation:
association: Owner
- activitySenderHasAssociation:
association: Member
- activitySenderHasAssociation:
association: Collaborator
- hasLabel:
label: stale
- isOpen
then:
- removeLabel:
label: stale

onFailure:
onSuccess:
Loading