Assign issues and add to project automatically #7
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: Assign issues and add to project automatically | ||
on: | ||
issues: | ||
types: [opened] | ||
jobs: | ||
assign-and-add-to-project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check issue pattern | ||
if: ${{ github.event.issue.title =~ /\[CLIENT_REQUEST\] \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z/ }} | ||
Check failure on line 10 in .github/workflows/auto-assign-client-issue.yml GitHub Actions / Assign issues and add to project automaticallyInvalid workflow file
|
||
run: | | ||
echo "Issue matches pattern" | ||
echo "Assigning to team" | ||
# Replace <team_slug> with the slug of your team | ||
# Replace <org_name> with the name of your organization | ||
# Replace <access_token> with a personal access token with "repo" scope | ||
curl -X POST -H "Authorization: Bearer ${{ secrets.ACCESS_TOKEN }}" -H "Accept: application/vnd.github.v3+json" -d '{"assignees":[], "team_assignees":["support"]}' "https://api.github.com/repos/org-SCAN/website/issues/${{ github.event.issue.number }}/assignees" |