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

fetching latest #2421

Merged
merged 7 commits into from
Feb 15, 2024
Merged
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
116 changes: 116 additions & 0 deletions .github/policies/issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: Housekeeping - Issues management
description: Azure Arc Jumpstart management of issues using GitHub Policies
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description:
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: needs author feedback
- noActivitySince:
days: 7
- isNotLabeledWith:
label: no recent activity
actions:
- addLabel:
label: no recent activity
- addReply:
reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**. Thank you ${issueAuthor} for your contributions to the repository!
- description:
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: no recent activity
- noActivitySince:
days: 14
actions:
- addReply:
reply: Because of no activity for over **14 days**, we're closing this issue. Please open a new issue report if more support is required. Thank you for your support ${issueAuthor}!
- closeIssue
- description:
frequencies:
- hourly:
hour: 12
filters:
- isOpen
- isIssue
- hasLabel:
label: investigate
- noActivitySince:
days: 3
actions:
- addReply:
reply: "${assignees}\nGentle ping that this issue needs attention. "
eventResponderTasks:
- if:
- payloadType: Issues
- isAction:
action: Opened
then:
- addReply:
reply: 'Hi ${issueAuthor}! Thank you for opening this issue. We appreciate your contribution and welcome you to our community! We are glad to have you here and to have your input on the Azure Arc Jumpstart.'
description:
- if:
- payloadType: Issue_Comment
- hasLabel:
label: no recent activity
- isAction:
action: Created
- isOpen
then:
- removeLabel:
label: no recent activity
- addLabel:
label: investigate
description:
- if:
- payloadType: Issues
- not:
isAction:
action: Closed
- hasLabel:
label: no recent activity
- not:
labelAdded:
label: no recent activity
then:
- removeLabel:
label: no recent activity
description:
- if:
- payloadType: Issue_Comment
then:
- cleanEmailReply
description:
- if:
- payloadType: Issue_Comment
- isActivitySender:
issueAuthor: True
- or:
- hasLabel:
label: needs author feedback
- hasLabel:
label: no recent activity
then:
- removeLabel:
label: needs author feedback
- removeLabel:
label: no recent activity
- addLabel:
label: review
description:
onFailure:
onSuccess:
133 changes: 133 additions & 0 deletions .github/policies/pullrequests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: Housekeeping - PRs management
description: Azure Arc Jumpstart management of PRs using GitHub Policies
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description:
frequencies:
- hourly:
hour: 3
filters:
- isPullRequest
- isOpen
- hasLabel:
label: needs author feedback
- noActivitySince:
days: 7
- isNotLabeledWith:
label: no recent activity
actions:
- addLabel:
label: no recent activity
- addReply:
reply: This pull request has been automatically marked as stale because it was marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**. Thank you ${issueAuthor} for your contributions to this project!
- description:
frequencies:
- hourly:
hour: 3
filters:
- isOpen
- isPullRequest
- hasLabel:
label: no recent activity
- noActivitySince:
days: 14
actions:
- addReply:
reply: Because of no activity for over **14 days**, we're closing this pull request. Please open a new issue report if more support is required. Thank you for your support ${issueAuthor}!
- description:
frequencies:
- hourly:
hour: 12
filters:
- isOpen
- isPullRequest
- hasLabel:
label: investigate
- noActivitySince:
days: 3
actions:
- addReply:
reply: "${assignees}\nGentle ping that this issue needs attention. "
eventResponderTasks:
- if:
- payloadType: Pull_Request
- isAction:
action: Opened
then:
- addReply:
reply: 'Hi ${issueAuthor}! Thank you for opening this Pull Request. Someone will review it soon. Thank you for committing to making the Azure Arc Jumpstart better.'
description:
- if:
- payloadType: Pull_Request_Review
- isAction:
action: Submitted
- isReviewState:
reviewState: Changes_requested
then:
- addLabel:
label: needs author feedback
description:
- if:
- payloadType: Pull_Request
- isActivitySender:
issueAuthor: True
- not:
isAction:
action: Closed
- or:
- hasLabel:
label: needs author feedback
- hasLabel:
label: no recent activity
then:
- removeLabel:
label: needs author feedback
- removeLabel:
label: no recent activity
- addLabel:
label: review
description:
- if:
- payloadType: Pull_Request
- isAction:
action: Null
- isOpen
then:
- addLabel:
label: review
description:
- if:
- payloadType: Pull_Request_Review
- isAction:
action: Submitted
- isOpen
then:
- removeLabel:
label: review
- removeLabel:
label: no recent activity
description:
- if:
- payloadType: Pull_Request_Review
- isActivitySender:
issueAuthor: True
- or:
- hasLabel:
label: needs author feedback
- hasLabel:
label: no recent activity
then:
- removeLabel:
label: needs author feedback
- removeLabel:
label: no recent activity
- addLabel:
label: review
description:
onFailure:
onSuccess:
24 changes: 0 additions & 24 deletions .github/workflows/housekeeping-stale.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/housekeeping-welcome.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1515,9 +1515,9 @@ foreach ($path in $HCIBoxConfig.Paths.GetEnumerator()) {
}

# Download HCIBox VHDs
Write-Host "[Build cluster - Step 1/10] Downloading HCIBox VHDs. This will may take some time..." -ForegroundColor Green
BITSRequest -Params @{'Uri'='https://aka.ms/AAnn1dd'; 'Filename'="$($HCIBoxConfig.Paths.VHDDir)\AZSHCI.vhdx" }
BITSRequest -Params @{'Uri'='https://jsvhds.blob.core.windows.net/hcibox23h2/AZSHCI.sha256?sp=r&st=2024-01-16T15:09:53Z&se=2027-01-16T23:09:53Z&spr=https&sv=2022-11-02&sr=b&sig=fM6nSGOUHIB90egY95Oc02NfXxFmh8fPK0bnibjAdQU%3D'; 'Filename'="$($HCIBoxConfig.Paths.VHDDir)\AZSHCI.sha256" }
Write-Host "[Build cluster - Step 1/10] Downloading HCIBox VHDs" -ForegroundColor Green
BITSRequest -Params @{'Uri'='https://aka.ms/VHD-HCIBox-HCI-Prod'; 'Filename'="$($HCIBoxConfig.Paths.VHDDir)\AZSHCI.vhdx" }
BITSRequest -Params @{'Uri'='https://aka.ms/VHDHash-HCIBox-HCI-Prod'; 'Filename'="$($HCIBoxConfig.Paths.VHDDir)\AZSHCI.sha256" }
$checksum = Get-FileHash -Path "$($HCIBoxConfig.Paths.VHDDir)\AZSHCI.vhdx"
$hash = Get-Content -Path "$($HCIBoxConfig.Paths.VHDDir)\AZSHCI.sha256"
if ($checksum.Hash -eq $hash) {
Expand All @@ -1527,8 +1527,8 @@ else {
Write-Error "AZSCHI.vhdx is corrupt. Aborting deployment. Re-run C:\HCIBox\HCIBoxLogonScript.ps1 to retry"
throw
}
BITSRequest -Params @{'Uri'='https://aka.ms/AAnnebv'; 'Filename'="$($HCIBoxConfig.Paths.VHDDir)\GUI.vhdx"}
BITSRequest -Params @{'Uri'='https://jsvhds.blob.core.windows.net/hcibox23h2/gui.sha256?sp=r&st=2024-01-16T15:10:38Z&se=2027-01-16T23:10:38Z&spr=https&sv=2022-11-02&sr=b&sig=yeWvM%2FEvDcVfrJOk%2FacJublzc%2FXjYWibpzDNQl40CvA%3D'; 'Filename'="$($HCIBoxConfig.Paths.VHDDir)\GUI.sha256" }
BITSRequest -Params @{'Uri'='https://aka.ms/VHD-HCIBox-Mgmt-Prod'; 'Filename'="$($HCIBoxConfig.Paths.VHDDir)\GUI.vhdx"}
BITSRequest -Params @{'Uri'='https://aka.ms/VHDHash-HCIBox-Mgmt-Prod'; 'Filename'="$($HCIBoxConfig.Paths.VHDDir)\GUI.sha256" }
$checksum = Get-FileHash -Path "$($HCIBoxConfig.Paths.VHDDir)\GUI.vhdx"
$hash = Get-Content -Path "$($HCIBoxConfig.Paths.VHDDir)\GUI.sha256"
if ($checksum.Hash -eq $hash) {
Expand Down