Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/gh-projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: gh-projects

on:
issues:
types:
- opened
pull_request:
types:
- opened

permissions:
issues: write
pull-requests: write
contents: read

jobs:
NIDAP-projects:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.CCBR_BOT_APP_ID }}
private-key: ${{ secrets.CCBR_BOT_PRIVATE_KEY }}
owner: NIDAP-Community

- name: add to NIDAP SCWorkflow project
uses: actions/add-to-project@v1.0.2
if: github.event_name == 'issues'
with:
project-url: https://github.com/orgs/NIDAP-Community/projects/6
github-token: ${{ steps.generate-token.outputs.token }}
23 changes: 23 additions & 0 deletions .github/workflows/user-projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: user-projects

on:
issues:
types:
- assigned
pull_request:
types:
- assigned

permissions:
issues: write
pull-requests: write

jobs:
add-to-project:
runs-on: ubuntu-latest
steps:
- uses: CCBR/actions/user-projects@main
with:
app-id: ${{ vars.CCBR_BOT_APP_ID }}
app-private-key: ${{ secrets.CCBR_BOT_PRIVATE_KEY }}
token-owner: "CCBR"
Loading