Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

updated commit id with X-Gitlab-Commit-Id instead of X-Gitlab-Last-Co… #1228

Merged

Conversation

venky333
Copy link
Contributor

updated commit id with X-Gitlab-Commit-Id instead of X-Gitlab-Last-Commit-Id in GetFileMetaData function

@svanharmelen
Copy link
Member

Do you have a link to the docs about this one? To make sure it's correct...

@venky333
Copy link
Contributor Author

venky333 commented Sep 20, 2021

@svanharmelen
Check In addition to the GET method, you can also use HEAD to get just file metadata. section of the following link: https://docs.gitlab.com/ee/api/repository_files.html#get-file-from-repository

In our code, X-Gitlab-Last-Commit-Id was linked to both LastCommitID and CommitID. As per doc, I have linked CommitID to X-Gitlab-Commit-Id and LastCommitID to X-Gitlab-Last-Commit-Id

Copy link
Member

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check, thanks @venky333! I missed that we used the same header twice 👍🏻

@svanharmelen svanharmelen merged commit 144f431 into xanzy:master Sep 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants