ci: github project automation update

pull/2120/head
vdovhanych 2 years ago committed by matejcik
parent 80655747d0
commit 5814e39895

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

Loading…
Cancel
Save