generated from arvinxx/vercel-serverless-api-template
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: add reusable gateway function
- Loading branch information
Showing
11 changed files
with
373 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { defineConfig } from 'father'; | ||
|
||
export default defineConfig({ | ||
cjs: { output: 'dist' }, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Dependabot Auto Merge | ||
on: | ||
pull_request_target: | ||
types: [labeled, edited] | ||
|
||
jobs: | ||
merge: | ||
if: contains(github.event.pull_request.labels.*.name, 'dependencies') | ||
name: Dependabot Auto Merge | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Merge | ||
uses: ahmadnassri/action-dependabot-auto-merge@v2 | ||
with: | ||
command: merge | ||
target: minor | ||
github-token: ${{ secrets.GH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Contributor Helper | ||
|
||
on: | ||
# 🌏 Think about the planet! No need to update stats too frequently | ||
schedule: [{ cron: '0 18 * * *' }] | ||
# 💡 The following line lets you run workflow manually from the action tab! | ||
workflow_dispatch: | ||
jobs: | ||
contributor: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- uses: actions-cool/contributor-helper@v1 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
style: 'simple' | ||
update-files: 'README.md' | ||
update-places: '<!-- CONTRIBUTION GROUP -->/<!-- CONTRIBUTION END -->' | ||
|
||
- name: Commit and push if changed | ||
run: |- | ||
git diff | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "github-actions" | ||
git pull | ||
git add -A | ||
git commit -m "🤖 docs: Auto update contributors" || exit 0 | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Issue Check Inactive | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 */15 * *' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-check-inactive: | ||
permissions: | ||
issues: write # for actions-cool/issues-helper to update issues | ||
pull-requests: write # for actions-cool/issues-helper to update PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check-inactive | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'check-inactive' | ||
inactive-label: 'Inactive' | ||
inactive-day: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Issue Close Require | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-close-require: | ||
permissions: | ||
issues: write # for actions-cool/issues-helper to update issues | ||
pull-requests: write # for actions-cool/issues-helper to update PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: need reproduce | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issues' | ||
labels: '✅ Fixed' | ||
inactive-day: 3 | ||
body: | | ||
Since the issue was labeled with `✅ Fixed`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. | ||
由于该 issue 被标记为已修复,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 | ||
- name: need reproduce | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issues' | ||
labels: '🤔 Need Reproduce' | ||
inactive-day: 3 | ||
body: | | ||
Since the issue was labeled with `🤔 Need Reproduce`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. | ||
由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 | ||
- name: need reproduce | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issues' | ||
labels: "🙅🏻♀️ WON'T DO" | ||
inactive-day: 3 | ||
body: | | ||
Since the issue was labeled with `🙅🏻♀️ WON'T DO`, and no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. | ||
由于该 issue 被标记为暂不处理,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Issue Remove Inactive | ||
|
||
on: | ||
issues: | ||
types: [edited] | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-remove-inactive: | ||
permissions: | ||
issues: write # for actions-cool/issues-helper to update issues | ||
pull-requests: write # for actions-cool/issues-helper to update PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: remove inactive | ||
if: github.event.issue.state == 'open' && github.actor == github.event.issue.user.login | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'remove-labels' | ||
issue-number: ${{ github.event.issue.number }} | ||
labels: 'Inactive' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.