Skip to content

[BUG] MSM bug fixes #344

[BUG] MSM bug fixes

[BUG] MSM bug fixes #344

Workflow file for this run

name: Pull request labelled
on:
pull_request:
types: [labeled]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
ai-pull-request:
if: ${{ github.event.label.name == 'AI pull request' }}
runs-on: ubuntu-24.04
steps:
- name: Create app token
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.PR_APP_ID }}
private-key: ${{ secrets.PR_APP_KEY }}
- name: Checkout main
uses: actions/checkout@v5
with:
sparse-checkout: .github/utilities
- name: Setup Python 3.12
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install PyGithub
run: pip install -Uq PyGithub
- name: Process AI label
id: handle_spam
run: python .github/utilities/ai_spam.py
env:
CONTEXT_GITHUB: ${{ toJson(github) }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}