zkitter / zkitterd

MIT License
10 stars 2 forks source link

chore: add opened issues to GH project, link issues to PRs #12

Closed sripwoud closed 2 years ago

sripwoud commented 2 years ago

Closes #13

Add 2 new GH actions:

  1. Add to project Based on add-to-github-projects GH action All newly opened issues will be added to the project. Possible to set label filters and do the same for opened PRs if we want later
  2. Link issues to PR: Based on add-an-issue-link GH action
    Any PR opened for a branch prefixed with issue-<number> will automatically be linked to the corresponding issue.
    Provided the issue exists in the project (eg was added by previous action), the link will appear in the project board.
    Merging the PR will close the issue.

Note: linking the PR to the issue could actually be achieved manually like this too.

REQUIRED: define a GH action TOKEN secret with the following full permissions repo and project (see doc) I added an organization TOKEN secret at org level.

Test plan

You can test/try it out in this repo

sripwoud commented 2 years ago

"Normally" it should work. We can test once merged :smile:

0xtsukino commented 2 years ago

thanks @r1oga !