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 issue to the Backlog 🗂 project board
|
2021-11-26 11:20:46 +00:00
|
|
|
if: github.event_name == 'issues' && github.event.action == 'opened'
|
2022-02-11 07:46:27 +00:00
|
|
|
run: gh issue edit $ISSUE --add-project "Backlog 🗂"
|
2021-11-26 11:20:46 +00:00
|
|
|
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
|
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 }}
|