-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose "commit_time" #42
Comments
then I would use |
@yarikoptic Problem: When Travis builds a tag, it reports the |
and it doesn't have a separate run and/or record on the corresponding commit itself? |
@yarikoptic There is a separate build for the pushing of the tagged commit, but the only thing linking them is that they have the same commit ID. There's also no guarantee that there would be build for the commit, as a developer could push the tagged commit in the middle of several other commits. |
ok, let's think about it |
as a workaround I think I could just use time of the build and have eg. an idea (rejected by the end): A possible implementation for
then we could have access to any information needed about a commit AFAIK as long as that commit is still available though -- might have been purged / rewritten etc, so wouldn't be robust for fetching older logs |
or will those times differ across jobs/workflows within the same commit+ci build @jwodder ? |
@yarikoptic The timestamp is taken from the workflow run (GitHub) or build (Travis/Appveyor). If multiple runs/builds are triggered for the same commit, they may have different timestamps. However, for Travis & Appveyor, all jobs belonging to a given build will share the same timestamp. |
Continuation to #40:
so there is a "commit timestamp" -- could you expose it as well please in UTC time zone (so if commits come from different contributors within the PR we still could sort them), probably in ISO8601 i.e. YYYY-MM-DDThh:mm:ssZ ?
The text was updated successfully, but these errors were encountered: