You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/.github/workflows/project_automation.yml

31 lines
947 B

name: Add to GitHub Project
on: [issues, pull_request]
permissions:
contents: read
pull-requests: write
issues: write
repository-projects: write
jobs:
gh-automate-projects:
runs-on: ubuntu-latest
steps:
- 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:
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 }}