We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e2d805 commit 9a776e9Copy full SHA for 9a776e9
.gitignore
@@ -1,2 +1,4 @@
1
/target/
2
/**/target/
3
+.forge.*
4
+.env
crates/gh-workflow/src/workflow.rs
@@ -20,6 +20,19 @@ impl Jobs {
20
pub fn insert(&mut self, key: String, value: Job) {
21
self.0.insert(key, value);
22
}
23
+
24
+ /// Gets a reference to a job by its key.
25
+ ///
26
+ /// # Arguments
27
28
+ /// * `key` - The key of the job to retrieve
29
30
+ /// # Returns
31
32
+ /// Returns `Some(&Job)` if the job exists, `None` otherwise.
33
+ pub fn get(&self, key: &str) -> Option<&Job> {
34
+ self.0.get(key)
35
+ }
36
37
38
/// Represents the configuration for a GitHub workflow.
0 commit comments