Setup pre-commit to run, which means add Poetry to the project #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add to project board | |
on: | |
issues: | |
types: | |
- opened | |
- reopened | |
- transferred | |
pull_request: | |
types: | |
- reopened | |
- opened | |
permissions: | |
pull-requests: write | |
jobs: | |
add-to-project: | |
name: Add to project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add issue or PR to project board | |
uses: actions/[email protected] | |
with: | |
project-url: https://github.com/orgs/seedcase-project/projects/18 | |
github-token: ${{ secrets.ADD_TO_BOARD }} | |
- name: Assign PR to creator | |
if: ${{ github.event_name == 'pull_request' }} | |
run: | | |
gh pr edit $PR --add-assignee $AUTHOR | |
env: | |
AUTHOR: ${{ github.event.pull_request.user.login }} | |
PR: ${{ github.event.pull_request.html_url }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |