File tree Expand file tree Collapse file tree 5 files changed +15
-23
lines changed
Expand file tree Collapse file tree 5 files changed +15
-23
lines changed Original file line number Diff line number Diff line change 1- name : 💙 New Library
1+ name : 💙 New Library
22description : Submit a new Processing library
3- labels : ["new-contribution"]
3+ labels : ["new-contribution", "library" ]
44body :
55 - type : markdown
66 attributes :
4848 The result of this validation will be added to this issue:
4949 - If valid, a pull request will automatically be created to add your library to the repository.
5050 - If invalid, a comment will be added with details of the error. You will need to fix the file and resubmit.
51- - type : hidden
52- id : contribution_type
53- attributes :
54- value : library
Original file line number Diff line number Diff line change 11name : 🔨 New Tool
22description : Submit a new Processing tool
3- labels : ["new-contribution"]
3+ labels : ["new-contribution", "tool" ]
44body :
55 - type : markdown
66 attributes :
4848 The result of this validation will be added to this issue:
4949 - If valid, a pull request will automatically be created to add your tool to the repository.
5050 - If invalid, a comment will be added with details of the error. You will need to fix the file and resubmit.
51- - type : hidden
52- id : contribution_type
53- attributes :
54- value : tool
Original file line number Diff line number Diff line change 11name : 👗 New Mode
22description : Submit a new Processing mode
3- labels : ["new-contribution"]
3+ labels : ["new-contribution", "mode" ]
44body :
55 - type : markdown
66 attributes :
4848 The result of this validation will be added to this issue:
4949 - If valid, a pull request will automatically be created to add your mode to the repository.
5050 - If invalid, a comment will be added with details of the error. You will need to fix the file and resubmit.
51- - type : hidden
52- id : contribution_type
53- attributes :
54- value : mode
Original file line number Diff line number Diff line change 11name : 📦 New Example Pack
22description : Submit a new Processing example pack
3- labels : ["new-contribution"]
3+ labels : ["new-contribution", "examples" ]
44body :
55 - type : markdown
66 attributes :
4848 The result of this validation will be added to this issue:
4949 - If valid, a pull request will automatically be created to add your example pack to the repository.
5050 - If invalid, a comment will be added with details of the error. You will need to fix the file and resubmit.
51- - type : hidden
52- id : contribution_type
53- attributes :
54- value : examples
Original file line number Diff line number Diff line change @@ -35,11 +35,19 @@ jobs:
3535 - name : Install dependencies
3636 run : pip install -r requirements.txt
3737
38+ - name : Determine category from labels
39+ id : determineCategory
40+ run : echo "::set-output name=category::${{
41+ contains(github.event.issue.labels.*.name, 'examples') && 'examples'
42+ || contains(github.event.issue.labels.*.name, 'mode') && 'mode'
43+ || contains(github.event.issue.labels.*.name, 'tool') && 'tool'
44+ || contains(github.event.issue.labels.*.name, 'library') && 'library'}}"
45+
3846 - name : Read and validate properties txt file
3947 id : parseProps
4048 run : >
4149 python -u scripts/parse_and_validate_properties_txt.py \
42- ${{ fromJson( steps.parseIssue .outputs.payload).contribution_type }} \
50+ ${{ steps.determineCategory .outputs.category }} \
4351 "${{ fromJson(steps.parseIssue.outputs.payload).properties_url }}"
4452
4553 - name : add comment to issue
5765 issue-number : ${{ github.event.issue.number }}
5866 body : |
5967 There was an error in reading in your file and parsing it.
60-
68+
6169 ${{ steps.parseProps.outputs.error }}
6270 create-pr :
6371 needs : validate
You can’t perform that action at this time.
0 commit comments