scheduler: config-threaded TLS/backoff + due window; rand + justfile fixes #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: copilot-review-notify | ||
Check failure on line 1 in .github/workflows/copilot-review-notify.yml
|
||
on: | ||
pull_request_review: | ||
types: [submitted] | ||
jobs: | ||
comment: | ||
if: github.event.review.user.login == 'github-copilot[bot]' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
contents: read | ||
steps: | ||
- name: Add comment noting Copilot review | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const owner = context.repo.owner; | ||
const repo = context.repo.repo; | ||
const number = context.payload.pull_request.number; | ||
const url = context.payload.pull_request.html_url; | ||
await github.rest.issues.createComment({ | ||
owner, | ||
repo, | ||
issue_number: number, | ||
body: `Automated: GitHub Copilot has submitted a review for ${url}.` | ||
}); | ||
- name: Optional Slack notify | ||
if: ${{ secrets.SLACK_WEBHOOK_URL != '' }} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
run: | | ||
pr_url="${{ github.event.pull_request.html_url }}" | ||
payload=$(jq -n --arg text "Copilot reviewed $pr_url" '{text: $text}') | ||
curl -X POST -H 'Content-type: application/json' --data "$payload" "$SLACK_WEBHOOK_URL" |