-
Notifications
You must be signed in to change notification settings - Fork 6
Final '25 community-related automations package #35
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
Merged
MisRob
merged 35 commits into
learningequality:main
from
MisRob:community-automations-updates
Dec 5, 2025
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
72a09e9
Append info on author activity to Slack notification
MisRob 4696bc7
Improve naming + lint
MisRob afd99f5
Do not send support-dev notification
MisRob 2c2fc3c
Prevent bot replies on issues reported by the same user
MisRob 1964588
Add workflow documentation
MisRob d1a411a
Account for multiple assignees
MisRob e3c92b5
Escape less and greater than characters
MisRob f7d1d34
Run workflow only on open issues
MisRob 616ad43
Re-organize logic that detects contributors
MisRob cf687ff
Use is-close-contributor
MisRob f2928aa
Add defensive check
MisRob a445d67
Update sheet workflow to follow conventions
MisRob 81dcea2
Fix sheet not being updated when..
MisRob 2e8de12
Add holiday message and PR reply workflows
MisRob 9f11d18
Simplification and fixes of how Slack channel is determined
MisRob 1abd76e
Optimize notifications for assigned issue
MisRob 1f33613
Simplify and fix conditions
MisRob 0618db8
Fix missing Slack notification about bot
MisRob ef571f1
Finalize PR message
MisRob f3b6493
Install lint,prettier,precommit
MisRob 899ae78
Disable detection of close contributors based on gh teams
MisRob 8df6973
Remove shellcheck installation
MisRob 02f6b6f
Run linters
MisRob 18a9ee5
Update message
MisRob ba8dd22
Remove holiday message date restriction
MisRob 70393f0
Temporarily change branch reference for testing
MisRob c20b4eb
Fix missing parameters
MisRob 0fefeef
Fix condition
MisRob 784d98e
Fix variable mismatch
MisRob 437211d
Revert "Temporarily change branch reference for testing"
MisRob 57288e4
Add GSoC note
MisRob f069c30
Reapply "Temporarily change branch reference for testing"
MisRob 23ec661
Bold format
MisRob 39479e5
Fix format
MisRob 9b8579a
Revert "Temporarily change branch reference for testing"
MisRob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| var ERROR = 2; | ||
|
|
||
| module.exports = { | ||
| env: { | ||
| es6: true, | ||
| browser: true, | ||
| node: true, | ||
| }, | ||
| parserOptions: { | ||
| sourceType: 'module', | ||
| ecmaVersion: 2020, | ||
| ecmaFeatures: { | ||
| impliedStrict: true, | ||
| }, | ||
| }, | ||
| extends: ['eslint:recommended'], | ||
| rules: { | ||
| 'comma-style': ERROR, | ||
| 'no-console': ERROR, | ||
| 'max-len': [ | ||
| ERROR, | ||
| 100, | ||
| { | ||
| ignoreStrings: true, | ||
| ignoreTemplateLiterals: true, | ||
| ignoreUrls: true, | ||
| ignoreTrailingComments: true, | ||
| }, | ||
| ], | ||
| }, | ||
| }; |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| 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 }} | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Post holiday message on pull request or issue comment | ||
| on: | ||
| pull_request_target: | ||
| types: [opened] | ||
| issue_comment: | ||
| types: [created] | ||
| jobs: | ||
| call-workflow: | ||
| name: Call shared workflow | ||
| uses: learningequality/.github/.github/workflows/holiday-message.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 }} |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,11 @@ | ||
| 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 }} | ||
| LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} | ||
| LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| 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 }} |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,49 +1,43 @@ | ||
| name: Community Contribution Label | ||
|
|
||
| on: | ||
| workflow_call: | ||
| secrets: | ||
| LE_BOT_APP_ID: | ||
| description: "GitHub App ID for authentication" | ||
| required: true | ||
| LE_BOT_PRIVATE_KEY: | ||
| description: "GitHub App Private Key for authentication" | ||
| required: true | ||
| workflow_call: | ||
| secrets: | ||
| LE_BOT_APP_ID: | ||
| description: 'GitHub App ID for authentication' | ||
| required: true | ||
| LE_BOT_PRIVATE_KEY: | ||
| description: 'GitHub App Private Key for authentication' | ||
| required: true | ||
| jobs: | ||
| reusable-job: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Check event context | ||
| run: | | ||
| if [[ "${{ github.event_name }}" != "issues" ]] || [[ "${{ github.event.action }}" != "assigned" && "${{ github.event.action }}" != "unassigned" ]]; then | ||
| echo "This workflow should only run on issue assigned/unassigned events" | ||
| exit 1 | ||
| fi | ||
| if [[ "${{ github.event_name }}" != "issues" ]] || [[ "${{ github.event.action }}" != "assigned" && "${{ github.event.action }}" != "unassigned" ]]; then | ||
| echo "This workflow should only run on issue assigned/unassigned events" | ||
| exit 1 | ||
| fi | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: learningequality/.github | ||
| path: .github-repo | ||
|
|
||
| repository: learningequality/.github | ||
| path: .github-repo | ||
| - name: Generate App Token | ||
| id: generate-token | ||
| uses: tibdex/github-app-token@v2 | ||
| with: | ||
| app_id: ${{ secrets.LE_BOT_APP_ID }} | ||
| private_key: ${{ secrets.LE_BOT_PRIVATE_KEY }} | ||
|
|
||
| app_id: ${{ secrets.LE_BOT_APP_ID }} | ||
| private_key: ${{ secrets.LE_BOT_PRIVATE_KEY }} | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.x' | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install requests | ||
|
|
||
| - name: Add/Remove Community Contribution Label | ||
| run: python .github-repo/scripts/community-contribution-label.py | ||
| env: | ||
| token: ${{ steps.generate-token.outputs.token }} | ||
| token: ${{ steps.generate-token.outputs.token }} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.