Skip to content

Commit 91e47a6

Browse files
authored
Merge branch 'LF-Decentralized-Trust-labs:main' into main
2 parents 6cba7b4 + 669b388 commit 91e47a6

File tree

10 files changed

+67
-29
lines changed

10 files changed

+67
-29
lines changed

.github/scripts/governance_engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_authorized_users():
5050
parts = line.split()
5151
for part in parts:
5252
if part.startswith('@'):
53-
authorized.add(part.lstrip('@'))
53+
authorized.add(part.lstrip('@').lower())
5454
except Exception as e:
5555
print(f"Error parsing CODEOWNERS: {e}")
5656

@@ -285,7 +285,7 @@ def run_command_mode(event_path, event_name):
285285

286286
# Authorization
287287
authorized_users = get_authorized_users()
288-
if author not in authorized_users:
288+
if author.lower() not in authorized_users:
289289
post_comment(pr_number, f"⛔ **Permission Denied**: @{author} is not a registered code owner for governance.")
290290
return
291291

.github/workflows/gov-sync.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,19 @@ name: GitMesh Steward Bot
1010

1111
on:
1212
schedule:
13-
- cron: '0 0 * * *'
14-
pull_request:
15-
types: [closed]
13+
- cron: '30 1 * * 5' # Weekly on Friday at 07:00 IST (01:30 UTC)
1614
issue_comment:
1715
types: [created]
18-
push:
19-
branches:
20-
- main
21-
paths-ignore:
22-
- 'governance/**'
23-
- '.github/workflows/gov-sync.yml'
2416
workflow_dispatch: # Allow manual trigger
2517

2618
jobs:
2719
sync-engine:
28-
# Run on schedule, manual trigger, push to main, or merged PR
20+
# Run on schedule, manual trigger, or issue comment (commands)
2921
# IMPORTANT: Skip if triggered by the bot's own commits or PRs to prevent infinite loops
3022
if: |
3123
(github.event_name == 'schedule' ||
3224
github.event_name == 'workflow_dispatch' ||
33-
github.event_name == 'push' ||
34-
github.event_name == 'issue_comment' ||
35-
(github.event_name == 'pull_request')) &&
25+
github.event_name == 'issue_comment') &&
3626
(github.event.head_commit.author.email != '41898282+github-actions[bot]@users.noreply.github.com' ||
3727
github.event.head_commit.author.email == null) &&
3828
(github.event.pull_request.title != 'chore(gov): automated governance registry & history sync' ||
@@ -69,9 +59,7 @@ jobs:
6959
- name: Commit and Create/Update PR
7060
if: |
7161
github.event_name == 'schedule' ||
72-
github.event_name == 'workflow_dispatch' ||
73-
github.event_name == 'push' ||
74-
(github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true)
62+
github.event_name == 'workflow_dispatch'
7563
env:
7664
GH_TOKEN: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
7765
run: |
@@ -93,7 +81,7 @@ jobs:
9381
export GITHUB_TOKEN=$GH_TOKEN
9482
9583
# Check if an open governance sync PR already exists (search by title pattern)
96-
EXISTING_PR=$(gh pr list --base main --state open --json number,title --jq '.[] | select(.title | startswith("chore(gov): auto-sync")) | .number' | head -1 || echo "")
84+
EXISTING_PR=$(gh pr list --base main --state open --json number,title --jq '.[] | select(.title | startswith("chore(gov): automated governance registry")) | .number' | head -1 || echo "")
9785
9886
if [ -n "$EXISTING_PR" ]; then
9987
echo "An open governance sync PR already exists (PR #$EXISTING_PR). Skipping PR creation."

governance/contributors.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ metadata:
22
version: 1.0.0
33
total_contributors: 14
44
active_contributors: 14
5-
last_sync: '2026-01-14T20:31:09+05:30'
5+
last_sync: '2026-01-19T13:53:18+05:30'
66
contributors:
77
- username: rawx18
88
role: CEO
99
team: EE
1010
status: active
1111
assigned_by: EE-board
1212
assigned_at: '2025-12-01T00:01:00'
13-
last_activity: '2026-01-14'
13+
last_activity: '2026-01-19'
1414
notes: Final authority on enterprise decisions.
1515
- username: ronit-raj9
1616
role: CTO
@@ -50,7 +50,7 @@ contributors:
5050
status: active
5151
assigned_by: GitMesh-Steward-bot
5252
assigned_at: '2025-09-15T08:26:46Z'
53-
last_activity: '2026-01-14'
53+
last_activity: '2026-01-19'
5454
notes: Automatically onboarded after first merged PR.
5555
- username: gagan-ahlawat-0
5656
role: Newbie Contributor
@@ -69,20 +69,20 @@ contributors:
6969
last_activity: '2026-01-06'
7070
notes: Automatically onboarded after first merged PR.
7171
- username: focuzd
72-
role: Newbie Contributor
72+
role: Active Contributor
7373
team: CE
7474
status: active
75-
assigned_by: GitMesh-Steward-bot
76-
assigned_at: '2025-10-21T05:41:02Z'
77-
last_activity: '2026-01-10'
75+
assigned_by: RAWx18
76+
assigned_at: '2026-01-19T13:55:27+05:30'
77+
last_activity: '2026-01-19'
7878
notes: Automatically onboarded after first merged PR.
7979
- username: SK8-infi
8080
role: Newbie Contributor
8181
team: CE
8282
status: active
8383
assigned_by: GitMesh-Steward-bot
8484
assigned_at: '2025-10-24T13:57:43Z'
85-
last_activity: '2026-01-13'
85+
last_activity: '2026-01-18'
8686
notes: Automatically onboarded after first merged PR.
8787
- username: berkaymuratt
8888
role: Newbie Contributor
@@ -98,7 +98,7 @@ contributors:
9898
status: active
9999
assigned_by: GitMesh-Steward-bot
100100
assigned_at: '2025-10-27T09:08:23Z'
101-
last_activity: '2026-01-07'
101+
last_activity: '2026-01-18'
102102
notes: Automatically onboarded after first merged PR.
103103
- username: jason2000-cpu
104104
role: Newbie Contributor
@@ -114,5 +114,5 @@ contributors:
114114
status: active
115115
assigned_by: GitMesh-Steward-bot
116116
assigned_at: '2026-01-14T15:00:37Z'
117-
last_activity: '2026-01-14'
117+
last_activity: '2026-01-19'
118118
notes: Automatically onboarded after first merged PR.

governance/history/ledger.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,3 +458,20 @@ events:
458458
username: DarshanCode2005
459459
details: 'PR #265: Fix Groups.io integration reliability: cookie refresh, error
460460
handling, and webhook validation'
461+
- timestamp: '2026-01-19T13:53:13+05:30'
462+
type: PR_MERGED
463+
username: RAWx18
464+
details: 'PR #333: chore(gov): automated governance registry & history sync'
465+
- timestamp: '2026-01-19T13:53:13+05:30'
466+
type: PR_MERGED
467+
username: focuzd
468+
details: 'PR #338: Fix /gov commands for role change in steward bot.'
469+
- timestamp: '2026-01-19T13:53:13+05:30'
470+
type: PR_MERGED
471+
username: focuzd
472+
details: 'PR #341: Update GitHub steward bot schedule and fix case mismatch'
473+
- timestamp: '2026-01-19T13:55:27+05:30'
474+
type: ROLE_CHANGE
475+
username: focuzd
476+
details: 'Role changed from ''Newbie Contributor'' to ''Active Contributor'' by
477+
@RAWx18 via PR #343'

governance/history/users/darshancode2005.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ events:
77
type: PR_MERGED
88
details: 'Merged PR #265: Fix Groups.io integration reliability: cookie refresh,
99
error handling, and webhook validation (https://github.com/LF-Decentralized-Trust-labs/gitmesh/pull/265)'
10+
- timestamp: '2026-01-19T13:53:18+05:30'
11+
type: ACTIVITY_UPDATE
12+
details: Last activity updated to 2026-01-19

governance/history/users/dependabot[bot].yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ events:
1818
- timestamp: '2026-01-14T20:31:01+05:30'
1919
type: ACTIVITY_UPDATE
2020
details: Last activity updated to 2026-01-14
21+
- timestamp: '2026-01-19T13:53:15+05:30'
22+
type: ACTIVITY_UPDATE
23+
details: Last activity updated to 2026-01-19

governance/history/users/focuzd.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,17 @@ events:
2626
- timestamp: '2026-01-14T20:31:02+05:30'
2727
type: ACTIVITY_UPDATE
2828
details: Last activity updated to 2026-01-10
29+
- timestamp: '2026-01-19T13:53:13+05:30'
30+
type: PR_MERGED
31+
details: 'Merged PR #338: Fix /gov commands for role change in steward bot. (https://github.com/LF-Decentralized-Trust-labs/gitmesh/pull/338)'
32+
- timestamp: '2026-01-19T13:53:13+05:30'
33+
type: PR_MERGED
34+
details: 'Merged PR #341: Update GitHub steward bot schedule and fix case mismatch
35+
(https://github.com/LF-Decentralized-Trust-labs/gitmesh/pull/341)'
36+
- timestamp: '2026-01-19T13:53:16+05:30'
37+
type: ACTIVITY_UPDATE
38+
details: Last activity updated to 2026-01-19
39+
- timestamp: '2026-01-19T13:55:27+05:30'
40+
type: ROLE_CHANGE
41+
details: 'Role changed from ''Newbie Contributor'' to ''Active Contributor'' by
42+
@RAWx18 via PR #343'

governance/history/users/rawx18.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,10 @@ events:
150150
- timestamp: '2026-01-14T20:30:59+05:30'
151151
type: ACTIVITY_UPDATE
152152
details: Last activity updated to 2026-01-14
153+
- timestamp: '2026-01-19T13:53:13+05:30'
154+
type: PR_MERGED
155+
details: 'Merged PR #333: chore(gov): automated governance registry & history sync
156+
(https://github.com/LF-Decentralized-Trust-labs/gitmesh/pull/333)'
157+
- timestamp: '2026-01-19T13:53:14+05:30'
158+
type: ACTIVITY_UPDATE
159+
details: Last activity updated to 2026-01-19

governance/history/users/sharkyii.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ events:
2121
- timestamp: '2026-01-14T20:31:03+05:30'
2222
type: ACTIVITY_UPDATE
2323
details: Last activity updated to 2026-01-07
24+
- timestamp: '2026-01-19T13:53:17+05:30'
25+
type: ACTIVITY_UPDATE
26+
details: Last activity updated to 2026-01-18

governance/history/users/sk8-infi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ events:
1919
- timestamp: '2026-01-14T20:31:03+05:30'
2020
type: ACTIVITY_UPDATE
2121
details: Last activity updated to 2026-01-13
22+
- timestamp: '2026-01-19T13:53:17+05:30'
23+
type: ACTIVITY_UPDATE
24+
details: Last activity updated to 2026-01-18

0 commit comments

Comments
 (0)