2023-03-15 20:05:39 +00:00
|
|
|
name: "[Bot] 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:
|
2023-03-15 20:05:39 +00:00
|
|
|
project-add-pull-request:
|
2021-11-26 11:20:46 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-03-15 20:05:39 +00:00
|
|
|
- name: Add new pull request to the Firmware project
|
|
|
|
uses: actions/add-to-project@main
|
2021-12-07 15:52:57 +00:00
|
|
|
if: github.event_name == 'pull_request' && github.event.action == 'opened'
|
2023-03-15 20:05:39 +00:00
|
|
|
with:
|
|
|
|
project-url: https://github.com/orgs/trezor/projects/60
|
|
|
|
github-token: ${{ secrets.GH_BOT_TOKEN }}
|
2022-04-21 11:09:41 +00:00
|
|
|
|
2023-03-15 20:05:39 +00:00
|
|
|
project-add-issue:
|
|
|
|
name: Add new issue to the Firmware project
|
2022-04-21 11:09:41 +00:00
|
|
|
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 }}
|