-
Notifications
You must be signed in to change notification settings - Fork 271
Add a features/draft/proposed/ directory an exempt it from CI #3726
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
Open
foolip
wants to merge
6
commits into
main
Choose a base branch
from
vendor-drafts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
acf420f
Add a features/draft/vendor/ directory an exempt it from CI
foolip 92d6c2a
Reserve vendor/ prefix and give worked example
foolip 7f3c25b
vendor -> proposed
foolip a0070e3
Fix chromestatus typo
foolip 9aa62fa
Publish data.proposed.json
foolip ceb8e55
format
foolip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # Proposed features | ||
|
|
||
| This directory is for proposed features, to support the early use of | ||
| web-features before there is a published feature, with a way to transition from | ||
| a proposed ID to the eventual published feature's ID. | ||
|
|
||
| Proposed features can be referred to using the `proposed/a-feature` notation in | ||
| external projects, and the `proposed/` prefix is reserved for this use in | ||
| web-features. | ||
|
|
||
| A proposed feature goes through these stages: | ||
|
|
||
| - A bot creates a `.yml` file in this directory, with enough information for a | ||
| maintainer of web-features to follow up and act on. An `explainer` or `spec` | ||
| URL and a proposed-specific URL like `chromestatus` is recommended. | ||
| - A web-features maintainer creates a real feature entry and replaces the | ||
| proposed feature with a pointer to that feature. | ||
| - References to the proposed feature in tools or source code are updated to | ||
| point to the final feature. | ||
|
|
||
| Write access for bots can be granted by web-features maintainers, and should | ||
| only be used to create files in this directory. | ||
|
|
||
| ## Example | ||
|
|
||
| The [processing instructions in HTML](https://chromestatus.com/feature/6534495085920256) | ||
| feature is created as `proposed/html-pis.yml` file with this contents: | ||
|
|
||
| ```yml | ||
| # features/draft/proposed/html-pis.yml | ||
| explainer: https://github.com/WICG/declarative-partial-updates/blob/main/patching-explainer.md | ||
| chromestatus: https://chromestatus.com/feature/6534495085920256 | ||
| ``` | ||
|
|
||
| When the real web-features entry is created, it is decided to consider this part | ||
| of `<template for>`, so the proposed feature is updated like this: | ||
|
|
||
| ```yml | ||
| # features/draft/proposed/html-pis.yml | ||
| kind: moved | ||
| redirect_target: template-for | ||
| ``` | ||
|
|
||
| Any references to `proposed/html-pis` can be updated to refer to `template-for`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| explainer: https://github.com/WICG/declarative-partial-updates/blob/main/patching-explainer.md | ||
| chromestatus: https://chromestatus.com/feature/6534495085920256 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-07/schema", | ||
| "description": "Proposed web-features data", | ||
| "type": "object", | ||
| "properties": { | ||
| "features": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "type": "object", | ||
| "properties": { | ||
| "kind": { | ||
| "enum": ["proposed", "moved", "split"] | ||
| } | ||
| }, | ||
| "required": ["kind"], | ||
| "additionalProperties": true | ||
| } | ||
| } | ||
| }, | ||
| "required": ["features"], | ||
| "additionalProperties": false | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nice to have thing here would be to extend this to
.github/workflows/publish_next_web-features.yml.