jorisroovers / gitlint

Linting for your git commit messages
http://jorisroovers.github.io/gitlint
MIT License
787 stars 99 forks source link

GHA: Notify - extract PR number when merging on main #511

Closed jorisroovers closed 1 year ago

jorisroovers commented 1 year ago

When using github.rest.issues.createComment, context.issue.number does not work when the notify job is triggered by a push to the 'main' branch event.

Instead, we manually extract the PR number using the gh CLI.

coveralls commented 1 year ago

Coverage Status

coverage: 99.662%. remained the same when pulling 5fda95a67d2049ef1208dd795468d8934a74244a on pr-number-extract into de7f8e2e7412be44f731e637d83bc3f51206c93a on main.