Manipulate event data in python #26834
-
How can I send ${{github.event}} to a python file and manipulate that data with python? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
One way can be to pass this information via In Action, set
In Python, you can access this with
|
Beta Was this translation helpful? Give feedback.
-
Thanks @ahdbilal , helped me a lot! Do you know if there is any way to know the amount of comments opened by a user in an issue? And the number of issues opened by a user? |
Beta Was this translation helpful? Give feedback.
-
You can try to use the “List issue comments” API to list all the comments on a specified issue. You can traverse all the comments listed, and count the data you need. |
Beta Was this translation helpful? Give feedback.
One way can be to pass this information via
env
keyword and then access it in python withos.environ
.In Action, set
github
as an environment variable:In Python, you can access this with
os.environ