Skip to content

scheduler: config-threaded TLS/backoff + due window; rand + justfile fixes #3

scheduler: config-threaded TLS/backoff + due window; rand + justfile fixes

scheduler: config-threaded TLS/backoff + due window; rand + justfile fixes #3

name: copilot-review-notify

Check failure on line 1 in .github/workflows/copilot-review-notify.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/copilot-review-notify.yml

Invalid workflow file

(Line: 30, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SLACK_WEBHOOK_URL != ''
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"