2
在我的流明应用程序中,我试图以编程方式创建标签GitHub回购。除了tagger.date
我无法弄清楚什么外,我的设置很好。该API是告诉我,时间戳是无效的:无法以编程方式在GitHub中创建标签-ISO8601时间戳无效
[Github\Exception\RuntimeException]
Invalid request.
2016-07-10T13:32:07+0000 is not a valid date-time.
但是包含在错误消息的时间戳似乎正确格式化based on the documentation。
$github->git()->tags()->create(
$githubConfig['namespace'],
$githubConfig['repository'],
[
'tag' => $this->version->patchTag(),
'tagger' => [
'name' => config('github.tagger.name'),
'email' => config('github.tagger.email'),
'date' => Carbon::now()->toIso8601String()
],
'message' => 'This release was automatically published by [Game-Watcher](https://github.com/bkuhl/game-watcher).',
'object' => $masterBranch['commit']['sha'],
'type' => 'commit'
]
);
This fiddle表示时间格式有效。
令人难以置信的令人沮丧的是,他们为了向后兼容而留下了这个问题,甚至更多地让Carbon无法解决这个问题。 – Webnet
同意,@Webnet。海事组织这是应该被修复的事情,特别是因为像你们这样的问题。开发人员应该能够假设ISO8601实际上反映了它的命名标准。我很惊讶它没有在PHP7中修复。 – Chris
@Webnet,我很想知道这是否工作。 – Chris