Unverified Commit f21c6bd8 authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

fix pr-labels workflow (#8272)

parent a52607ec
...@@ -8,28 +8,33 @@ on: ...@@ -8,28 +8,33 @@ on:
jobs: jobs:
is-properly-labeled: is-properly-labeled:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
pull-requests: write
steps: steps:
- name: Set up python - name: Set up python
uses: actions/setup-python@v2 uses: actions/setup-python@v5
- name: Install requests - name: Install requests
run: pip install requests run: pip install requests
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Process commit and find merger responsible for labeling - name: Process commit and find merger responsible for labeling
id: commit id: commit
run: echo "merger=$(python .github/process_commit.py ${{ github.sha }})" >> $GITHUB_OUTPUT run: |
MERGER=$(python .github/process_commit.py ${{ github.sha }})
echo "merger=${MERGER}" | tee --append $GITHUB_OUTPUT
- name: Ping merger responsible for labeling if necessary - name: Ping merger responsible for labeling if necessary
if: ${{ steps.commit.outputs.merger != '' }} if: ${{ steps.commit.outputs.merger != '' }}
uses: mshick/add-pr-comment@v1 uses: mshick/add-pr-comment@v2
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
message: | message: |
Hey ${{ steps.commit.outputs.merger }}! Hey ${{ steps.commit.outputs.merger }}!
You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py You merged this PR, but no labels were added.
The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment