@@ -21,9 +21,18 @@ The following arguments are available in the script's bindings:
21
21
script: |
22
22
"🚀 Pushed to #{context.payload.repository.name} by @#{context.actor}!
23
23
` ` `
24
+ * `client`: A pre-authenticated [Tentacat][tentacat] GitHub client.
25
+ It can be used like this :
26
+ ` ` ` yaml
27
+ script: |
28
+ {200, user, _} = Tentacat.Users.find(client, "gaggle")
29
+ IO.puts("🤔" <> user["name"])
30
+ ` ` `
31
+ You can go to the [Tentacat project page][tentacat]
32
+ or read [the project's Hexdocs documentation][tentacat-docs]
33
+ for how to use all its features.
24
34
25
- _These bindings are already defined,
26
- so you don't have to import them._
35
+ _These bindings are already defined, so you don't have to import them._
27
36
28
37
# ## Outputs
29
38
@@ -52,6 +61,11 @@ Elixir Script adapts its interfaces and functionality to the Elixir environment,
52
61
aiming to provide a seamless experience for Elixir developers.
53
62
Many thanks to the creators and contributors of GitHub Script!
54
63
64
+ # ## Tentacat
65
+
66
+ The GitHub library is by [Eduardo Gurgel][eduardo],
67
+ huge thanks to Eduardo and contributors for making such a useful project available.
68
+
55
69
# # Releasing
56
70
57
71
[New releases](https://github.com/gaggle/elixir_script/releases) are automatically created
@@ -61,6 +75,10 @@ The release must then be edited and then immediately resaved to publish it to th
61
75
(This is a built-in limitation of GitHub releases
62
76
that prevents Marketplace releases from being automated)
63
77
78
+ [eduardo] : https://github.com/edgurgel
79
+
64
80
[github-script] : https://github.com/marketplace/actions/github-script
65
81
66
82
[tentacat] : https://github.com/edgurgel/tentacat
83
+
84
+ [tentacat-docs] : https://hexdocs.pm/tentacat
0 commit comments