Merge pull request #150 from ericsciple/users/ericsciple/25-01-description
Add root-level description keyword
This commit is contained in:
@@ -44,7 +44,7 @@ jobs:
|
|||||||
const result = await complete(...getPositionFromCursor(input));
|
const result = await complete(...getPositionFromCursor(input));
|
||||||
|
|
||||||
expect(result).not.toBeUndefined();
|
expect(result).not.toBeUndefined();
|
||||||
expect(result.length).toEqual(8);
|
expect(result.length).toEqual(9);
|
||||||
expect(result[0].label).toEqual("concurrency");
|
expect(result[0].label).toEqual("concurrency");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,18 @@ describe("end-to-end", () => {
|
|||||||
const result = await complete(...getPositionFromCursor(input));
|
const result = await complete(...getPositionFromCursor(input));
|
||||||
|
|
||||||
expect(result).not.toBeUndefined();
|
expect(result).not.toBeUndefined();
|
||||||
expect(result.length).toEqual(8);
|
expect(result.length).toEqual(9);
|
||||||
const labels = result.map(x => x.label);
|
const labels = result.map(x => x.label);
|
||||||
expect(labels).toEqual(["concurrency", "defaults", "env", "jobs", "name", "on", "permissions", "run-name"]);
|
expect(labels).toEqual([
|
||||||
|
"concurrency",
|
||||||
|
"defaults",
|
||||||
|
"description",
|
||||||
|
"env",
|
||||||
|
"jobs",
|
||||||
|
"name",
|
||||||
|
"on",
|
||||||
|
"permissions",
|
||||||
|
"run-name"
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"on": "on",
|
"on": "on",
|
||||||
"name": "workflow-name",
|
"name": "workflow-name",
|
||||||
|
"description": "workflow-description",
|
||||||
"run-name": "run-name",
|
"run-name": "run-name",
|
||||||
"defaults": "workflow-defaults",
|
"defaults": "workflow-defaults",
|
||||||
"env": "workflow-env",
|
"env": "workflow-env",
|
||||||
@@ -28,6 +29,7 @@
|
|||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
"name": "workflow-name",
|
"name": "workflow-name",
|
||||||
|
"description": "workflow-description",
|
||||||
"run-name": "run-name",
|
"run-name": "run-name",
|
||||||
"defaults": "workflow-defaults",
|
"defaults": "workflow-defaults",
|
||||||
"env": "workflow-env",
|
"env": "workflow-env",
|
||||||
@@ -44,6 +46,10 @@
|
|||||||
"description": "The name of the workflow that GitHub displays on your repository's 'Actions' tab.\n\n[Documentation](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#name)",
|
"description": "The name of the workflow that GitHub displays on your repository's 'Actions' tab.\n\n[Documentation](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#name)",
|
||||||
"string": {}
|
"string": {}
|
||||||
},
|
},
|
||||||
|
"workflow-description": {
|
||||||
|
"description": "A description for your workflow or reusable workflow",
|
||||||
|
"string": {}
|
||||||
|
},
|
||||||
"run-name": {
|
"run-name": {
|
||||||
"context": [
|
"context": [
|
||||||
"github",
|
"github",
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
include-source: false # Drop file/line/col from output
|
||||||
|
---
|
||||||
|
description: My workflow description
|
||||||
|
on: push
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo hi
|
||||||
|
---
|
||||||
|
{
|
||||||
|
"jobs": [
|
||||||
|
{
|
||||||
|
"type": "job",
|
||||||
|
"id": "build",
|
||||||
|
"name": "build",
|
||||||
|
"if": {
|
||||||
|
"type": 3,
|
||||||
|
"expr": "success()"
|
||||||
|
},
|
||||||
|
"runs-on": "ubuntu-latest",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"id": "__run",
|
||||||
|
"if": {
|
||||||
|
"type": 3,
|
||||||
|
"expr": "success()"
|
||||||
|
},
|
||||||
|
"run": "echo hi"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user