Change over curl calls to Drupal's httpClient #22
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: Auto Assign to Project(s) | |
on: | |
issues: | |
types: [opened] | |
pull_request: | |
types: [opened] | |
# issue_comment: | |
# types: [created] | |
env: | |
target: "New issues" | |
jobs: | |
issue_opened_or_reopened: | |
name: issue_opened_or_reopened | |
runs-on: ubuntu-latest | |
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened') | |
steps: | |
- name: Move issue to ${{ env.target }} | |
uses: leonsteinhaeuser/project-beta-automations@v2.0.1 | |
with: | |
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
user: pingevt | |
# organization: pingevt | |
project_id: 1 | |
resource_node_id: ${{ github.event.issue.node_id }} | |
status_value: ${{ env.target }} # Target status |