Skip to content

Commit 0963ed5

Browse files
authored
Merge pull request #3857 from github/bearcherian/workflow-changes
Update workflows based on labels
2 parents 50df97e + 7853fc0 commit 0963ed5

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/copy-to-docs.yml renamed to .github/workflows/copy-documentation-issue.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# For issues that should be fixed by the docs team,
2-
# this workflow copies the issue to the docs-content repo
3-
# when the `documentation` label is added
4-
# (we do not transfer so that the issue does not disappear for the contributor)
1+
# When the `documentation` label is added for documentation issues,
2+
# this workflow copies the issue to the API team repo which can then
3+
# be transferred to the feature team that owns the problem endpoint
4+
# so they can resolve the documentation problem
5+
# (we do not transfer the original issue so that the issue does not disappear for the contributor)
56

6-
name: Copy to docs-content
7+
name: Copy documentation issue
78

89
on:
910
issues:
@@ -12,7 +13,7 @@ on:
1213

1314
jobs:
1415
copy-issue:
15-
name: Copy issue
16+
name: Copy documentation issue
1617
runs-on: ubuntu-latest
1718
if: github.event.label.name == 'documentation'
1819
steps:
@@ -32,9 +33,9 @@ jobs:
3233
}
3334
return priority
3435
35-
- name: Create an issue in the docs-content repo
36+
- name: Create an issue in the api-platform repo
3637
run: |
37-
new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --repo github/docs-content --label "REST,OpenAPI")"
38+
new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --repo github/api-platform --label "REST,OpenAPI")"
3839
echo 'NEW_ISSUE='$new_issue_url >> $GITHUB_ENV
3940
env:
4041
GITHUB_TOKEN: ${{secrets.ISSUE_TRANSFER_TOKEN}}
@@ -43,7 +44,7 @@ jobs:
4344

4445
- name: Comment on the new issue
4546
run: |
46-
gh issue comment $NEW_ISSUE --body "This issue was originally opened in the rest-api-description repo as $OLD_ISSUE with priority $PRIORITY on a scale of P1 (high) to P4 (low).
47+
gh issue comment $NEW_ISSUE --body "This issue was originally opened in the rest-api-description repo as $OLD_ISSUE with priority $PRIORITY on a scale of P1 (high) to P4 (low). Please transfer it to the appropriate feature team.
4748
:exclamation: When you close this issue, also comment on and close the original issue.
4849
:question: Was this issue something that could have been caught by a linter? If so, suggest a new rule in [#api-platform](https://github.slack.com/archives/C1042T6MS)."
4950
env:

.github/workflows/copy-to-ecosystem-api.yml renamed to .github/workflows/copy-feature-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Copy to ecosytem-api
1+
name: Copy feature issue
22

33
on:
44
issues:

0 commit comments

Comments
 (0)