docs/data/features
Jenni Christensen 8796ed84e4
Merge branch 'main' into ske-req-deploys
2022-04-04 11:19:04 -07:00
..
README.md
actions-cache-management.yml Add cache section for Actions REST API (#24924) 2022-03-16 10:37:19 +00:00
actions-node16-action.yml Version actions for GHES, use reusables (#26004) 2022-04-01 09:36:17 +10:00
actions-runner-arch-envvars.yml Fix future broken link and versioning syntax for GitHub AE (#23347) 2021-12-06 09:01:46 +00:00
actions-starter-template-ui.yml [12-17-2021] Update starter template UI docs (#22966) 2021-12-17 08:35:23 -08:00
actions-workflow-policy.yml Add Actions policy for reusable workflows (#26287) 2022-03-30 05:52:05 +00:00
blame-ignore-revs.yml Add `Ignore commits in the blame view` to blame docs (#26017) 2022-03-22 10:07:38 -05:00
code-scanning-task-lists.yml Enterprise bug fixes: week of Jan 31, 2022 (#25043) 2022-02-07 09:42:41 -06:00
codeowners-errors.yml [Feb 15, 2022] Document CODEOWNERS errors (#24861) 2022-02-16 13:36:59 +00:00
codeql-ml-queries.yml CodeQL ML-powered JavaScript queries (public beta) (#24363) 2022-02-03 12:16:12 +00:00
codeql-packs.yml
codeql-runner-supported.yml CodeQL changes 2022-02-14 10:25:31 +00:00
command-palette.yml Universe 2021 (#22246) 2021-10-27 07:47:17 -07:00
dependabot-updates-github-connect.yml GitHub Enterprise Server 3.4 release candidate (#24754) 2022-02-15 13:40:37 -05:00
device-flow-is-opt-in.yml OAuth 2.0 Device Authorization Flow is opt-in 2022-03-17 08:16:07 +00:00
enterprise-owner-join-org.yml Enterprise owners can join organizations owned by their enterprise + revoke enterprise membership (#24145) 2022-03-02 10:20:19 -06:00
enterprise-owners-visible-for-org-members.yml Bug fixes for Enterprise content, 2021-12-07 (#23450) 2022-01-21 08:21:43 +00:00
fixed-width-font-gfm-fields.yml Add GHAE issue to feature yml 2022-01-05 14:49:45 +00:00
for-you-feed.yml [March 21, 2022] Updates for new feed and new option to follow organizations (#26095) 2022-03-21 20:29:29 +00:00
github-actions-in-dependency-graph.yml removed GHES from feature flag till we know version 2022-01-25 16:01:35 -05:00
github-runner-dashboard.yml Docs for GitHub-hosted runners management experience 2022-02-23 10:56:51 +00:00
internal-actions.yml Share actions with your enterprise 2022-01-21 11:42:04 +00:00
job-hooks-for-runners.yml [2022-03-30]: Running scripts before or after a job (Public Beta) (#26284) 2022-03-30 15:37:42 +00:00
keyboard-shortcut-accessibility-setting.yml Fix future broken link and versioning syntax for GitHub AE (#23347) 2021-12-06 09:01:46 +00:00
mermaid.yml Updating docs for new renderable in markdown and mermaid file support (#26204) 2022-03-17 17:42:37 +00:00
only-notify-requested-members.yml Fix versioning for only notify requested members (#24271) 2022-01-16 21:03:28 +00:00
placeholder.yml GHEC version (#20947) 2021-10-15 15:41:33 -05:00
pr-tree-view.yml Document PR file tree view 2022-03-03 13:43:47 +00:00
pull-request-approval-limit.yml remove ghes, ghae from moderation setting (#25437) 2022-02-17 06:09:57 +00:00
re-run-jobs.yml re-running workflow jobs (#25817) 2022-03-15 10:06:29 -07:00
remove-enterprise-members.yml Enterprise owners can join organizations owned by their enterprise + revoke enterprise membership (#24145) 2022-03-02 10:20:19 -06:00
reopen-dependabot-alerts.yml [2022-03-03]: Reopen dismissed Dependabot alerts (GA) (#25659) 2022-03-07 20:40:03 +00:00
required-deployments.yml required deployment protection rule 2022-03-16 15:43:15 -07:00
restrict-groups-to-workflows.yml Restrict workflow access to runner groups (#25463) 2022-03-10 11:10:19 -08:00
secret-scanning-audit-log-custom-patterns.yml Update reviewing-the-audit-log-for-your-organization.md (#26508) 2022-04-04 16:25:45 +00:00
secret-scanning-push-protection.yml complete work (hopefully) 2022-03-22 10:16:18 +00:00
security-managers.yml ghec versioning 2021-10-20 10:10:28 -04:00
security-overview-views.yml adds feature based versioning 2022-01-27 11:46:05 +01:00
svg-support.yml Support .svg upload (#24459) 2022-01-21 18:04:18 +00:00

README.md

Feature-based versioning

Feature-based versioning allows us to define and control the versions of an arbitrarily named "feature" in one place.

Note: Do not delete data/features/placeholder.yml because it is used by tests.

How it works

Add a new YAML file with the feature name you want to use in this directory. For a feature named meow, that would be data/features/meow.yml.

Add a versions block to the YML file with the short names of the versions the feature is available in. For example:

versions:
  fpt: '*'
  ghes: '>3.1'
  ghae: '*'

The format and allowed values are the same as the frontmatter versions property.

Liquid conditionals

Now you can use {% if meow %} ... {% endif %} in content files! Note this is the if tag, not the new ifversion tag.

Frontmatter

You can also use the feature in frontmatter in content files:

versions:
  fpt: '*'
  ghes: '>3.1'
  feature: 'meow'

If you want a content file to apply to more than one feature, you can do this:

versions:
  fpt: '*'
  ghes: '>3.1'
  feature: ['meow', 'blorp']

Schema enforcement

The schema for validating the feature versioning lives in tests/helpers/schemas/feature-versions.js and is exercised by tests/content/lint-files.js.

Script to remove feature tags

TBD!