From bb2acbf31a4c80ac5cea0b175f60920fe7971130 Mon Sep 17 00:00:00 2001 From: rtibblesbot Date: Wed, 16 Sep 2026 06:55:22 -0700 Subject: [PATCH] Migrate to the shared automation-template.yml entry point Replaces the seven call-* workflows with one unedited copy of automation-template.yml from learningequality/.github. Routing moves to the central reusable automation.yml; no leaf logic changes. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/automation.yml | 51 +++++++++++++++++++ .../call-contributor-issue-comment.yml | 12 ----- .../workflows/call-contributor-pr-reply.yml | 12 ----- .../workflows/call-manage-issue-header.yml | 11 ---- .../workflows/call-pull-request-target.yml | 11 ---- .../workflows/call-update-pr-spreadsheet.yml | 14 ----- .../community-contribution-labeling.yml | 10 ---- .github/workflows/unassign-inactive.yaml | 13 ----- 8 files changed, 51 insertions(+), 83 deletions(-) create mode 100644 .github/workflows/automation.yml delete mode 100644 .github/workflows/call-contributor-issue-comment.yml delete mode 100644 .github/workflows/call-contributor-pr-reply.yml delete mode 100644 .github/workflows/call-manage-issue-header.yml delete mode 100644 .github/workflows/call-pull-request-target.yml delete mode 100644 .github/workflows/call-update-pr-spreadsheet.yml delete mode 100644 .github/workflows/community-contribution-labeling.yml delete mode 100644 .github/workflows/unassign-inactive.yaml diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml new file mode 100644 index 0000000..3208db2 --- /dev/null +++ b/.github/workflows/automation.yml @@ -0,0 +1,51 @@ +# This file is generated by scripts/generate-automation.js from automation-registry.yml. +# Do not edit it by hand - edit the registry and run: +# node scripts/generate-automation.js +# +# Caller template: copy this file to .github/workflows/automation.yml in a consumer repo. +# No edits are needed - the on: block is the exhaustive union of every enabled automation. +name: Automation +on: # zizmor: ignore[dangerous-triggers] + issue_comment: + types: + - created + issues: + types: + - assigned + - labeled + - opened + - reopened + - unassigned + - unlabeled + pull_request_review_comment: + types: + - created + pull_request_target: + types: + - assigned + - closed + - edited + - labeled + - opened + - reopened + - review_request_removed + - review_requested + - unassigned + schedule: + - cron: 1 0 * * 1 + workflow_dispatch: {} +permissions: + contents: write + pull-requests: write +jobs: + automation: + name: Run automations + uses: learningequality/.github/.github/workflows/automation.yml@main + secrets: + CONTRIBUTIONS_SHEET_NAME: ${{ secrets.CONTRIBUTIONS_SHEET_NAME }} + CONTRIBUTIONS_SPREADSHEET_ID: ${{ secrets.CONTRIBUTIONS_SPREADSHEET_ID }} + GH_UPLOADER_GCP_SA_CREDENTIALS: ${{ secrets.GH_UPLOADER_GCP_SA_CREDENTIALS }} + LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} + LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} + SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL: ${{ secrets.SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/call-contributor-issue-comment.yml b/.github/workflows/call-contributor-issue-comment.yml deleted file mode 100644 index a9512b4..0000000 --- a/.github/workflows/call-contributor-issue-comment.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Handle contributor comment on GitHub issue -on: - issue_comment: - types: [created] -jobs: - call-workflow: - uses: learningequality/.github/.github/workflows/contributor-issue-comment.yml@main - secrets: - LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} - LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL: ${{ secrets.SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL }} diff --git a/.github/workflows/call-contributor-pr-reply.yml b/.github/workflows/call-contributor-pr-reply.yml deleted file mode 100644 index e8316e0..0000000 --- a/.github/workflows/call-contributor-pr-reply.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Send reply on a new contributor pull request -on: - pull_request_target: - types: [opened] -jobs: - call-workflow: - name: Call shared workflow - uses: learningequality/.github/.github/workflows/contributor-pr-reply.yml@main - secrets: - LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} - LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} - SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL: ${{ secrets.SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL }} diff --git a/.github/workflows/call-manage-issue-header.yml b/.github/workflows/call-manage-issue-header.yml deleted file mode 100644 index 845a679..0000000 --- a/.github/workflows/call-manage-issue-header.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Manage issue header -on: - issues: - types: [opened, reopened, labeled, unlabeled] -jobs: - call-workflow: - name: Call shared workflow - uses: learningequality/.github/.github/workflows/manage-issue-header.yml@main - secrets: - LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} - LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} diff --git a/.github/workflows/call-pull-request-target.yml b/.github/workflows/call-pull-request-target.yml deleted file mode 100644 index e499bcd..0000000 --- a/.github/workflows/call-pull-request-target.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Handle pull request events -on: - pull_request_target: - types: [opened, review_requested, labeled] -jobs: - call-workflow: - name: Call shared workflow - uses: learningequality/.github/.github/workflows/pull-request-target.yml@main - secrets: - LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} - LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} diff --git a/.github/workflows/call-update-pr-spreadsheet.yml b/.github/workflows/call-update-pr-spreadsheet.yml deleted file mode 100644 index 837a34e..0000000 --- a/.github/workflows/call-update-pr-spreadsheet.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Update community pull requests spreadsheet -on: - pull_request_target: - types: [assigned, unassigned, opened, closed, reopened, edited, review_requested, review_request_removed] -jobs: - call-workflow: - name: Call shared workflow - uses: learningequality/.github/.github/workflows/update-pr-spreadsheet.yml@main - secrets: - LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} - LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} - CONTRIBUTIONS_SPREADSHEET_ID: ${{ secrets.CONTRIBUTIONS_SPREADSHEET_ID }} - CONTRIBUTIONS_SHEET_NAME: ${{ secrets.CONTRIBUTIONS_SHEET_NAME }} - GH_UPLOADER_GCP_SA_CREDENTIALS: ${{ secrets.GH_UPLOADER_GCP_SA_CREDENTIALS }} diff --git a/.github/workflows/community-contribution-labeling.yml b/.github/workflows/community-contribution-labeling.yml deleted file mode 100644 index 5bc59f8..0000000 --- a/.github/workflows/community-contribution-labeling.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Community Contribution Label -on: - issues: - types: [assigned, unassigned] -jobs: - call-label-action: - uses: learningequality/.github/.github/workflows/community-contribution-label.yml@main - secrets: - LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} - LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} diff --git a/.github/workflows/unassign-inactive.yaml b/.github/workflows/unassign-inactive.yaml deleted file mode 100644 index bfb87ca..0000000 --- a/.github/workflows/unassign-inactive.yaml +++ /dev/null @@ -1,13 +0,0 @@ -name: "Unassign Inactive Contributors" -run-name: Unassign Inactive Contributors -on: - schedule: - - cron: "1 0 * * 1" # Every Monday at 00:01 UTC - workflow_dispatch: -jobs: - unassign-inactive: - uses: learningequality/.github/.github/workflows/unassign-inactive-issues.yaml@main - secrets: - LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} - LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} - SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL: ${{ secrets.SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL }}