0ec404bbec
* Initial commit * Create CODE_OF_CONDUCT.md * Create CONTRIBUTING.MD * Update CODE_OF_CONDUCT.md adds authoritative source notice to this repo * Create ISSUE_TEMPLATE.md * Update CODE_OF_CONDUCT.md * Update and rename CONTRIBUTING.MD to CONTRIBUTING.md * Update README.md adds basic default social badges - discourse and twitter * Update README.md * Update README.md * Update README.md * Update README.md * Create LICENSE * Update README.md * Update README.md * Update CONTRIBUTING.md fixes link * Update CODE_OF_CONDUCT.md * docs: add slack link and badge * Update README.md * fix: link and typos * fix: more links * refactor: moved files to .github/ folder * feat: added PR template Updated docs to reflect it. * fix: updated old link * fix: added yaml frontmatter block to issue template * docs: removes links to slack * docs: adds link to docs * Update README.md * Create open-issue.yml * Create close-issue.yml * Fixes: PR template updated to provide detailed instructions * Add link to speckle-server contribution guide * Fix link to relative to the repo pull requests * Feature: separates issue template into bugs and feature requests * Provides checklist for both issue templates * Hides instructions in comments * Add link to contribution guidelines * Retain some sections from previous issue template * checklist is clearer * style: tidy newlines and other small formatting * Add a SECURITY.md file * Refer to the code of conduct in the contributing section of the README * chore(pr_template): adds a reference section to the PR template The SpecklePY PR template had a reference section, and it made sense to include it for all repositories. * Remove redundant issue template * fix(pull request template): pR template should be the default and not an option PR template was in a directory which allows selection using queries. The PR template should be provided by default so should be renamed and placed in the .github directory. Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com> Co-authored-by: izzy lyseggen <izzy.lyseggen@gmail.com> Co-authored-by: Matteo Cominetti <matteo@cominetti.org> Co-authored-by: Alan Rynne <alan@speckle.systems> Co-authored-by: Alan Rynne <alan@rynne.es> Co-authored-by: Matteo Cominetti <matteo@speckle.systems>
51 lines
1.7 KiB
YAML
51 lines
1.7 KiB
YAML
name: Move new issues into Project
|
|
|
|
on:
|
|
issues:
|
|
types: [opened]
|
|
|
|
jobs:
|
|
track_issue:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get project data
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GHPROJECT_TOKEN}}
|
|
ORGANIZATION: specklesystems
|
|
PROJECT_NUMBER: 9
|
|
run: |
|
|
gh api graphql --header 'GraphQL-Features: projects_next_graphql' -f query='
|
|
query($org: String!, $number: Int!) {
|
|
organization(login: $org){
|
|
projectNext(number: $number) {
|
|
id
|
|
fields(first:20) {
|
|
nodes {
|
|
id
|
|
name
|
|
settings
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
|
|
|
|
echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV
|
|
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
|
|
|
|
- name: Add Issue to project
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GHPROJECT_TOKEN}}
|
|
ISSUE_ID: ${{ github.event.issue.node_id }}
|
|
run: |
|
|
item_id="$( gh api graphql --header 'GraphQL-Features: projects_next_graphql' -f query='
|
|
mutation($project:ID!, $id:ID!) {
|
|
addProjectNextItem(input: {projectId: $project, contentId: $id}) {
|
|
projectNextItem {
|
|
id
|
|
}
|
|
}
|
|
}' -f project=$PROJECT_ID -f id=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
|
|
|
|
echo 'ITEM_ID='$item_id >> $GITHUB_ENV
|