Skip to content

Commit

Permalink
add basic workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd authored Dec 10, 2024
1 parent 27747d1 commit be10549
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/community-feedback-auto-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Community Feedback Auto Comment

on:
issues:
types:
- labeled
jobs:
add-comment:
if: github.event.label.name == 'needs community feedback'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Check For Existing Comment
uses: peter-evans/find-comment@v3
id: finder
with:
issue-number: ${{ github.event.issue.number }}
comment-author: 'github-actions[bot]'
body-includes: 'Thanks for the feature request! We are going to give the community'

- name: Add Community Feedback Comment
if: steps.finder.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
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.
32 changes: 32 additions & 0 deletions .github/workflows/info-needed-closer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Info-Needed Closer
on:
schedule:
- cron: 20 12 * * * # 5:20am Redmond
repository_dispatch:
types: [trigger-needs-more-info]
workflow_dispatch:

permissions:
issues: write

jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v4
with:
repository: 'microsoft/vscode-github-triage-actions'
path: ./actions
ref: stable
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run info-needed Closer
uses: ./actions/needs-more-info-closer
with:
token: ${{secrets.GITHUB_TOKEN}}
label: info-needed
closeDays: 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!"
pingDays: 30
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 comments on commit be10549

Please sign in to comment.