[Merged by Bors] - feat(Algebra/Order/Module): add missing instances #22391
Workflow file for this run
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
on: | |
pull_request_target: | |
types: [labeled, unlabeled] | |
# Limit permissions for GITHUB_TOKEN for the entire workflow | |
permissions: | |
contents: read # minimum permissions for actions/checkout & actions/setup-python | |
# All other permissions are implicitly 'none' | |
jobs: | |
# When a PR is (un)labelled with awaiting-author or maintainer-merge, | |
# add resp. remove the matching emoji reaction from zulip messages. | |
set_pr_emoji: | |
if: (github.event.label.name == 'awaiting-author' || github.event.label.name == 'maintainer-merge') && | |
github.repository == 'leanprover-community/mathlib4' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout mathlib repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: master | |
sparse-checkout: | | |
scripts/zulip_emoji_reactions.py | |
- name: Set up Python | |
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install zulip | |
- name: Add or remove emoji | |
env: | |
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }} | |
ZULIP_EMAIL: github-mathlib4-bot@leanprover.zulipchat.com | |
ZULIP_SITE: https://leanprover.zulipchat.com | |
PR_NUMBER: ${{ github.event.number}} | |
LABEL_STATUS: ${{ github.event.action }} | |
LABEL_NAME: ${{ github.event.label.name }} | |
PR_LABELS: ${{ toJSON(github.event.pull_request.labels.*.name) }} | |
run: | | |
printf $'Running the python script with:\nPR number: "%s"\nlabel status: "%s"\nlabel: "%s"\nPR labels: "%s"\n' "$PR_NUMBER" "$LABEL_STATUS" "$LABEL" "$PR_LABELS" | |
python scripts/zulip_emoji_reactions.py "$ZULIP_API_KEY" "$ZULIP_EMAIL" "$ZULIP_SITE" "$LABEL_STATUS" "$LABEL_NAME" "$PR_NUMBER" "$PR_LABELS" |