Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/advanced-issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
policy:
- section:
- id: [chapter]
block-list: ['None', 'Other']
label:
- name: 'chapter: associated-items'
keys: ['Associated Items']
- name: 'chapter: attributes'
keys: ['Attributes']
- name: 'chapter: concurrency'
keys: ['Concurrency']
- name: 'chapter: entities-and-resolution'
keys: ['Entities and Resolution']
- name: 'chapter: exceptions-and-errors'
keys: ['Exceptions and Errors']
- name: 'chapter: expressions'
keys: ['Expressions']
- name: 'chapter: ffi'
keys: ['FFI']
- name: 'chapter: functions'
keys: ['Functions']
- name: 'chapter: generics'
keys: ['Generics']
- name: 'chapter: implementations'
keys: ['Implementations']
- name: 'chapter: inline-assembly'
keys: ['Inline Assembly']
- name: 'chapter: macros'
keys: ['Macros']
- name: 'chapter: ownership-and-destruction'
keys: ['Ownership and Destruction']
- name: 'chapter: patterns'
keys: ['Patterns']
- name: 'chapter: program-structure-and-compilation'
keys: ['Program Structure and Compilation']
- name: 'chapter: statements'
keys: ['Statements']
- name: 'chapter: types-and-traits'
keys: ['Types and Traits']
- name: 'chapter: unsafety'
keys: ['Unsafety']
- name: 'chapter: values'
keys: ['Values']
- id: [category]
block-list: ['None', 'Other']
label:
- name: 'category: mandatory'
keys: ['Mandatory']
- name: 'category: required'
keys: ['Required']
- name: 'category: advisory'
keys: ['Advisory']
- name: 'category: disapplied'
keys: ['Disapplied']
- id: [status]
block-list: ['None', 'Other', 'Approved', 'Retired']
label:
- name: 'status: draft'
keys: ['Draft']
- id: [decidability]
block-list: ['None', 'Other']
label:
- name: 'decidability: decidable'
keys: ['Decidable']
- name: 'decidability: undecidable'
keys: ['Undecidable']
- id: [scope]
block-list: ['None', 'Other']
label:
- name: 'scope: module'
keys: ['Module']
- name: 'scope: crate'
keys: ['Crate']
- name: 'scope: system'
keys: ['System']
30 changes: 30 additions & 0 deletions .github/workflows/coding-guideline-issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Coding Guideline Issue Labeler
on:
issues:
types: [ opened ]

permissions:
contents: read

jobs:
label-component:
runs-on: ubuntu-latest

permissions:
# required for all workflows
issues: write

steps:
- uses: actions/checkout@v3

- name: Parse issue form
uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/CODING-GUIDELINE.yml

- name: Set labels based on fields
uses: redhat-plumbers-in-action/advanced-issue-labeler@v2
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
token: ${{ secrets.GITHUB_TOKEN }}