Skip to content
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

time is wrong on push webhook #4037

Closed
Veitor opened this issue Jan 16, 2017 · 1 comment
Closed

time is wrong on push webhook #4037

Veitor opened this issue Jan 16, 2017 · 1 comment
Labels
💊 bug Something isn't working status: needs feedback Tell me more about it
Milestone

Comments

@Veitor
Copy link

Veitor commented Jan 16, 2017

{
  "secret": "asdf",
  "ref": "refs/heads/master",
  "before": "d14a68d342193ad03c5083be6836d4dea45f49ca",
  "after": "d14a68d342193ad03c5083be6836d4dea45f49ca",
  "compare_url": "",
  "commits": [
    {
      "id": "d14a68d342193ad03c5083be6836d4dea45f49ca",
      "message": "Foo bar\n",
      "url": "https://try.gogs.io/martinhpedersen/test/commit/d14a68d342193ad03c5083be6836d4dea45f49ca",
      "author": {
        "name": "Martin Hebnes Pedersen",
        "email": "martinhpedersen@foobar.no",
        "username": ""
      },
      "committer": {
        "name": "Martin Hebnes Pedersen",
        "email": "martinhpedersen@foobar.no",
        "username": ""
      },
      "timestamp": "0001-01-01T00:00:00Z"
    }
  ],
  "repository": {
    "id": 6131,
    "owner": {
      "id": 9409,
      "username": "martinhpedersen",
      "full_name": "",
      "email": "martinhpedersen@foobar.com",
      "avatar_url": "https://secure.gravatar.com/avatar/foobar"
    },
    "name": "test",
    "full_name": "martinhpedersen/test",
    "description": "",
    "private": true,
    "fork": false,
    "html_url": "https://try.gogs.io/martinhpedersen/test",
    "ssh_url": "git@try.gogs.io:martinhpedersen/test.git",
    "clone_url": "https://try.gogs.io/martinhpedersen/test.git",
    "website": "",
    "stars_count": 0,
    "forks_count": 0,
    "watchers_count": 1,
    "open_issues_count": 0,
    "default_branch": "master",
    "created_at": "2016-08-25T15:46:40-04:00",
    "updated_at": "2016-08-26T03:37:14-04:00"
  },
  "pusher": {
    "id": 9409,
    "username": "martinhpedersen",
    "full_name": "",
    "email": "martinhpedersen@foobar.com",
    "avatar_url": "https://secure.gravatar.com/avatar/foobar"
  },
  "sender": {
    "id": 9409,
    "username": "martinhpedersen",
    "full_name": "",
    "email": "martinhpedersen@foobar.com",
    "avatar_url": "https://secure.gravatar.com/avatar/foobar"
  }
}

the payload show commit_time is "0001-01-01T00:00:00Z"

@unknwon unknwon added the 💊 bug Something isn't working label Jan 26, 2017
@unknwon unknwon added this to the 0.10.0 milestone Jan 26, 2017
@unknwon unknwon added the status: needs feedback Tell me more about it label Jan 30, 2017
@unknwon
Copy link
Member

unknwon commented Jan 30, 2017

Patch has pushed to fix this issue, please test on develop branch or https://try.gogs.io.

@unknwon unknwon closed this as completed Jan 31, 2017
Martchus pushed a commit to Martchus/gogs that referenced this issue Aug 27, 2018
Martchus pushed a commit to Martchus/gogs that referenced this issue Aug 27, 2018
* add api user guides in doc

* update user-guides api page

* fix typo: user guides -> user guide

* move api-usage page under advanced category

* flesh out API usage docs

* Build on work by @tungsheng

* Address issues raised in gogs#4037, gogs#3673, and gogs#4243

* Close gogs#4247

Signed-off-by: Steve Traugott <stevegt@t7a.org>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💊 bug Something isn't working status: needs feedback Tell me more about it
Projects
None yet
Development

No branches or pull requests

2 participants