1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00
trezor-firmware/.github/workflows/project_automation.yml

39 lines
1.2 KiB
YAML
Raw Normal View History

name: Add to GitHub Project
on: [issues, pull_request]
permissions:
contents: read
pull-requests: write
issues: write
repository-projects: write
jobs:
2022-02-10 13:46:20 +00:00
gh-automate-projects:
runs-on: ubuntu-latest
steps:
2022-02-10 13:46:20 +00:00
- name: Add new issue to the Backlog 🗂 project board
if: github.event_name == 'issues' && github.event.action == 'opened'
2022-03-29 22:19:17 +00:00
run: |
gh issue edit $ISSUE --add-project "Backlog 🗂"
env:
2022-02-10 13:46:20 +00:00
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'
2022-02-10 13:46:20 +00:00
run: gh pr edit $PULL_REQUEST --add-project "Pull Requests"
env:
2022-02-10 13:46:20 +00:00
PULL_REQUEST: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
add-to-beta-project:
name: Add new issue to the beta Issues Firmware project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@main
if: github.event_name == 'issues' && github.event.action == 'opened'
with:
project-url: https://github.com/orgs/trezor/projects/60
github-token: ${{ secrets.GH_BOT_TOKEN }}