Skip to content
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
15 changes: 9 additions & 6 deletions .github/workflows/learning-room-pr-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
if: github.event_name == 'issues' && github.event.action == 'opened'
steps:
- name: Greet First Issue
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
try {
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:

steps:
- name: Check if first-time contributor
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
try {
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:

- name: Post validation results
if: always()
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const fs = require('fs');
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:

- name: Set status check
if: always()
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const fs = require('fs');
Expand Down Expand Up @@ -282,7 +282,7 @@ jobs:

steps:
- name: Congratulate reviewer
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const reviewBody = [
Expand Down Expand Up @@ -311,8 +311,11 @@ jobs:
if: github.event_name == 'issue_comment'

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Auto-respond to keywords
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const { getAutoResponse } = require('./.github/scripts/comment-responder.js');
Expand Down
8 changes: 4 additions & 4 deletions learning-room/.github/workflows/pr-validation-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: Check if first-time contributor
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
try {
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:

- name: Detect challenge context
id: challenge
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
// Detect which challenge this PR relates to from linked issues or branch name
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:

- name: Post validation results
if: always()
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const fs = require('fs');
Expand Down Expand Up @@ -288,7 +288,7 @@ jobs:
fi

- name: Respond to comment
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const { getAutoResponse } = require('./.github/scripts/comment-responder.js');
Expand Down
49 changes: 25 additions & 24 deletions scripts/classroom/Reset-SupportHubEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -148,30 +148,31 @@ contact_links:
"@
[IO.File]::WriteAllText((Join-Path $clonePath '.github/ISSUE_TEMPLATE/config.yml'), $issueConfig, [Text.UTF8Encoding]::new($false))

$firstResponse = @"
name: First Response Assistant

on:
issues:
types: [opened]

permissions:
issues: write

jobs:
first-response:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: `Thanks for opening this request. A maintainer will review it within 24 to 48 hours.`
});
"@
$firstResponse = @(
'name: First Response Assistant'
''
'on:'
' issues:'
' types: [opened]'
''
'permissions:'
' issues: write'
''
'jobs:'
' first-response:'
' runs-on: ubuntu-latest'
' steps:'
' - uses: actions/github-script@v8'
' with:'
' script: |'
' await github.rest.issues.createComment({'
' owner: context.repo.owner,'
' repo: context.repo.repo,'
' issue_number: context.issue.number,'
" body: 'Thanks for opening this request. A maintainer will review it within 24 to 48 hours.'"
' });'
''
) -join "`n"
[IO.File]::WriteAllText((Join-Path $clonePath '.github/workflows/first-response.yml'), $firstResponse, [Text.UTF8Encoding]::new($false))

Invoke-CheckedCommand git @('config', 'user.name', 'accesswatch')
Expand Down
Loading