1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

ci: github project automation update

This commit is contained in:
vdovhanych 2022-02-10 14:46:20 +01:00 committed by matejcik
parent 80655747d0
commit 5814e39895

View File

@ -9,20 +9,19 @@ permissions:
repository-projects: write
jobs:
github-actions-automate-projects:
gh-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
- name: Add new issue to the Backlog 🗂 project board
if: github.event_name == 'issues' && github.event.action == 'opened'
run: gh issue edit $ISSUE --add-project "Backlog 🗂 "
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PROJECT_URL: https://github.com/trezor/trezor-firmware/projects/1
GITHUB_PROJECT_COLUMN_NAME: 📥 Inbox
- name: add-new-prs-to-repository-based-project-column
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
ISSUE: ${{github.event.issue.html_url}}
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
- name: Add new pull request to the Pull Requests project board
if: github.event_name == 'pull_request' && github.event.action == 'opened'
run: gh pr edit $PULL_REQUEST --add-project "Pull Requests"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PROJECT_URL: https://github.com/trezor/trezor-firmware/projects/2
GITHUB_PROJECT_COLUMN_NAME: To be reviewed
PULL_REQUEST: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}