Unclear what the GitHub repository for web component is #2931
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
name: Issue Triage | |
on: | |
issues: | |
types: [opened] | |
issue_comment: | |
types: [created] | |
env: | |
ISSUE_NUMBER: ${{ github.event.issue.number }} | |
OWNER: ${{ github.repository_owner }} | |
REPOSITORY: ${{ github.repository }} | |
PROJECT_NUMBER: 39 | |
PROJECT_ID: PVT_kwDOAYA3Ss1Nvw | |
ITEM_FETCH_LIMIT: 1200 | |
AREA_FIELD_ID: PVTSSF_lADOAYA3Ss1Nv84BfRL4 | |
AREA_WEBSITE: 113a0859 | |
jobs: | |
issue-triage: | |
uses: carbon-design-system/carbon/.github/workflows/issue-triage.yml@main | |
secrets: | |
APP_ID: ${{ secrets.APP_ID }} | |
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} | |
set-area-per-repo: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} | |
steps: | |
- name: Get issue ID | |
id: get_issue_id | |
run: | | |
ISSUE_ID=$(gh project item-list $PROJECT_NUMBER --owner=$OWNER --limit=$ITEM_FETCH_LIMIT --format=json --jq ".items[] | select(.content.number == $ISSUE_NUMBER and .content.repository == $REPOSITORY) | .id") | |
if [ -z "$ISSUE_ID" ]; then | |
echo "Issue ID not found for issue number $ISSUE_NUMBER" | |
exit 1 | |
fi | |
echo "Issue ID is $ISSUE_ID" | |
echo "issue_id=$ISSUE_ID" >> "$GITHUB_OUTPUT" | |
env: | |
GH_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }} | |
- name: Update issue with website area field | |
run: | |
gh project item-edit --project-id $PROJECT_ID --id $ISSUE_ID | |
--field-id $AREA_FIELD_ID --single-select-option-id $AREA_WEBSITE | |
env: | |
GH_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }} | |
$ISSUE_ID: ${{ steps.get_issue_id.outputs.issue_id }} |