-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
When a commit is pushed from a merged PR, the automatically generated the head commit message generally follows the format “Merge pull request #<pr_number> from /<source_branch>\n\n<pr_title>”. You can use the expression “github.event.head_commit.message” to get the head commit message from the github context.
A simple demo:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The second screenshot doesn’t have a commit ID, but I assume it’s showing the merge commit? If so, that’s exactly why there is no check mark: The workflow didn’t run for the merge commit. When you look at the commit history the original commit should still have the check mark. |
Beta Was this translation helpful? Give feedback.
-
The green hook icon (:ballot_box_with_check:) under a commit means all the checks (include jobs in the workflows) run on this commit ref have passed. If some checks were not successful, a red cross icon (:negative_squared_cross_mark:) is displayed. As @airtower-luna mentioned, because you have skipped all the checks, there is not checks status displayed under the commit. |
Beta Was this translation helpful? Give feedback.
-
How are things going? |
Beta Was this translation helpful? Give feedback.
-
Ty!, things are in pretty good shape. |
Beta Was this translation helpful? Give feedback.
@iamfotx,
When a commit is pushed from a merged PR, the automatically generated the head commit message generally follows the format “Merge pull request #<pr_number> from /<source_branch>\n\n<pr_title>”.
For example:
You can use the expression “github.event.head_commit.message” to get the head commit message from the github context.
You can use the following if conditional to skip all the jobs in the workflow when the push is from the PR merged.
A simple demo: