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

CR: check CR with specberus and check approvals with GH API #575

Merged
merged 14 commits into from
Jun 29, 2018
Merged

Conversation

deniak
Copy link
Member

@deniak deniak commented Jun 14, 2018

Fix #522 (workflow described in the tickets)
Fix #524

This PR adds support to publish CRs in echidna.
There's an additional optional parameters to specify if the CR contains substantive changes or not. By default, we assume it does.

@deniak deniak changed the title [WIP] CR: check CR with specberus and check approvals with GH API CR: check CR with specberus and check approvals with GH API Jun 21, 2018
@deniak deniak changed the title CR: check CR with specberus and check approvals with GH API [WIP] CR: check CR with specberus and check approvals with GH API Jun 21, 2018
@deniak deniak changed the title [WIP] CR: check CR with specberus and check approvals with GH API CR: check CR with specberus and check approvals with GH API Jun 22, 2018
@deniak deniak requested a review from tripu June 22, 2018 11:53
@tripu tripu self-assigned this Jun 25, 2018
lib/publisher.js Outdated
processRules: metadata.get('processRules'),
implementationReport: metadata.get('implementationReport'),
implementationFeedbackDue: new Moment(metadata.get('implementationFeedbackDue', 'YYYY-MM-DD')
.format('YYYY-MM-DD'),
Copy link
Member

Choose a reason for hiding this comment

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

There's a missing ) in this expression, and I think the first param 'YYYY-MM-DD' shouldn't be there?

Apart from that, why
new Moment(metadata.get('implementationFeedbackDue').format('YYYY-MM-DD')
?
Isn't
metadata.get('implementationFeedbackDue')
already a string with the same format that you need?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oups, I thought I had pushed the missing parenthesis but I didn't. Done now.

I use Moment to convert strings like 2018-6-1 to 2018-06-01. By default, specberus doesn't provide the leading 0.

});
var repo = octo.repos('w3c', 'transitions');

var shortname = latestVersion.match(new RegExp(/.*\/([^/]+)\/$/))[1];
Copy link
Member

@tripu tripu Jun 26, 2018

Choose a reason for hiding this comment

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

About this regex: are we sure that all latest version URLs end with a slash?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that's a requirement from pubrules these days.

{
labels: 'Awaiting publication',
state: 'open',
per_page: 100 // TODO: get all the issues, not just the first 100
Copy link
Member

Choose a reason for hiding this comment

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

Until we retrieve them all: perhaps add a param sort: 'updated' to make sure we always get the 100 that were most recently updated?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, good idea!

Copy link
Member

@tripu tripu left a comment

Choose a reason for hiding this comment

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

@deniak, 👍!
Just the two new comments inline, and these other reminders or notes for the future:

@deniak
Copy link
Member Author

deniak commented Jun 26, 2018

@deniak, 👍!
Just the two new comments inline, and these other reminders or notes for the future:

Ok, fair concern.

Yes, I will document the full process on a wiki page. I'll ping you when it's done so you can review.

https://www.w3.org/Guide/transitions actually proxies the github pages (see rewrite rules). We advertise that link rather than the github.io one because the official doc should be on w3.org. At least, that's my understanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants