Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
33 changes: 33 additions & 0 deletions .github/workflows/auto-assign-review-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

name: Auto Assign Review Labels
on:
pull_request:
types: [opened, ready_for_review]

permissions:
pull-requests: write
contents: read

jobs:
assign-label:
runs-on: ubuntu-latest
if: >-
!github.event.pull_request.draft
&& github.repository == 'NVIDIA/Megatron-LM'
steps:
- name: Check out repository code
uses: actions/checkout@v4

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

- name: Install dependencies
run: pip install --no-cache-dir PyGithub

- name: Assign initial review label
env:
GH_TOKEN: ${{ github.token }}
run: python tests/test_utils/python_scripts/update_pr_labels.py --pr ${{ github.event.pull_request.number }} assign
12 changes: 5 additions & 7 deletions .github/workflows/auto-swap-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ jobs:
python-version: "3.10"

- name: Install dependencies
run: |
pip install --no-cache-dir PyGithub slack-sdk
run: pip install --no-cache-dir PyGithub

- name: Run Auto Reminder Bot
run: |
export GH_TOKEN=${{ github.token }}
export PR_NUMBER=${{ github.event.pull_request.number }}
python tests/test_utils/python_scripts/swap_pr_labels.py
- name: Swap labels after approval
env:
GH_TOKEN: ${{ github.token }}
run: python tests/test_utils/python_scripts/update_pr_labels.py --pr ${{ github.event.pull_request.number }} swap
147 changes: 0 additions & 147 deletions tests/test_utils/python_scripts/swap_pr_labels.py

This file was deleted.

Loading
Loading