Skip to content

Commit 5cd5ed3

Browse files
authored
Merge pull request github#30436 from github/repo-sync
repo sync
2 parents 548139f + f7787ed commit 5cd5ed3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/actions/using-workflows/reusing-workflows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ topics:
2323

2424
Rather than copying and pasting from one workflow to another, you can make workflows reusable. You and anyone with access to the reusable workflow can then call the reusable workflow from another workflow.
2525

26-
Reusing workflows avoids duplication. This makes workflows easier to maintain and allows you to create new workflows more quickly by building on the work of others, just as you do with actions. Workflow reuse also promotes best practice by helping you to use workflows that are well designed, have already been tested, and have been proved to be effective. Your organization can build up a library of reusable workflows that can be centrally maintained.
26+
Reusing workflows avoids duplication. This makes workflows easier to maintain and allows you to create new workflows more quickly by building on the work of others, just as you do with actions. Workflow reuse also promotes best practice by helping you to use workflows that are well designed, have already been tested, and have been proven to be effective. Your organization can build up a library of reusable workflows that can be centrally maintained.
2727

2828
The diagram below shows three build jobs on the left of the diagram. After each of these jobs completes successfully a dependent job called "Deploy" runs. This job calls a reusable workflow that contains three jobs: "Staging", "Review", and "Production." The "Production" deployment job only runs after the "Staging" job has completed successfully. Using a reusable workflow to run deployment jobs allows you to run those jobs for each build without duplicating code in workflows.
2929

content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ The following example will add a draft issue to your project. Replace `PROJECT_I
489489
curl --request POST \
490490
--url https://api.github.com/graphql \
491491
--header 'Authorization: Bearer <em>TOKEN</em>' \
492-
--data '{"query":"mutation {addProjectV2DraftIssue(input: {projectId: "<em>PROJECT_ID</em>" title: "<em>TITLE</em>" body: "<em>BODY</em>"}) {item {id}}}"}'
492+
--data '{"query":"mutation {addProjectV2DraftIssue(input: {projectId: "<em>PROJECT_ID</em>" title: "<em>TITLE</em>" body: "<em>BODY</em>"}) {projectItem {id}}}"}'
493493
```
494494
{% endcurl %}
495495

@@ -498,7 +498,7 @@ curl --request POST \
498498
gh api graphql -f query='
499499
mutation {
500500
addProjectV2DraftIssue(input: {projectId: "<em>PROJECT_ID</em>" title: "<em>TITLE</em>" body: "<em>BODY</em>"}) {
501-
item {
501+
projectItem {
502502
id
503503
}
504504
}
@@ -512,7 +512,7 @@ The response will contain the node ID of the newly created draft issue.
512512
{
513513
"data": {
514514
"addProjectV2ItemById": {
515-
"item": {
515+
"projectItem": {
516516
"id": "PVTI_lADOANN5s84ACbL0zgBbxFc"
517517
}
518518
}

0 commit comments

Comments
 (0)