Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
4f1a2c3
fix: existing long-term-only mentors availability array
khairahscorner Sep 21, 2025
59e1bfa
Merge branch 'main' of https://github.com/Women-Coding-Community/Wome…
khairahscorner Sep 22, 2025
1972252
Automated import of Meetup events (#571)
khairahscorner Sep 23, 2025
9bb1d2c
Merge branch 'main' of https://github.com/khairahscorner/wcc into adh…
khairahscorner Sep 24, 2025
a5d8ce2
meetup workflow should only run on root repo, not forks
khairahscorner Sep 24, 2025
5d93cfc
reformat list indentation in mentors.yml to standard yml in prep for …
khairahscorner Sep 24, 2025
292cb54
Merge pull request #572 from khairahscorner/improvements
rajashreemunoli Sep 24, 2025
46c9935
updated slack link
rajashreemunoli Sep 26, 2025
90b976f
updated slack link (#573)
rajashreemunoli Sep 26, 2025
d3e7b94
chore(adhoc_mentorlink_autoclose): add workflow on default branch for…
rajashreemunoli Sep 26, 2025
7b37587
adhoc_mentorlink_autoclose: checkout feature branch from dispatch
rajashreemunoli Sep 26, 2025
f639e75
schedule: run 1–10 each month at 09:00 and 18:00 UTC
rajashreemunoli Sep 26, 2025
08192c7
updated cron values in adhoc_mentorlink_autoclose.yml
rajashreemunoli Sep 27, 2025
5c20463
Merge branch 'main' of https://github.com/rajashreemunoli/WomenCoding…
rajashreemunoli Sep 27, 2025
bd620aa
reactivate mentors now available
khairahscorner Sep 27, 2025
0734177
Merge pull request #574 from khairahscorner/reactivate-mentors
rajashreemunoli Sep 27, 2025
51758d8
Add Automation script/workflow for updating mentor data for ad-hoc mo…
khairahscorner Sep 28, 2025
34f4bd0
Merge branch 'Women-Coding-Community:main' into main
rajashreemunoli Sep 29, 2025
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
74 changes: 74 additions & 0 deletions .github/workflows/adhoc_availability_prep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Update Mentor Availabilities for Monthly Ad-Hoc Prep

on:
workflow_dispatch:
inputs:
month:
description: "Month number (e.g. 10 for October)"
required: true
file_id:
description: "Google Drive file ID of the Excel sheet with the availabilities"
required: true

jobs:
update-mentors:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('tools/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/requirements.txt

- name: Install and Configure rclone with Google Cloud service account
run: |
curl https://rclone.org/install.sh | sudo bash
echo '${{ secrets.GOOGLECLOUD_SERVICE_KEY_RETRIEVE_ADHOC_FILE_JSON }}' > service_account.json
rclone config create gdrive drive scope=drive service_account_file=service_account.json

- name: Download spreadsheet from Google Drive
run: |
rclone backend copyid gdrive: ${{ github.event.inputs.file_id }} tools/adhoc.xlsx

- name: Run script
run: |
cd tools
python automation_prepare_adhoc_availability.py adhoc.xlsx ${{ github.event.inputs.month }}

- name: Cleanup files
if: always()
run: rm -f service_account.json tools/adhoc.xlsx

- name: Create or Update Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GHA_ACTIONS_ALLOW_TOKEN }}
commit-message: "updated mentor hours, availabilities, and sort for monthly adhoc prep"
branch: "automation/adhoc-monthly-prep"
team-reviewers: |
Women-Coding-Community/leaders
title: "[WCC Bot] Monthly Ad-hoc Prep - Month ${{ github.event.inputs.month }}"
body: |
This PR was created automatically by a GitHub Action that handles mentor data updates for the monthly ad-hoc preparation.
Only `_data/mentors.yml` should be updated.

Please review the changes `_data/mentors.yml` and ensure that the changes are as expected before merging (Review the availability sheet used).
labels: |
automation
adhoc-prep
26 changes: 26 additions & 0 deletions .github/workflows/adhoc_mentorlink_autoclose-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: adhoc_mentorlink_autoclose – tests

on:
pull_request:
paths:
- "tools/adhoc_mentorlink_autoclose/**"
workflow_dispatch: {}

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install deps
run: |
python -m pip install --upgrade pip
pip install -r tools/adhoc_mentorlink_autoclose/requirements.txt

# Call with bash so you don't need chmod +x on Windows
- name: Run fixture test
run: bash tools/adhoc_mentorlink_autoclose/tests/test-auto-close-mentors.sh
85 changes: 85 additions & 0 deletions .github/workflows/adhoc_mentorlink_autoclose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: adhoc_mentorlink_autoclose – availability

on:
repository_dispatch:
# Apps Script will send exactly this type
types: [adhoc-mentorlink-autoclose-submit]
workflow_dispatch: {}
# Daily run (GitHub cron is UTC; this fires at 07:30 UTC every day)
# Your script itself uses Europe/London for date logic.
schedule:
# Run on the 1st–10th of each month at 09:00 UTC
- cron: "0 9 1-10 * *"
# Run on the 1st–10th of each month at 18:00 UTC
- cron: "0 18 1-10 * *"

permissions:
contents: write
pull-requests: write

concurrency:
group: adhoc_mentorlink_autoclose
cancel-in-progress: false

jobs:
run-adhoc_mentorlink_autoclose:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.client_payload.ref || 'feat/adhoc-mentorlink-autoclose' }}

- name: Debug which ref we checked out
run: |
echo "Checked out ref: ${{ github.event.client_payload.ref || 'feat/adhoc-mentorlink-autoclose' }}"

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install deps
run: |
python -m pip install --upgrade pip
pip install -r tools/adhoc_mentorlink_autoclose/requirements.txt

- name: Write Google service account key
env:
# Your secret name (as you set it)
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY_ADHOCMENTORLINKAUTOCLOSE }}
run: |
echo "$GCP_SA_KEY" > "$RUNNER_TEMP/sa.json"

- name: Run automation script
env:
GCP_SA_KEY_FILE: ${{ runner.TEMP }}/sa.json
SHEET_ID: ${{ vars.SHEET_ID }}
SHEET_WORKSHEET_TITLE: ${{ vars.SHEET_WORKSHEET_TITLE }}
MENTORS_YML_PATH: _data/mentors.yml
# London timezone for month filtering & logging
TIMEZONE: Europe/London
DRY_RUN: "0"
run: |
python tools/adhoc_mentorlink_autoclose/auto_close_mentors.py

- name: Create Pull Request
if: ${{ always() }}
id: cpr
uses: peter-evans/create-pull-request@v7
with:
commit-message: "adhoc_mentorlink_autoclose: disable ad-hoc mentors"
title: "adhoc_mentorlink_autoclose: capacity reached – run ${{ github.run_id }}"
body: |
Automation: adhoc_mentorlink_autoclose
Trigger: `${{ github.event_name }}` (type: `${{ github.event.action }}`)
Timezone: Europe/London
Sheet ID: `${{ vars.SHEET_ID }}`
Workflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
add-paths: |
_data/mentors.yml

- name: Print PR link (if any)
if: ${{ steps.cpr.outputs.pull-request-url }}
run: |
echo "Pull Request URL: ${{ steps.cpr.outputs.pull-request-url }}"
3 changes: 2 additions & 1 deletion .github/workflows/import_meetup_events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
import-meetup:
if: github.repository == 'Women-Coding-Community/WomenCodingCommunity.github.io'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
- name: Create or Update Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.MEETUP_IMPORT_ACTIONS_TOKEN }}
token: ${{ secrets.GHA_ACTIONS_ALLOW_TOKEN }}
commit-message: "Automated import of Meetup events"
branch: "automation/import-meetup-events"
team-reviewers: "Women-Coding-Community/leaders"
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ gtagId: "G-3V6VPT445S"

network:
linkedin: https://www.linkedin.com/company/womencodingcommunity
slack: https://join.slack.com/t/womencodingcommunity/shared_invite/zt-31h8amjsg-zojz1nO3YMpzab8MJUFxEA
slack: https://bit.ly/WCC-slack-invite
github: https://github.com/Women-Coding-Community
meetup: https://www.meetup.com/women-coding-community/
instagram: https://www.instagram.com/women_coding_community
Expand Down
19 changes: 19 additions & 0 deletions _data/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1396,3 +1396,22 @@
title: View meetup event
target: _target


- title: |
Book Club: Wild Courage
description: |
A bold, empowering, and energizing guide to embracing your ambition and chasing after what you want from an executive who spent nearly two decades climbing the ranks at Google.
category_style: book-club
category_name: Book Club
date: MON, OCT 27, 2025
expiration: "20251027"
host: "Silke Nodwell and Prabha Venkatesh"
speaker: ""
time: 07:00 PM GMT
image:
path: "https://secure.meetupstatic.com/photos/event/a/c/b/7/600_530324215.jpeg"
alt: WCC Meetup event image
link:
path: https://www.meetup.com/women-coding-community/events/310632213/
title: View meetup event
target: _target
Loading