aaw icon indicating copy to clipboard operation
aaw copied to clipboard

Implement add-to-project workflow for repos

Open mathis-marcotte opened this issue 2 years ago • 0 comments

follow up of https://github.com/StatCan/aaw/issues/1700 These are the repos that need it:

  • jupyter-apis
  • kubeflow
  • aaw
  • aaw-private (private)
  • aaw-argocd-manifests (private)
  • aaw-kubeflow-containers
  • aaw-kubeflow-manifests
  • aaw-kubeflow-profiles-controller

From initial testing, seems like all that needs to be done is to add this workflow to those repos

name: Add AAW project to issues
on:
  issues:
    types:
      - opened

jobs:
  add-to-project:
    name: Add issue to project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
        with:
          project-url: https://github.com/orgs/StatCan/projects/9
          github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}

Then, we also need to add the secret "ADD_TO_PROJECT_PAT" to all of those repos, with the value of a Personal Access Token (all explained in the docs of the "add-to-project" action).

We asked CNS about generating that PAT so that we don't generate it from our personal accounts, but we haven't herd from them about that yet.

mathis-marcotte avatar Sep 19 '23 14:09 mathis-marcotte