Skip to content

Commit

Permalink
add workflow for auto-labeling docs repo PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
e3b0c442 committed Feb 13, 2023
1 parent 67f51f1 commit 4bc7d8f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions auto-label-doc-repos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
pull_request:
types: [opened]

name: Auto-label new PRs

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.DOCS_GH_PAT }}
script: |
const labels = ['type::feature', 'type::docs']
github.rest.issues.addLabels({
...context.repo,
issue_number: context.issue.number,
labels
})

0 comments on commit 4bc7d8f

Please sign in to comment.