Skip to content

Commit 6dd7b29

Browse files
committed
Add CodeBoarding review and sync workflows
1 parent 643c8f8 commit 6dd7b29

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CodeBoarding review
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, ready_for_review]
6+
issue_comment:
7+
types: [created]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
issues: write
13+
id-token: write
14+
15+
jobs:
16+
review:
17+
if: >
18+
(github.event_name == 'pull_request' && github.event.pull_request.draft == false &&
19+
github.event.pull_request.head.repo.full_name == github.repository &&
20+
github.head_ref != 'codeboarding/sync') ||
21+
(github.event_name == 'issue_comment' && github.event.issue.pull_request != null &&
22+
startsWith(github.event.comment.body, '/codeboarding') &&
23+
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association))
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 60
26+
steps:
27+
- uses: CodeBoarding/CodeBoarding-action@main
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CodeBoarding sync
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths-ignore:
7+
- '.codeboarding/*.md'
8+
- '.codeboarding/analysis.json'
9+
- '.codeboarding/fingerprint.json'
10+
- '.codeboarding/static_analysis.pkl'
11+
- '.codeboarding/static_analysis.sha'
12+
- '.codeboarding/codeboarding_version.json'
13+
- '.codeboarding/health/health_report.json'
14+
- 'docs/development/architecture.md'
15+
workflow_dispatch:
16+
inputs:
17+
force_full:
18+
description: Rebuild without the committed baseline
19+
type: boolean
20+
default: false
21+
22+
permissions:
23+
contents: write
24+
pull-requests: write
25+
id-token: write
26+
27+
concurrency:
28+
group: codeboarding-sync
29+
cancel-in-progress: false
30+
31+
jobs:
32+
sync:
33+
runs-on: ubuntu-latest
34+
timeout-minutes: 60
35+
steps:
36+
- uses: CodeBoarding/CodeBoarding-action@main
37+
with:
38+
mode: sync
39+
target_branch: main
40+
sync_strategy: pull_request
41+
force_full: ${{ inputs.force_full || false }}

0 commit comments

Comments
 (0)