sensu / catalog

Monitoring as code for Sensu Go. "There's a template for that!"
8 stars 4 forks source link

Add PR merge workflow that will create need-tag issues #251

Closed jspaleta closed 2 years ago

jspaleta commented 2 years ago

This github action should examine a merged PR commit and suggest integration release tags to generate in the form of a new issue using label "needs-tag".

The purpose of this automation is to ensure people with release tagging authority don't miss a needed integration release after a PR merge is done.

This automation should be able to handle nominal single integration PRs as well as cross integration PRs (such as documentation refactors)

jspaleta commented 2 years ago

@amdprophet I used act to do locally testing using a personal access token and a minimum viaable pull request event payload. https://github.com/nektos/act

act -s GITHUB_TOKEN=${GITHUB_TOKEN} --env GITHUB_SHA=80ddd038efcd1ca9069b33b5d1f7d082ac3da061 -j propose-tag -e ~/scratch/pull_request.json pull_request

~/scratch/pull_request.json pull_request

{
  "action": "closed",
  "pull_request": { 
    "merged": true
  }
}
jspaleta commented 2 years ago

Okay merging this end.. worst case it doesnt work and i pull it out of main branch