Skip to content

Commit 2820ee2

Browse files
authored
Merge pull request #5 from maxkratz/feature/prepare-first-release
Prepare first release (v1.0.0): documentation, version number, license, etc.
2 parents a1b0fea + 21504a4 commit 2820ee2

File tree

7 files changed

+713
-6506
lines changed

7 files changed

+713
-6506
lines changed

.github/workflows/build-ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ jobs:
5757
uses: docker/setup-qemu-action@v3
5858
- name: Set up Docker Buildx
5959
uses: docker/setup-buildx-action@v3
60-
# - name: Download executable JAR
61-
# uses: actions/download-artifact@v4
62-
# with:
63-
# name: release-to-issue-jar-with-dependencies.jar
6460

6561
# Build Docker image
6662
- name: Build Docker image

LICENSE

Lines changed: 662 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,50 @@
11
# Release to issue GitHub Action
2+
3+
[![Build CI](https://github.com/maxkratz/release-to-issue-docker-action/actions/workflows/build-ci.yml/badge.svg)](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+
uses: maxkratz/[email protected]
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.

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
required: true
88
default: 'maxkratz/release-to-issue-docker-action'
99
target-repo:
10-
description: 'Which repo to check for new releases'
10+
description: 'Which repo to create new issues in'
1111
required: true
1212
start-date:
1313
description: 'Date limit to ignore older releases'

release-to-issue-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>org.maxkratz</groupId>
77
<artifactId>release-to-issue-java</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
8+
<version>1.0.0</version>
99

1010
<properties>
1111
<maven.compiler.source>17</maven.compiler.source>

0 commit comments

Comments
 (0)