Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18c5a2d

Browse files
author
Sarah Edwards
authored
Expand workflow to copy API schema issues to include webhook schema issues as well (#34098)
1 parent 8ee0797 commit 18c5a2d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/copy-api-issue-to-internal.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: Copy to REST API issue to docs-content
1+
name: Copy to API/events issue to docs-content
22

33
# **What it does**: Copies an issue in the open source repo to the docs-content repo, comments on and closes the original issue
4-
# **Why we have it**: REST API updates cannot be made in the open source repo. Instead, we copy the issue to an internal issue (we do not transfer so that the issue does not disappear for the contributor) and close the original issue.
4+
# **Why we have it**: OpenAPI/GraphQL schema updates cannot be made in the open source repo. Instead, we copy the issue to an internal issue (we do not transfer so that the issue does not disappear for the contributor) and close the original issue.
55
# **Who does it impact**: Open source and docs-content maintainers
66

77
on:
@@ -16,7 +16,7 @@ jobs:
1616
transfer-issue:
1717
name: Transfer issue
1818
runs-on: ubuntu-latest
19-
if: (github.event.label.name == 'rest-description' || github.event.label.name == 'graphql-description') && github.repository == 'github/docs'
19+
if: (github.event.label.name == 'rest-description' || github.event.label.name == 'graphql-description' || github.event.label.name == 'webhook-description') && github.repository == 'github/docs'
2020
steps:
2121
- name: Check if this run was triggered by a member of the docs team
2222
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
@@ -53,7 +53,7 @@ jobs:
5353
ISSUE_BODY: ${{ github.event.issue.body }}
5454

5555
- name: Comment on the old issue
56-
run: gh issue comment $OLD_ISSUE --body "Thank you for opening this issue! Updates to the REST/GraphQL API description must be made internally. I have copied your issue to an internal issue, so I will close this issue."
56+
run: gh issue comment $OLD_ISSUE --body "Thank you for opening this issue! Updates to the REST API, GraphQL API, and webhook reference documentation must be made internally. I have copied your issue to an internal issue, so I will close this issue."
5757
env:
5858
GITHUB_TOKEN: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}}
5959
OLD_ISSUE: ${{ github.event.issue.html_url }}

0 commit comments

Comments
 (0)