diff --git a/.dockerignore b/.dockerignore
index 81c9033ba..0ddcc29ae 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,5 +1,4 @@
.git
-logs/*
data/*
.github
tmp/*
diff --git a/.github/ISSUE_TEMPLATE/----.md b/.github/ISSUE_TEMPLATE/----.md
index 147f42db4..47b19f79e 100644
--- a/.github/ISSUE_TEMPLATE/----.md
+++ b/.github/ISSUE_TEMPLATE/----.md
@@ -6,8 +6,7 @@ labels: 类型:需求
assignees:
- ibuler
- baijiangjie
-
-
+ - wojiushixiaobai
---
**请描述您的需求或者改进建议.**
diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml
index 5388111d7..980d701cb 100644
--- a/.github/workflows/issue-comment.yml
+++ b/.github/workflows/issue-comment.yml
@@ -21,17 +21,44 @@ jobs:
actions: 'remove-labels'
labels: '状态:待反馈'
- add-label-if-not-author:
+ add-label-if-is-member:
runs-on: ubuntu-latest
- if: (github.event.issue.user.id != github.event.comment.user.id) && !github.event.issue.pull_request && (github.event.issue.state == 'open')
steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
+ - name: Get Organization name
+ id: org_name
+ run: echo "data=$(echo '${{ github.repository }}' | cut -d '/' -f 1)" >> $GITHUB_OUTPUT
+
+ - name: Get Organization public members
+ uses: octokit/request-action@v2.x
+ id: members
+ with:
+ route: GET /orgs/${{ steps.org_name.outputs.data }}/public_members
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Process public members data
+ # 将 members 中的数据转化为 login 字段的拼接字符串
+ id: member_names
+ run: echo "data=$(echo '${{ steps.members.outputs.data }}' | jq '[.[].login] | join(",")')" >> $GITHUB_OUTPUT
+
+
+ - run: "echo members: '${{ steps.members.outputs.data }}'"
+ - run: "echo member names: '${{ steps.member_names.outputs.data }}'"
+ - run: "echo comment user: '${{ github.event.comment.user.login }}'"
+ - run: "echo contains? : '${{ contains(steps.member_names.outputs.data, github.event.comment.user.login) }}'"
+
- name: Add require replay label
+ if: contains(steps.member_names.outputs.data, github.event.comment.user.login)
uses: actions-cool/issues-helper@v2
with:
actions: 'add-labels'
labels: '状态:待反馈'
- name: Remove require handle label
+ if: contains(steps.member_names.outputs.data, github.event.comment.user.login)
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
diff --git a/.gitignore b/.gitignore
index 9573a70b7..985f77580 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,7 +35,6 @@ celerybeat-schedule.db
docs/_build/
xpack
xpack.bak
-logs/*
### Vagrant ###
.vagrant/
release/*
diff --git a/Dockerfile b/Dockerfile
index 3dc78a9df..d8fd27492 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.9-slim-buster as stage-build
+FROM jumpserver/python:3.9-slim-buster as stage-build
ARG TARGETARCH
ARG VERSION
@@ -8,7 +8,7 @@ WORKDIR /opt/jumpserver
ADD . .
RUN cd utils && bash -ixeu build.sh
-FROM python:3.9-slim-buster
+FROM jumpserver/python:3.9-slim-buster
ARG TARGETARCH
MAINTAINER JumpServer Team