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:
|
2022-02-10 13:46:20 +00:00
|
|
|
gh-automate-projects:
|
2021-11-26 11:20:46 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-02-10 13:46:20 +00:00
|
|
|
- name: Add new pull request to the Pull Requests project board
|
2021-12-07 15:52:57 +00:00
|
|
|
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"
|
2021-12-07 15:52:57 +00:00
|
|
|
env:
|
2022-02-10 13:46:20 +00:00
|
|
|
PULL_REQUEST: ${{github.event.pull_request.html_url}}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
2022-04-21 11:09:41 +00:00
|
|
|
|
|
|
|
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 }}
|