test auto assign to projects #138
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, 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: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | |
with: | |
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }} | |
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }} | |
permissions: >- | |
{ | |
"organization_projects": "write", | |
"issues": "read" | |
} | |
- name: Assign issues with milestones to project | |
uses: elastic/[email protected] | |
if: github.event.issue && github.event.issue.milestone | |
with: | |
project: 'https://github.com/orgs/elastic/projects/454' | |
project_id: '5882982' | |
column_name: 'Planned' | |
env: | |
MY_GITHUB_TOKEN: ${{ steps.get_token.outputs.token }} |