Merge branch 'main' of https://github.com/OpenIMSDK/Open-IM-Server
commit
53c9062da7
@ -0,0 +1,57 @@
|
|||||||
|
name: Auto PR to release
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
# types:
|
||||||
|
# - closed
|
||||||
|
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }}
|
||||||
|
ISSUE: ${{ github.event.issue.html_url }}
|
||||||
|
OWNER: ${{ github.repository_owner }}
|
||||||
|
REPO: ${{ github.event.repository.name }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
create-pr:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.merged == true && 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 642 --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')
|
||||||
|
|
||||||
|
echo $ISSUE | jq
|
||||||
|
|
||||||
|
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"
|
@ -1,26 +0,0 @@
|
|||||||
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')
|
|
||||||
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/kubecub/github-label-syncer/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, 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 }}
|
|
@ -1,45 +1,45 @@
|
|||||||
# name: Check-Coverage
|
name: Check-Coverage
|
||||||
|
|
||||||
# on:
|
on:
|
||||||
# workflow_dispatch:
|
workflow_dispatch:
|
||||||
# push:
|
push:
|
||||||
# branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
# paths-ignore:
|
paths-ignore:
|
||||||
# - "docs/**"
|
- "docs/**"
|
||||||
# - "**/*.md"
|
- "**/*.md"
|
||||||
# - "**/*.yaml"
|
- "**/*.yaml"
|
||||||
# - "CONTRIBUTORS"
|
- "CONTRIBUTORS"
|
||||||
# - "CHANGELOG/**"
|
- "CHANGELOG/**"
|
||||||
# pull_request:
|
pull_request:
|
||||||
# branches: [ "*" ]
|
branches: [ "*" ]
|
||||||
# paths-ignore:
|
paths-ignore:
|
||||||
# - "docs/**"
|
- "docs/**"
|
||||||
# - "**/*.md"
|
- "**/*.md"
|
||||||
# - "**/*.yaml"
|
- "**/*.yaml"
|
||||||
# - "CONTRIBUTORS"
|
- "CONTRIBUTORS"
|
||||||
# - "CHANGELOG/**"
|
- "CHANGELOG/**"
|
||||||
# env:
|
env:
|
||||||
# # Common versions
|
# Common versions
|
||||||
# GO_VERSION: "1.20"
|
GO_VERSION: "1.20"
|
||||||
|
|
||||||
# jobs:
|
jobs:
|
||||||
# coverage:
|
coverage:
|
||||||
# runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout
|
- name: Checkout
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# - name: Setup Golang with cache
|
- name: Setup Golang with cache
|
||||||
# uses: magnetikonline/action-golang-cache@v3
|
uses: magnetikonline/action-golang-cache@v3
|
||||||
# with:
|
with:
|
||||||
# go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
# token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# - name: Install Dependencies
|
- name: Install Dependencies
|
||||||
# run: sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev
|
run: sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev
|
||||||
|
|
||||||
# - name: Run Cover
|
- name: Run Cover
|
||||||
# run: make cover
|
run: make cover
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
# - name: Upload Coverage to Codecov
|
- name: Upload Coverage to Codecov
|
||||||
# uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
# name: OpenIM e2e Test
|
# name: OpenIM e2e Test
|
||||||
|
|
||||||
|
@ -0,0 +1,39 @@
|
|||||||
|
name: Github Pull Request
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
paths-ignore:
|
||||||
|
- 'README.md'
|
||||||
|
- 'CONTRIBUTING.md'
|
||||||
|
|
||||||
|
- 'docs/**'
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
paths-ignore:
|
||||||
|
- 'README.md'
|
||||||
|
- 'CONTRIBUTING.md'
|
||||||
|
- 'docs/**'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v5
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||||
|
commit-message: 'build: update distribution'
|
||||||
|
title: 'build: update distribution'
|
||||||
|
body: |
|
||||||
|
- Updates the distribution for changes on `main`
|
||||||
|
|
||||||
|
Auto-generated by [create-pull-request][1]
|
||||||
|
|
||||||
|
[1]: https://github.com/OpenIMSDK/Open-IM-Sever
|
||||||
|
branch: 'bot/update-distribution'
|
@ -1,11 +1,12 @@
|
|||||||
go build -o api.exe ../cmd/openim-api/main.go
|
set output_dir=%~dp0..\_output\bin\platforms\windows
|
||||||
go build -o auth.exe ../cmd/openim-rpc/openim-rpc-auth/main.go
|
go build -o %output_dir%\api.exe ../cmd/openim-api/main.go
|
||||||
go build -o conversation.exe ../cmd/openim-rpc/openim-rpc-conversation/main.go
|
go build -o %output_dir%\auth.exe ../cmd/openim-rpc/openim-rpc-auth/main.go
|
||||||
go build -o friend.exe ../cmd/openim-rpc/openim-rpc-friend/main.go
|
go build -o %output_dir%\conversation.exe ../cmd/openim-rpc/openim-rpc-conversation/main.go
|
||||||
go build -o group.exe ../cmd/openim-rpc/openim-rpc-group/main.go
|
go build -o %output_dir%\friend.exe ../cmd/openim-rpc/openim-rpc-friend/main.go
|
||||||
go build -o msg.exe ../cmd/openim-rpc/openim-rpc-msg/main.go
|
go build -o %output_dir%\group.exe ../cmd/openim-rpc/openim-rpc-group/main.go
|
||||||
go build -o third.exe ../cmd/openim-rpc/openim-rpc-third/main.go
|
go build -o %output_dir%\msg.exe ../cmd/openim-rpc/openim-rpc-msg/main.go
|
||||||
go build -o user.exe ../cmd/openim-rpc/openim-rpc-user/main.go
|
go build -o %output_dir%\third.exe ../cmd/openim-rpc/openim-rpc-third/main.go
|
||||||
go build -o push.exe ../cmd/openim-push/main.go
|
go build -o %output_dir%\user.exe ../cmd/openim-rpc/openim-rpc-user/main.go
|
||||||
go build -o msgtransfer.exe ../cmd/openim-msgtransfer/main.go
|
go build -o %output_dir%\push.exe ../cmd/openim-push/main.go
|
||||||
go build -o msggateway.exe ../cmd/openim-msggateway/main.go
|
go build -o %output_dir%\msgtransfer.exe ../cmd/openim-msgtransfer/main.go
|
||||||
|
go build -o %output_dir%\msggateway.exe ../cmd/openim-msggateway/main.go
|
Loading…
Reference in new issue