Idea: More context data (e.g. Commit Message, Commit Range) #26103
-
It would be nice if gh-actions adds more context data. My Wishlists are:
Also there is a CI Environment Variable comparision matrix between CI providers: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
GitHub Actions provides a very rich set of context data includeing the full event payload for the webhook that triggered the run. For more information about how to access the context see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions. |
Beta Was this translation helpful? Give feedback.
-
Is there a way of accessing the commit message from the event payload? I can’t find any information in the linked documentation |
Beta Was this translation helpful? Give feedback.
-
Answering my own question, you can access a commit message like this from a push event, where the commit array is all the commits included in a push:
|
Beta Was this translation helpful? Give feedback.
Answering my own question, you can access a commit message like this from a push event, where the commit array is all the commits included in a push:
Found in the documentation here