Skip to content

Commit

Permalink
Merge pull request #4 from replicatedhq/auto-label-docs-repos
Browse files Browse the repository at this point in the history
add workflow for auto-labeling docs repo PRs
  • Loading branch information
e3b0c442 authored Feb 15, 2023
2 parents 67f51f1 + 4bc7d8f commit 67cb3cd
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 67cb3cd

Please sign in to comment.