-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(project): move add-to-project job into a separate workflow (#12659)
* ci(project): move add-to-project job into a separate workflow * ci(project): move add-to-project job into a separate workflow * ci(add-to-project): add typescript issues to proper project * ci(add-to-project): add typescript issues to proper project Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
00fdab6
commit 2551cd5
Showing
2 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Add To Project | ||
on: | ||
issues: | ||
types: [opened, labeled] | ||
workflow_call: | ||
secrets: | ||
ADD_TO_PROJECT_PAT: | ||
required: true | ||
|
||
env: | ||
DESIGN_SYSTEM_PROJECT_URL: https://github.com/orgs/carbon-design-system/projects/39 | ||
PROPOSALS_PROJECT_URL: https://github.com/orgs/carbon-design-system/projects/51 | ||
TYPESCRIPT_PROJECT_URL: https://github.com/orgs/carbon-design-system/projects/51 | ||
LABEL_ENHANCEMENT: 'type: enhancement 💡' | ||
LABEL_TYPESCRIPT: 'area: typescript' | ||
|
||
jobs: | ||
add-to-proposals-project: | ||
name: Add issue with enhancement label to the Proposals project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/add-to-project@v0.4.0 | ||
with: | ||
labeled: ${{ env.LABEL_ENHANCEMENT }} | ||
project-url: ${{ env.PROPOSALS_PROJECT_URL }} | ||
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} | ||
|
||
add-to-typescript-project: | ||
name: Add issue with typescript label to the TypeScript Adoption project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/add-to-project@v0.4.0 | ||
with: | ||
labeled: ${{ env.LABEL_TYPESCRIPT }} | ||
project-url: ${{ env.TYPESCRIPT_PROJECT_URL }} | ||
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} | ||
|
||
add-to-design-system-project: | ||
name: Add issue to the Design System project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/add-to-project@v0.4.0 | ||
with: | ||
labeled: ${{ env.LABEL_ENHANCEMENT }}, ${{ env.LABEL_TYPESCRIPT }} | ||
label-operator: NOT | ||
project-url: ${{ env.DESIGN_SYSTEM_PROJECT_URL }} | ||
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters