Skip to content

Commit 588fc1f

Browse files
authored
chore(*): add prow & labeler (#128)
Signed-off-by: lsytj0413 <511121939@qq.com> Signed-off-by: lsytj0413 <511121939@qq.com>
1 parent 9603960 commit 588fc1f

File tree

8 files changed

+208
-0
lines changed

8 files changed

+208
-0
lines changed

.github/labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2022 The Serverless Workflow Specification Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
source:
16+
- '**/*'

.github/labels.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2022 The Serverless Workflow Specification Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
area:
16+
- 'bug'
17+
- 'important'
18+
- 'feature'
19+
20+
kind:
21+
- 'failing-test'
22+
- 'cleanup'
23+
24+
priority:
25+
- 'P0'
26+
- 'P1'
27+
- 'P2'

.github/workflows/prow_commands.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright 2022 The Serverless Workflow Specification Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "Prow github actions"
16+
on:
17+
issue_comment:
18+
types: [created]
19+
20+
jobs:
21+
execute:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: jpmcb/prow-github-actions@v1.1.3
25+
with:
26+
prow-commands: |
27+
/assign
28+
/unassign
29+
/approve
30+
/retitle
31+
/area
32+
/kind
33+
/priority
34+
/remove
35+
/lgtm
36+
/close
37+
/reopen
38+
/lock
39+
/milestone
40+
/hold
41+
/cc
42+
/uncc
43+
github-token: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2022 The Serverless Workflow Specification Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "Merge on lgtm label"
16+
on:
17+
schedule:
18+
- cron: "30 * * * *"
19+
20+
jobs:
21+
execute:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: jpmcb/prow-github-actions@v1.1.3
25+
with:
26+
jobs: 'lgtm'
27+
github-token: "${{ secrets.GITHUB_TOKEN }}"
28+
merge-method: 'squash'
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2022 The Serverless Workflow Specification Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "Pull Request update lgtm"
16+
on: pull_request
17+
18+
jobs:
19+
execute:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: jpmcb/prow-github-actions@v1.1.3
23+
with:
24+
jobs: 'lgtm'
25+
github-token: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2022 The Serverless Workflow Specification Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "Pull Request Labeler"
16+
on:
17+
- pull_request_target
18+
19+
jobs:
20+
triage:
21+
permissions:
22+
contents: read
23+
pull-requests: write
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/labeler@v4.0.2
27+
with:
28+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/stale.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright 2022 The Serverless Workflow Specification Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Mark stale issues and pull requests
16+
on:
17+
schedule:
18+
- cron: "0 0 * * *"
19+
20+
jobs:
21+
stale:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/stale@v3
25+
with:
26+
repo-token: ${{ secrets.GITHUB_TOKEN }}
27+
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
28+
stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
29+
stale-issue-label: 'Stale Issue'
30+
exempt-issue-labels: 'Status: Blocked, Status: In progress, Status: On hold, Status: Awaiting response'
31+
stale-pr-label: 'Stale PR'
32+
exempt-pr-labels: 'Status: Blocked, Status: In progress, Status: On hold, Status: Awaiting response'
33+
days-before-stale: 45
34+
days-before-close: 20

OWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# List of usernames who may use /lgtm
2+
reviewers:
3+
- ricardozanini
4+
5+
# List of usernames who may use /approve
6+
approvers:
7+
- ricardozanini

0 commit comments

Comments
 (0)