tangled
alpha
login
or
join now
vielle.dev
/
tangled-on-commit
5
fork
atom
Listen to git commits for a specific repo and run a shell command
5
fork
atom
overview
issues
pulls
pipelines
Block out flow
vielle.dev
6 months ago
5ad7b51d
43aa3ae8
verified
This commit was signed with the committer's
known signature
.
vielle.dev
SSH Key Fingerprint:
SHA256:/4bvxqoEh9iMdjAPgcgAgXKZZQTROL3ULiPt6nH9RSs=
+12
-1
1 changed file
expand all
collapse all
unified
split
src
main.rs
+12
-1
src/main.rs
···
1
1
fn main() -> Result<(), i32> {
2
2
-
println!("Hello, world!");
2
2
+
// load configuration
3
3
+
4
4
+
// resolve handle to did
5
5
+
// resolve did+repoName to knotserver
6
6
+
7
7
+
// connect to /events on knotserver
8
8
+
9
9
+
// on event:
10
10
+
// parse json
11
11
+
// validate meets expected schema (allow unknown vals)
12
12
+
// filter by did and reponame
13
13
+
// exec shell command in user shell (/bin/sh as fallback)
3
14
4
15
return Ok(())
5
16
}