diff --git a/.github/workflows/addToProject.yml b/.github/workflows/addToProject.yml deleted file mode 100644 index d3b2dc04c..000000000 --- a/.github/workflows/addToProject.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Auto Assign to Project(s) - -on: - issues: - types: [opened, edited, milestoned] - pull_request_target: - types: [opened, edited, milestoned] - -permissions: - contents: read - -jobs: - assign_one_project: - runs-on: ubuntu-latest - name: Assign milestoned to Project - steps: - - name: Get token - id: get_token - uses: actions/create-github-app-token@v3 - with: - app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }} - private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }} - permission-organization-projects: write - permission-issues: read - permission-pull-requests: read - - - name: Add milestoned issues to project - id: add-issue-to-project - if: github.event.issue && github.event.issue.milestone - uses: elastic/oblt-actions/github/project-add@v1 - with: - github-token: ${{ steps.get_token.outputs.token }} - project-id: 1674 - item-url: ${{ github.event.issue.html_url }} - - - name: Set issue status to Planned - if: github.event.issue && github.event.issue.milestone - uses: elastic/oblt-actions/github/project-field-set@v1 - with: - github-token: ${{ steps.get_token.outputs.token }} - project-id: 1674 - item-id: ${{ steps.add-issue-to-project.outputs.item-id }} - field-name: Status - field-value: Planned - - - name: Add new pull requests to project - id: add-pr-to-project - if: github.event.action == 'opened' && github.event.pull_request - uses: elastic/oblt-actions/github/project-add@v1 - with: - github-token: ${{ steps.get_token.outputs.token }} - project-id: 1674 - item-url: ${{ github.event.pull_request.html_url }} - - - name: Set pull request status to In Progress - if: github.event.action == 'opened' && github.event.pull_request - uses: elastic/oblt-actions/github/project-field-set@v1 - with: - github-token: ${{ steps.get_token.outputs.token }} - project-id: 1674 - item-id: ${{ steps.add-pr-to-project.outputs.item-id }} - field-name: Status - field-value: In Progress