-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Ops: Added GitHub workflow to generate Issue Labels (closes #1) * Added action write permission to enable workflow creation * Attempting to fix workflow permission * Fixed issue with formatting of workflow * [MegaLinter] Apply linters fixes --------- Co-authored-by: andrewvaughan <[email protected]>
- Loading branch information
1 parent
9a88cac
commit be3bfd2
Showing
4 changed files
with
175 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
## | ||
# Label configurations used on GitHub.com as part of the Software Development Lifecycle of this project. | ||
# | ||
# @see {@link https://github.com/andrewvaughan/template-core/blob/main/.github/CONTRIBUTING.md#working-on-issues} | ||
# @see {@link https://github.com/marketplace/actions/label-sync#config-files} | ||
# | ||
--- | ||
- name: Blocked | ||
color: "#B60205" | ||
description: This Issue is dependent on another Issue's resolution. | ||
|
||
- name: Help Wanted | ||
color: "#66ff66" | ||
description: The Project Maintainers are requesting assistance from the community to complete this Issue. | ||
|
||
- name: Needs More Info | ||
color: "#ffb16f" | ||
description: The Reporter must provide more information for this Issue to progress. | ||
aliases: | ||
- Need More Info | ||
|
||
- name: Needs Triage | ||
color: "#ff00ff" | ||
description: This Issue is pending initial acceptance review from the Repository's Project Maintainers. | ||
aliases: | ||
- triage | ||
|
||
- name: On Hold | ||
color: "#ffb16f" | ||
description: A Project Maintainer has placed a stop on development. See the Issue for details. | ||
aliases: | ||
- "Status: On Hold" | ||
|
||
- name: Pending Release Assignment | ||
color: "#ff00ff" | ||
description: A Project Maintainer must add this to the Roadmap by assigning a Release Milestone. | ||
aliases: | ||
- Needs Release Assignment | ||
|
||
- name: Stale | ||
color: "#ffb16f" | ||
description: This Issue hasn't had any activity in preceding 30 days and may close soon. | ||
|
||
## REQUESTS ############################################################################################################ | ||
|
||
- name: "Request: Bug Fix" | ||
color: "#ffdddd" | ||
description: A preliminary report of an unintended outcome, experience, or problem with the Project. | ||
|
||
- name: "Type: Bug Fix" | ||
color: "#ff7474" | ||
description: A task to rectify An unintended outcome, experience, or problem with the Project. | ||
|
||
- name: "Request: Documentation" | ||
color: "#fff6cc" | ||
description: A preliminary request to update or create documentation and/or documentation tooling for the Project. | ||
|
||
- name: "Type: Documentation" | ||
color: "#ffe67c" | ||
description: A task to update or create documentation and/or documentation tooling for the Project. | ||
|
||
- name: "Request: Feature" | ||
color: "#ddffd7" | ||
description: A preliminary request for a new feature and/or enhancement to the capabilities of the Project. | ||
|
||
- name: "Type: Feature" | ||
color: "#aaffc7" | ||
description: A task to create or update a feature and/or enhancement to the existing capabilities of the Project. | ||
|
||
- name: "Request: Operations" | ||
color: "#dfefff" | ||
description: A preliminary request for an update to dependencies and/or other operational capabilities of the Project. | ||
aliases: | ||
- "Request: DevOps" | ||
- "Request: Ops" | ||
|
||
- name: "Type: Operations" | ||
color: "#8fe1e7" | ||
description: A task to update dependencies and/or other operational capabilities of the Project. | ||
aliases: | ||
- "Type: DevOps" | ||
- "Type: Ops" | ||
|
||
- name: "Type: Release" | ||
color: "#000000" | ||
description: A versioned release of the Project. | ||
aliases: | ||
- "Release" | ||
|
||
## REJECTIONS ########################################################################################################## | ||
|
||
- name: "Wontfix: Duplicate" | ||
color: "#555555" | ||
description: This Issue is a duplicate of another Issue. See Issue for details. | ||
|
||
- name: "Wontfix: Invalid" | ||
color: "#555555" | ||
description: This Issue is invalid or inappropriate. See Issue for details. |
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
## | ||
# GitHub Action that syncs labels from the parent `template-core` Repository. | ||
# | ||
# @link https://github.com/andrewvaughan/template-core/labels | ||
# | ||
--- | ||
name: Sync Labels from andrewvaughan/template-core | ||
|
||
on: | ||
# This action must trigger manually from the GitHub Actions interface | ||
workflow_dispatch: | ||
|
||
## | ||
# All steps should have read-only access, unless explicitly given. | ||
# | ||
permissions: read-all | ||
|
||
## | ||
# Sync labels from `andrewvaughan/template-core` parent Repository. | ||
# | ||
# @link https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow | ||
# | ||
jobs: | ||
sync-labels: | ||
name: Replace GitHub Labels with Standard | ||
runs-on: ubuntu-latest | ||
|
||
## | ||
# This job's `GITHUB_TOKEN` or `PAT` must have these permissions. | ||
# | ||
# Always aim to provide as few permissions as possible for personal access tokens. | ||
# | ||
# @link https://docs.github.com/en/actions/security-guides/automatic-token-authentication | ||
# | ||
permissions: | ||
actions: write | ||
issues: write | ||
|
||
steps: | ||
## | ||
# Sync the labels from the parent Repository. | ||
# | ||
# @see {@link https://github.com/marketplace/actions/label-sync} | ||
# | ||
- name: Sync Labels | ||
uses: EndBug/label-sync@da00f2c11fdb78e4fae44adac2fdd713778ea3e8 # @2.3.2 | ||
with: | ||
# Configure from the label configuration imported from `template-core` | ||
config-file: .github/.config/labels.yml | ||
|
||
# This can also stay up to date with the `template-core` Repository Labels, but this may cause issues with | ||
# automation and isn't generally recommended: | ||
# source-repo: andrewvaughan/template-core | ||
|
||
# If you're using a private source repo or a URL that needs an 'Authorization' header, you'll need to add a | ||
# custom token for the action to read it | ||
request-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Delete any Labels that don't meet the standard | ||
delete-other-labels: true | ||
|
||
# Available for dry-run testing, if needed | ||
# dry-run: true | ||
|
||
# By default, this uses the user's `GITHUB_TOKEN`, but any PAT can live here with appropriate permissions | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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