Skip to content

cncf-infra/mock-project-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prow Github Action test project repo

This repo has been created to test and demo the use of the prow-github-action, a custom github action that runs pga.

pga is under active development as a proof of concept here and is a go application that runs Prow plugins from Github Actions.

The intention is that you can make use of Prow plugins used on the Kubernetes project without running your own Prow Instance.

Prow plugins are used to assist in the review workflow by interacting with Github to carry out tasks such as assigning reviewers to pull requests, making use of OWNERS files for git repos in Github and automatic label management on pull requests. These are just some examples of what Prow plugins can do if you want to use them.

pga can be run from the following Custom Github Action docker://ghcr.io/cncf-infra/prow-github-action:latest

You can see this working on the ./github/workflow/comment.yaml Github Action

steps:
      - name: "Prow Github Actions for PR comment"
        env:
            NUMBER: ${{ github.event.issue.number }}
            REPO_OAUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
            UNSPLASH_ACCESS_KEY : ${{ secrets.UNSPLASH_ACCESS_KEY }}
        uses: docker://ghcr.io/cncf-infra/prow-github-action:latest

This then allows you to run the plugins that are present in the file https://github.com/cncf-infra/prow-github-action/blob/27150/prow/cmd/pga/kodata/plugins.yaml which is included in the ko built and published container, prow-github-action

Plugins configured on this repo

plugins:
  cncf-infra/mock-project-repo:
    plugins:
      - approve
      - assign
      - blunderbuss
      - cat
      - cla
      - dog
      - golint
      - goose
      - heart
      - help
      - hold
      - invalidcommitmsg
      - label
      - lgtm
      - lifecycle
      - owners-label
      - pony
      - retitle
      - shrug
      - sigmention
      - size
      - skip
      - transfer-issue
      - trick-or-treat
      - trigger
      - verify-owners
      - welcome
      - wip
      - yuks

For more details on the above plugins you can get more info in the Prow Plugin Catalog

https://prow.k8s.io/plugins

More details to follow.

References

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •