.ssh/config
/** | |
* Handler that will be called during the execution of a PostLogin flow. | |
* | |
* @param {Event} event - Details about the user and the context in which they are logging in. | |
* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login. | |
*/ | |
exports.onExecutePostLogin = async (event, api) => { | |
const namespace = 'https://hive.d3lay.com'; | |
const userID = event.user.app_metadata ? event.user.app_metadata.UserID : null; | |
// const CUSTOM_AUTH_KEY = 'benwk'; // 将此值替换为你选择的自定义密钥 | |
addEventListener("fetch", (event) => { | |
event.respondWith(handleRequest(event.request)); | |
}); | |
async function handleRequest(request) { | |
const url = new URL(request.url); | |
const apiEndpoint = "https://api.openai.com"; |
!#/bin/bash | |
# get current version | |
npm pkg get version --workspaces=false --raw | tr -d \" | |
CURRENT_VERSION=$(npm pkg get version --workspaces=false --raw | tr -d \") | |
# set bump version | |
# 'major' for breaking changes, 'minor' for new features, 'patch' for bug fix | |
VERSION_BUMP=patch |
name: Code Reviewer | |
permissions: | |
contents: read | |
pull-requests: write | |
on: | |
pull_request: | |
pull_request_review_comment: | |
types: [created] |
These rules are adopted from the AngularJS commit conventions.