Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

Commit

Contracts: work_item status contexts name their event

A run for a work_item or work_item_comment event reports CI / work_item; check_name reads that as the CI check, in Rust and TypeScript.

G1T-Session:
ses_01m566c3bte72apbwhjf41ye53
syntaqxcommitted Parent822861eBrowse files
3 files+6−10/3 viewed
+1−1
22 //!
33 //! A repository's `.g1t/workflows/*.yml`, in GitHub's format, are read
44 //! from the commit an
5−//! event is about (the default branch for issues, schedules and manual
5+//! event is about (the default branch for work items, schedules and manual
66 //! runs). Each workflow an event starts becomes a run; each job of the run
77 //! (one per matrix combination) runs in a sandbox once the jobs it needs
88 //! have finished. Jobs report their steps and logs back as they go, and a
+3−0
10911091 "release",
10921092 "issues",
10931093 "issue_comment",
1094+ "work_item",
1095+ "work_item_comment",
10941096 "repository_dispatch",
10951097 ];
10961098
25612563 fn a_context_names_its_check_and_event() {
25622564 assert_eq!(check_name("CI / pull_request"), ("CI", Some("pull_request")));
25632565 assert_eq!(check_name("Build and test / merge_group"), ("Build and test", Some("merge_group")));
2566+ assert_eq!(check_name("Triage / work_item"), ("Triage", Some("work_item")));
25642567 assert_eq!(check_name("g1t / deploy"), ("g1t / deploy", None));
25652568 assert_eq!(check_name("g1t / deploy (docs)"), ("g1t / deploy (docs)", None));
25662569 assert_eq!(check_name("lint"), ("lint", None));
+2−0
590590 "release",
591591 "issues",
592592 "issue_comment",
593+ "work_item",
594+ "work_item_comment",
593595 "repository_dispatch",
594596 ]);
595597

Comments

Sign in to comment.