Skip to content

[datasets] fix zero-dimension synthetic image for blank glyphs (#2016) #586

[datasets] fix zero-dimension synthetic image for blank glyphs (#2016)

[datasets] fix zero-dimension synthetic image for blank glyphs (#2016) #586

Workflow file for this run

name: pr-labels
on:
pull_request:
branches: main
types: closed
permissions:
contents: read
issues: write
pull-requests: write
jobs:
is-properly-labeled:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up python
uses: actions/setup-python@v7
- name: Install requests
run: pip install requests
- name: Process commit and find merger responsible for labeling
id: commit
run: echo "merger=$(python .github/verify_pr_labels.py ${{ github.event.pull_request.number }})" >> "$GITHUB_OUTPUT"
- name: 'Comment PR'
uses: actions/github-script@v9.0.0
if: ${{ steps.commit.outputs.merger != '' }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { issue: { number: issue_number }, repo: { owner, repo } } = context;
github.rest.issues.createComment({ issue_number, owner, repo, body: 'Hey ${{ steps.commit.outputs.merger }} 👋\nYou merged this PR, but it is not correctly labeled. The list of valid labels is available at https://github.com/mindee/doctr/blob/main/.github/verify_pr_labels.py' });