forked from openimsdk/openkf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'OpenIMSDK:main' into main
- Loading branch information
Showing
210 changed files
with
15,122 additions
and
1,246 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,6 @@ | ||
# https://github.com/BetaHuhn/repo-file-sync-action | ||
# Synchronization for the.github repository | ||
openkf/openkf: | ||
- source: ./ | ||
dest: ./ | ||
replace: true |
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: Assign issue to comment author | ||
on: | ||
issue_comment: | ||
types: [created] | ||
jobs: | ||
assign-issue: | ||
if: | | ||
contains(github.event.comment.body, '/assign') || contains(github.event.comment.body, '/accept') && | ||
!contains(github.event.comment.user.login, 'openimbot') && | ||
!contains(github.event.comment.user.login, 'kubbot') | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Assign the issue | ||
run: | | ||
export LETASE_MILESTONES=$(curl 'https://api.github.com/repos/$OWNER/$PEPO/milestones' | jq -r 'last(.[]).title') | ||
gh issue edit ${{ github.event.issue.number }} --add-assignee "${{ github.event.comment.user.login }}" | ||
gh issue edit ${{ github.event.issue.number }} --add-label "triage/accepted" | ||
gh issue edit ${{ github.event.issue.number }} --milestone "$LETASE_MILESTONES" | ||
gh issue comment $ISSUE --body "@${{ github.event.comment.user.login }} Glad to see you accepted this issue🤲, this issue has been assigned to you. I set the milestones for this issue to [$LETASE_MILESTONES](https://github.com/$OWNER/$PEPO/milestones), We are looking forward to your PR!" | ||
env: | ||
GH_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }} | ||
ISSUE: ${{ github.event.issue.html_url }} | ||
OWNER: ${{ github.repository_owner }} | ||
REPO: ${{ github.event.repository.name }} |
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,56 @@ | ||
name: Auto PR to release | ||
|
||
on: | ||
pull_request: | ||
# types: | ||
# - closed | ||
|
||
jobs: | ||
create-pr: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.base.ref == 'main' | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup GitHub CLI | ||
run: | | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 | ||
sudo apt-add-repository https://cli.github.com/packages | ||
sudo apt-get update | ||
sudo apt-get install gh | ||
continue-on-error: true | ||
|
||
# - name: Configure GitHub CLI | ||
# run: | | ||
# git config --global user.email "3293172751ysy@gmail.com" | ||
# git config --global user.name "kubbot" | ||
# echo "${{ secrets.BOT_GITHUB_TOKEN }}" | gh auth login --with-token | ||
- name: Create PR to release branch | ||
run: | | ||
ISSUEID=$(gh pr view ${{ github.event.pull_request.number }} --repo $OWNER/$REPO | grep -oP 'Fixes #\K\d+') | ||
echo "===========> $ISSUEID" | ||
ISSUE=$(gh issue view $ISSUEID --repo $OWNER/$REPO --json labels,assignees,milestone,title) | ||
echo "===========> $ISSUE" | ||
LABELS=$(echo $ISSUE | jq -r '.labels[] | select(.name) | .name' | jq -R -r -s -c 'split("\n")[:-1] | join(",")') | ||
ASSIGNEES=$(echo $ISSUE | jq -r '.assignees[] | select(.login) | .login' | jq -R -s -c 'split("\n")[:-1] | join(",")') | ||
MILESTONE=$(echo $ISSUE | jq -r '.milestone | select(.title) | .title') | ||
TITLE=$(echo $ISSUE | jq -r '.title') | ||
gh pr edit ${{ github.event.pull_request.number }} --repo $OWNER/$REPO --add-label "$LABELS" --add-assignee "$ASSIGNEES" --milestone "$MILESTONE" | ||
git checkout -b bot/merge-to-release-$ISSUEID | ||
git push origin bot/merge-to-release-$ISSUEID | ||
gh pr create --base release --head bot/merge-to-release-$ISSUEID --title "Merge main to release" --body "" | ||
# gh pr create --base main --head feat/auto-release-pr-624 --title "The bug is fixed" --body "$x" --repo OpenIMSDK/Open-IM-Server --reviewer "cubxxw" | ||
continue-on-error: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
GH_TOKEN: ${{ github.token }} | ||
ISSUE: ${{ github.event.issue.html_url }} | ||
OWNER: ${{ github.repository_owner }} | ||
REPO: ${{ github.event.repository.name }} |
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,48 @@ | ||
name: "OpenIM CLA Assistant" | ||
on: | ||
issue_comment: | ||
types: [created] | ||
pull_request_target: | ||
types: [opened,closed,synchronize] | ||
|
||
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings | ||
permissions: | ||
actions: write | ||
contents: write | ||
pull-requests: write | ||
statuses: write | ||
|
||
env: | ||
# Define Open-IM-Server variables here | ||
OPEN_IM_SERVER_REMOTE_ORGANIZATION: openim-sigs | ||
REMOTE_REPOSITORY: cla | ||
OPEN_IM_SERVER_CLA_DOCUMENT: https://github.com/openim-sigs/cla/blob/main/README.md | ||
OPEN_IM_SERVER_SIGNATURES_PATH: signatures/${{ github.event.repository.name }}/cla.json | ||
|
||
OPEN_IM_SERVER_ALLOWLIST: kubbot,bot* | ||
|
||
jobs: | ||
CLAAssistant: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "CLA Assistant" | ||
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' | ||
uses: contributor-assistant/github-action@v2.3.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
PERSONAL_ACCESS_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }} | ||
with: | ||
path-to-signatures: ${{ env.OPEN_IM_SERVER_SIGNATURES_PATH }} | ||
path-to-document: ${{ env.OPEN_IM_SERVER_CLA_DOCUMENT }} | ||
branch: 'main' | ||
allowlist: ${{ env.OPEN_IM_SERVER_ALLOWLIST }} | ||
|
||
remote-organization-name: ${{ env.OPEN_IM_SERVER_REMOTE_ORGANIZATION }} | ||
remote-repository-name: ${{ env.REMOTE_REPOSITORY }} | ||
|
||
create-file-commit-message: '📚 Docs: Creating file for storing ${{ github.event.repository.name }} CLA Signatures' | ||
custom-notsigned-prcomment: '💕 Thank you for your contribution and please kindly read and sign our [🎯https://github.com/openim-sigs/cla/blob/main/README.md](https://github.com/openim-sigs/cla/blob/main/README.md). <br> If you wish to sign the CRA, **Please copy and comment on the following sentence:**' | ||
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA' | ||
custom-allsigned-prcomment: '🤖 All Contributors have signed the [${{ github.event.repository.name }} CLA](https://github.com/openim-sigs/cla/blob/main/README.md).<br> The signed information is recorded [🤖here](https://github.com/openim-sigs/cla/tree/main/signatures/${{ github.event.repository.name }}/cla.json)' | ||
# lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true) | ||
# use-dco-flag: true - If you are using DCO instead of CLA |
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,3 @@ | ||
# name: OpenIM e2e Test | ||
# test/e2e/... | ||
# go rod : https://github.com/go-rod/rod |
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
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,33 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v4 | ||
- | ||
name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
# either 'goreleaser' (default) or 'goreleaser-pro' | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution | ||
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} |
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 |
---|---|---|
|
@@ -25,7 +25,6 @@ on: | |
|
||
jobs: | ||
stale: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
|
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,39 @@ | ||
# Copyright © 2023 KubeCub open source community. All rights reserved. | ||
# Licensed under the MIT License (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
||
# https://github.com/BetaHuhn/repo-file-sync-action | ||
name: Synchronize kubecub public code to other repositories | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run GitHub File Sync | ||
uses: BetaHuhn/repo-file-sync-action@latest | ||
with: | ||
GH_INSTALLATION_TOKEN: "${{ secrets.BOT_GITHUB_TOKEN }}" | ||
CONFIG_PATH: .github/sync.yml | ||
ORIGINAL_MESSAGE: true | ||
SKIP_PR: true | ||
COMMIT_EACH_FILE: false | ||
COMMIT_BODY: "🤖 kubbot to synchronize the warehouse" | ||
GIT_EMAIL: "3293172751ysy@gmail.com" | ||
GIT_USERNAME: "kubbot" | ||
PR_BODY: 👌 kubecub provides automated community services | ||
REVIEWERS: | | ||
kubbot | ||
cubxxw | ||
PR_LABELS: | | ||
file-sync | ||
automerge | ||
ASSIGNEES: | | ||
kubbot |
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.