-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from rseng/add/action-label
exposing variable as an envar
- Loading branch information
Showing
5 changed files
with
78 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,22 +26,62 @@ https://github.com/spack/spack hpc,package-management | |
https://github.com/singularityhub/sregistry containers,singularity | ||
``` | ||
|
||
### `label` | ||
|
||
**optional** By default, the repository will filter down to issues labeled with "good first issue". | ||
However, you can change this by setting this variable to something else. | ||
|
||
|
||
### `collection` | ||
|
||
**optional** By default, the issues will each produce a markdown file to add to the "docs" GitHub pages folder, | ||
in a subfolder named by this variable, which defaults to _issues. If you produce a site that has more | ||
than one collection, you can change this to something else. | ||
|
||
|
||
## Example usage | ||
|
||
```yaml | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Generate First Issues | ||
uses: rseng/[email protected].1 | ||
uses: rseng/[email protected].2 | ||
with: | ||
repos-file: '.github/repos.txt' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
You only need to define repos-file if you change the path (note that the above is changed from .github/repos.txt). It's | ||
highly recommended that you don't use master branch, but instead | ||
a version release or commit (as shown above). | ||
highly recommended that you don't use master branch, but instead a version release or commit (as shown above). | ||
Here is how you might update the label used: | ||
```yaml | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Generate First Issues | ||
uses: rseng/[email protected] | ||
with: | ||
label: 'bug' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
Finally, if I want to instead output to a folder called `_another` (a Jekyll collection name) | ||
as a relative path to the docs folder, I can set that as follows: | ||
|
||
|
||
```yaml | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Generate First Issues | ||
uses: rseng/[email protected] | ||
with: | ||
collection: '_another' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
|
||
|
||
## Examples | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters