Idea: Add R package structure as a project setup, to also synch with other packages #13
This file contains 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/rostools/projects/12 | |
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 }} | |