Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

add ID as an output for token API and Delete token #110

Merged
merged 3 commits into from
Jun 20, 2018
Merged

add ID as an output for token API and Delete token #110

merged 3 commits into from
Jun 20, 2018

Conversation

techknowlogick
Copy link
Member

As title

Related: go-gitea/gitea#4235

@techknowlogick techknowlogick changed the title add ID as an output for token API add ID as an output for token API and Delete token Jun 12, 2018
@@ -22,6 +22,7 @@ func BasicAuthEncode(user, pass string) string {
type AccessToken struct {
Name string `json:"name"`
Sha1 string `json:"sha1"`
ID int64 `json:"id"`
Copy link
Member

Choose a reason for hiding this comment

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

All other structs ID is a first field so for readability it would be better to move it up also in this struct

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Updated.

@lafriks lafriks merged commit ec80752 into go-gitea:master Jun 20, 2018
@techknowlogick techknowlogick deleted the issue-4234 branch June 21, 2018 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants