|
1 | 1 | # Release to issue GitHub Action
|
| 2 | + |
| 3 | +[](https://github.com/maxkratz/release-to-issue-docker-action/actions/workflows/build-ci.yml) |
| 4 | + |
| 5 | +This GitHub Action can be used to automatically check a GitHub repository for new releases and, in case a new release was found, automatically open a new issue in a third repository. |
| 6 | +The newly created issue contains a link to the release, a link to the tag, and a nice title mentioning the repositories name as well as the version. |
| 7 | +This GitHub Action also assignes a user and the tag `enhancement` to the newly created issue. |
| 8 | + |
| 9 | +## Inputs |
| 10 | + |
| 11 | +- `source-repo`: Which repo to check for new releases |
| 12 | + - Required: yes |
| 13 | +- `target-repo`: Which repo to create new issues in |
| 14 | + - Required: yes |
| 15 | +- `start-date`: Date limit to ignore older releases |
| 16 | + - Required: yes |
| 17 | +- `assignee-name`: Which GitHub user should be assigned to newly created issues |
| 18 | + - Required: yes |
| 19 | +- `github-username`: Which GitHub user should be used to query the GitHub API |
| 20 | + - Required: yes |
| 21 | +- `github-token`: Which GitHub token should be used to query the GitHub API |
| 22 | + - Required: yes |
| 23 | +- `dry-run`: If true, the Action will not create any issues but just simulate them |
| 24 | + - Required: no |
| 25 | + |
| 26 | +## Outputs |
| 27 | + |
| 28 | +None. |
| 29 | + |
| 30 | +## Example usage |
| 31 | + |
| 32 | +- Create a new classic access token in your GitHub preferences. |
| 33 | +- Inside your GitHub repository (that will use this Action) create a new secret `USER_TOKEN` that contains your access token. |
| 34 | +- Add the following snippet to your GitHub Actions configuration file: |
| 35 | + |
| 36 | +``` |
| 37 | + |
| 38 | +with: |
| 39 | + source-repo: 'lectureStudio/lectureStudio' # the repo that should be checked for new releases |
| 40 | + target-repo: 'maxkratz/github-api-testing' # the repo in which you want to open an issue |
| 41 | + start-date: '2023-01-01' # all releases older than this date will be ignored |
| 42 | + assignee-name: 'maxkratz' # can be different than your username |
| 43 | + github-username: 'maxkratz' # your username (in whose name the issues will be opened) |
| 44 | + github-token: ${{ secrets.USER_TOKEN }} # your secret GitHub access token |
| 45 | + dry-run: false # if set to true, no actual issues will be opened |
| 46 | +``` |
| 47 | + |
| 48 | +## License |
| 49 | + |
| 50 | +This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for more details. |
0 commit comments