Skip to content

Commit 0d78eab

Browse files
authored
add basic workflows (#516)
* add basic workflows * format
1 parent 27747d1 commit 0d78eab

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Community Feedback Auto Comment
2+
3+
on:
4+
issues:
5+
types:
6+
- labeled
7+
jobs:
8+
add-comment:
9+
if: github.event.label.name == 'needs community feedback'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
steps:
14+
- name: Check For Existing Comment
15+
uses: peter-evans/find-comment@v3
16+
id: finder
17+
with:
18+
issue-number: ${{ github.event.issue.number }}
19+
comment-author: 'github-actions[bot]'
20+
body-includes: 'Thanks for the feature request! We are going to give the community'
21+
22+
- name: Add Community Feedback Comment
23+
if: steps.finder.outputs.comment-id == ''
24+
uses: peter-evans/create-or-update-comment@v4
25+
with:
26+
issue-number: ${{ github.event.issue.number }}
27+
body: |
28+
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Info-Needed Closer
2+
on:
3+
schedule:
4+
- cron: 20 12 * * * # 5:20am Redmond
5+
repository_dispatch:
6+
types: [trigger-needs-more-info]
7+
workflow_dispatch:
8+
9+
permissions:
10+
issues: write
11+
12+
jobs:
13+
main:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Actions
17+
uses: actions/checkout@v4
18+
with:
19+
repository: 'microsoft/vscode-github-triage-actions'
20+
path: ./actions
21+
ref: stable
22+
- name: Install Actions
23+
run: npm install --production --prefix ./actions
24+
- name: Run info-needed Closer
25+
uses: ./actions/needs-more-info-closer
26+
with:
27+
token: ${{secrets.GITHUB_TOKEN}}
28+
label: info-needed
29+
closeDays: 30
30+
closeComment: "Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. \n\nHappy Coding!"
31+
pingDays: 30
32+
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information."

0 commit comments

Comments
 (0)