Skip to content

Commit 77ca81b

Browse files
authored
External issue triage GHA (#1177)
closes #1176 This PR: - Removes the https://github.com/rapidsai/cuspatial/labels/Needs%20Triage label from the issue templates - Adds in a GHA that automatically adds the label, and comments automatically when an issue is filed from someone outside the team. ~TODO: Before we merge, we need to remove the `? -` from the https://github.com/rapidsai/cuspatial/labels/Needs%20Triage label, it breaks some integrations we have.~ DONE Authors: - Ben Jarmak (https://github.com/jarmak-nv) - Mark Harris (https://github.com/harrism) Approvers: - AJ Schmidt (https://github.com/ajschmidt8) - Mark Harris (https://github.com/harrism) URL: #1177
1 parent 1d2c174 commit 77ca81b

File tree

4 files changed

+48
-3
lines changed

4 files changed

+48
-3
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
name: Bug Report
1717
description: File a bug report for cuSpatial
1818
title: "[BUG]: "
19-
labels: ["bug", "? - Needs Triage"]
19+
labels: ["bug"]
2020

2121
body:
2222
- type: markdown

.github/ISSUE_TEMPLATE/documentation_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
name: Documentation Request
1717
description: Request updates or additions to cuSpatial's documentation
1818
title: "[DOC]: "
19-
labels: ["doc", "? - Needs Triage"]
19+
labels: ["doc"]
2020

2121
body:
2222
- type: markdown

.github/ISSUE_TEMPLATE/feature_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
name: Feature Request
1717
description: Request new or improved functionality or changes to existing cuSpatial functionality
1818
title: "[FEA]: "
19-
labels: ["feature request", "? - Needs Triage"]
19+
labels: ["feature request"]
2020

2121
body:
2222
- type: markdown
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

Comments
 (0)