1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/.github/workflows/needs-sme-workflow.yml
Ramya Parimi 3ac7733675 'needs SME' label automation (#26078)
* workflow for comment on adding sme label

* add period

* working on stale check

* change name and update comment

* testing

* testig

* tested workflows

* added cron schedule for stale check

* repo changed to docs

* more info on SME, changed name of workflow

* clarity

* Update .github/workflows/needs-sme-workflow.yml

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* comment for days before stale

* removed default token

* edited message for sme review

* sme full form

* changed time

* Update .github/workflows/needs-sme-workflow.yml

Co-authored-by: Janice <janiceilene@github.com>

* Update .github/workflows/needs-sme-workflow.yml

Co-authored-by: Janice <janiceilene@github.com>

Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Janice <janiceilene@github.com>
2022-03-30 12:36:09 +00:00

32 lines
1.3 KiB
YAML

name: Comment on adding "needs SME" label
# **What it does**: Comment on issues and pull requests when a "needs SME" label is added. SME = subject matter expert.
# **Why we have it**: We want to manage our queue of issues and pull requests that need sme review.
# **Who does it impact**: Everyone that works on docs or docs-internal.
on:
issues:
types: [labeled]
pull_request_target:
types: [labeled]
permissions:
issues: write
pull-requests: write
jobs:
add-comment:
if: ${{ github.repository == 'github/docs' && (github.event.label.name == 'needs SME' && github.event_name == 'issues' || github.event_name == 'pull_request_target') }}
runs-on: ubuntu-latest
steps:
- uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert :eyes:
- uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Thanks for opening a pull request! We've triaged this issue for technical review by a subject matter expert :eyes: