Skip to content

Commit

Permalink
chore: add new workflows (#780)
Browse files Browse the repository at this point in the history
* chore: add new workflows

* chore: add new workflows
  • Loading branch information
tobySolutions authored Oct 25, 2023
1 parent 2f2388c commit cbfff8e
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/auto-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Automated Responses

on:
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
respond:
runs-on: ubuntu-latest
steps:
- name: Comment on new issue
if: github.event_name == 'issues'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Thanks for opening this issue! A maintainer will review it soon.',
})
- name: Comment on new pull request
if: github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.pulls.createReview({
pull_number: context.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Thanks for opening this pull request! A maintainer will review it soon.',
event: 'COMMENT',
})
16 changes: 16 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Auto Labeling

on:
issues:
types: [opened, labeled, unlabeled]
pull_request:
types: [opened, labeled, unlabeled]

jobs:
label:
runs-on: ubuntu-latest
steps:
- name: Label issues and pull requests
uses: actions/labeler@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Stale Issues and PRs

on:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight

jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Close stale issues and pull requests
uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 15
days-before-close: 7
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.'
stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.'

2 comments on commit cbfff8e

@vercel
Copy link

@vercel vercel bot commented on cbfff8e Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sink – ./packages/kitchen-sink

sink-millionjs.vercel.app
million-kitchen-sink-atit.vercel.app
sink-git-main-millionjs.vercel.app
sink.million.dev

@vercel
Copy link

@vercel vercel bot commented on cbfff8e Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

million-kitchen-sink – ./packages/kitchen-sink

million-kitchen-sink.vercel.app
million-kitchen-sink-millionjs.vercel.app
million-kitchen-sink-git-main-millionjs.vercel.app

Please sign in to comment.