|
| 1 | +# SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +name: Triage outside issues |
| 17 | + |
| 18 | +on: |
| 19 | + issues: |
| 20 | + types: |
| 21 | + - opened |
| 22 | + |
| 23 | +env: |
| 24 | + GITHUB_TOKEN: ${{ secrets.ISSUE_PR_WRITE_GITHUB_TOKEN }} |
| 25 | + |
| 26 | +jobs: |
| 27 | + Label-Issue: |
| 28 | + runs-on: ubuntu-latest |
| 29 | + # Only run if the issue author is not part of RAPIDS |
| 30 | + if: ${{ ! contains(fromJSON('["OWNER", "MEMBER", "CONTRIBUTOR", "COLLABORATOR"]'), github.event.issue.author_association)}} |
| 31 | + steps: |
| 32 | + - name: add-external-labels |
| 33 | + run: | |
| 34 | + issue_url=${{ github.event.issue.html_url }} |
| 35 | + gh issue edit ${issue_url} --add-label "Needs Triage,External" |
| 36 | + |
| 37 | + - name: add-comment-to-issue |
| 38 | + run: | |
| 39 | + issue_url=${{ github.event.issue.html_url }} |
| 40 | + author=${{ github.event.issue.user.login }} |
| 41 | + echo ${author} |
| 42 | + gh issue comment ${issue_url} --body "Hi @${author}! |
| 43 | + |
| 44 | + Thanks for submitting this issue - our team has been notified and we'll get back to you as soon as we can! |
| 45 | + In the mean time, feel free to add any relevant information to this issue." |
0 commit comments