mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fix: actions milestones auto (#640)
* fix: actions milestones auto Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * feat: add org server secret Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --------- Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
parent
9db61becff
commit
00b4483065
16
.github/sync.yml
vendored
16
.github/sync.yml
vendored
@ -67,6 +67,10 @@ group:
|
|||||||
- repos: |
|
- repos: |
|
||||||
OpenIMSDK/OpenKF@main
|
OpenIMSDK/OpenKF@main
|
||||||
OpenIMSDK/openim-miniprogram-demo@main
|
OpenIMSDK/openim-miniprogram-demo@main
|
||||||
|
OpenIMSDK/docs
|
||||||
|
OpenIMSDK/chat
|
||||||
|
OpenIMSDK/community
|
||||||
|
OpenIMSDK/openim-charts
|
||||||
OpenIMSDK/openim-sdk-cpp@main
|
OpenIMSDK/openim-sdk-cpp@main
|
||||||
files:
|
files:
|
||||||
- source: LICENSE
|
- source: LICENSE
|
||||||
@ -87,6 +91,18 @@ group:
|
|||||||
- source: .github/.codecov.yml
|
- source: .github/.codecov.yml
|
||||||
dest: .github/.codecov.yml
|
dest: .github/.codecov.yml
|
||||||
replace: false
|
replace: false
|
||||||
|
- source: .github/workflows/cla.yml
|
||||||
|
dest: .github/workflows/cla.yml
|
||||||
|
replace: false
|
||||||
|
- source: .github/workflows/
|
||||||
|
dest: .github/workflows/
|
||||||
|
replace: false
|
||||||
|
- source: .github/workflows/auto-assign-issue.yml
|
||||||
|
dest: .github/workflows/auto-assign-issue.yml
|
||||||
|
replace: false
|
||||||
|
- source: .github/workflows/release.yml
|
||||||
|
dest: .github/workflows/release.yml
|
||||||
|
replace: false
|
||||||
- source: ./scripts/githooks/
|
- source: ./scripts/githooks/
|
||||||
dest: ./scripts/githooks/
|
dest: ./scripts/githooks/
|
||||||
replace: true
|
replace: true
|
9
.github/workflows/auto-assign-issue.yml
vendored
9
.github/workflows/auto-assign-issue.yml
vendored
@ -2,7 +2,6 @@ name: Assign issue to comment author
|
|||||||
on:
|
on:
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
assign-issue:
|
assign-issue:
|
||||||
if: contains(github.event.comment.body, '/assign') || contains(github.event.comment.body, '/accept')
|
if: contains(github.event.comment.body, '/assign') || contains(github.event.comment.body, '/accept')
|
||||||
@ -11,15 +10,17 @@ jobs:
|
|||||||
issues: write
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Assign the issue
|
- name: Assign the issue
|
||||||
run: |
|
run: |
|
||||||
|
export LETASE_MILESTONES=$(curl "https://api.github.com/repos/$OWNER/$REPO/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-assignee "${{ github.event.comment.user.login }}"
|
||||||
gh issue edit ${{ github.event.issue.number }} --add-label "triage/accepted"
|
gh issue edit ${{ github.event.issue.number }} --add-label "triage/accepted"
|
||||||
gh issue comment $ISSUE --body "@${{ github.event.comment.user.login }}, this issue has been assigned to you. We are looking forward to your PR!"
|
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. <br>I set the milestones for this issue to $LETASE_MILESTONES, we are looking forward to your PR!"
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }}
|
||||||
ISSUE: ${{ github.event.issue.html_url }}
|
ISSUE: ${{ github.event.issue.html_url }}
|
||||||
OWNER: ${{ github.repository_owner }}
|
OWNER: ${{ github.repository_owner }}
|
||||||
REPO: ${{ github.event.repository.name }}
|
REPO: ${{ github.event.repository.name }}
|
36
.github/workflows/auto-release.yml
vendored
36
.github/workflows/auto-release.yml
vendored
@ -1,26 +1,26 @@
|
|||||||
name: Automatic Rebase
|
name: Assign issue to comment author
|
||||||
on:
|
on:
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
jobs:
|
jobs:
|
||||||
rebase:
|
assign-issue:
|
||||||
name: Rebase
|
if: contains(github.event.comment.body, '/assign') || contains(github.event.comment.body, '/accept')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: >-
|
permissions:
|
||||||
github.event.issue.pull_request != '' &&
|
issues: write
|
||||||
(
|
|
||||||
contains(github.event.comment.body, '/rebase') ||
|
|
||||||
contains(github.event.comment.body, '/autosquash')
|
|
||||||
)
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the latest code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
- name: Assign the issue
|
||||||
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
|
run: |
|
||||||
- name: Automatic Rebase
|
export LETASE_MILESTONES=$(curl 'https://api.github.com/repos/kubecub/github-label-syncer/milestones' | jq -r 'last(.[]).title')
|
||||||
uses: cirrus-actions/rebase@1.8
|
gh issue edit ${{ github.event.issue.number }} --add-assignee "${{ github.event.comment.user.login }}"
|
||||||
with:
|
gh issue edit ${{ github.event.issue.number }} --add-label "triage/accepted"
|
||||||
autosquash: ${{ contains(github.event.comment.body, '/autosquash') || contains(github.event.comment.body, '/rebase-autosquash') }}
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }}
|
||||||
|
ISSUE: ${{ github.event.issue.html_url }}
|
||||||
|
OWNER: ${{ github.repository_owner }}
|
||||||
|
REPO: ${{ github.event.repository.name }}
|
18
.github/workflows/cla.yml
vendored
18
.github/workflows/cla.yml
vendored
@ -14,13 +14,12 @@ permissions:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
# Define Open-IM-Server variables here
|
# Define Open-IM-Server variables here
|
||||||
REMOTE_ORGANIZATION: open-im-server
|
|
||||||
REMOTE_REPOSITORY: cla
|
|
||||||
|
|
||||||
OPEN_IM_SERVER_CLA_DOCUMENT: https://github.com/openim-sigs/cla/blob/main/README.md
|
|
||||||
OPEN_IM_SERVER_SIGNATURES_PATH: signatures/openim-server/cla.json
|
|
||||||
OPEN_IM_SERVER_ALLOWLIST: kubbot,bot*
|
|
||||||
OPEN_IM_SERVER_REMOTE_ORGANIZATION: openim-sigs
|
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:
|
jobs:
|
||||||
CLAAssistant:
|
CLAAssistant:
|
||||||
@ -40,9 +39,10 @@ jobs:
|
|||||||
|
|
||||||
remote-organization-name: ${{ env.OPEN_IM_SERVER_REMOTE_ORGANIZATION }}
|
remote-organization-name: ${{ env.OPEN_IM_SERVER_REMOTE_ORGANIZATION }}
|
||||||
remote-repository-name: ${{ env.REMOTE_REPOSITORY }}
|
remote-repository-name: ${{ env.REMOTE_REPOSITORY }}
|
||||||
create-file-commit-message: '📚 Docs: Creating file for storing ${{ env.REMOTE_ORGANIZATION }} 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)'
|
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> '
|
||||||
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA'
|
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA'
|
||||||
custom-allsigned-prcomment: '🤖 All Contributors have signed the ${{ env.REMOTE_ORGANIZATION }} [CLA](https://github.com/openim-sigs/cla/blob/main/README.md).'
|
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/${{ env.OPEN_IM_SERVER_ALLOWLIST }}/cla.json)'
|
||||||
# lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
|
# 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
|
# use-dco-flag: true - If you are using DCO instead of CLA
|
||||||
|
2
.github/workflows/project-progress.yml
vendored
2
.github/workflows/project-progress.yml
vendored
@ -31,6 +31,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: alex-page/github-project-automation-plus@v0.8.3
|
- uses: alex-page/github-project-automation-plus@v0.8.3
|
||||||
with:
|
with:
|
||||||
project: OpenIM 2023 Sprint 🔥
|
project: OpenIM-V3.1
|
||||||
column: In Progress
|
column: In Progress
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user