2021-11-26 11:20:46 +00:00
|
|
|
name: Add to GitHub Project
|
2022-01-22 11:12:51 +00:00
|
|
|
|
2021-12-07 15:52:57 +00:00
|
|
|
on: [issues, pull_request]
|
2022-01-22 11:12:51 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
|
|
|
issues: write
|
|
|
|
repository-projects: write
|
|
|
|
|
2021-11-26 11:20:46 +00:00
|
|
|
jobs:
|
|
|
|
github-actions-automate-projects:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: add-new-issues-to-repository-based-project-column
|
|
|
|
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
|
|
|
|
if: github.event_name == 'issues' && github.event.action == 'opened'
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITHUB_PROJECT_URL: https://github.com/trezor/trezor-firmware/projects/1
|
|
|
|
GITHUB_PROJECT_COLUMN_NAME: 📥 Inbox
|
2021-12-07 15:52:57 +00:00
|
|
|
- name: add-new-prs-to-repository-based-project-column
|
|
|
|
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
|
|
|
|
if: github.event_name == 'pull_request' && github.event.action == 'opened'
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITHUB_PROJECT_URL: https://github.com/trezor/trezor-firmware/projects/2
|
|
|
|
GITHUB_PROJECT_COLUMN_NAME: To be reviewed
|