└── .github ├── ISSUE_TEMPLATE └── bug_report.md └── workflows └── dispatch.yml /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/workflows/dispatch.yml: -------------------------------------------------------------------------------- 1 | # This workflow needs to be run on demand 2 | # It will search for all repositories containing the provided 3 | # action and open pull requests if necessary. 4 | 5 | name: Update workflow from org template 6 | 7 | on: workflow_dispatch 8 | 9 | jobs: 10 | repositories: 11 | runs-on: ubuntu-latest 12 | 13 | outputs: 14 | repositories: ${{ steps.search-repos.outputs.matrix }} 15 | workflow: ${{ matrix.workflows.workflow }} 16 | 17 | strategy: 18 | fail-fast: false 19 | matrix: 20 | workflows: [ 21 | { "file":"stylelint.config.js", "workflow":"lint-stylelint.yml" }, 22 | { "file":".eslintrc.js", "workflow":"lint-eslint.yml" }, 23 | { "file":".php-cs-fixer.dist.php", "workflow":"lint-php-cs.yml" }, 24 | { "file":".php_cs.dist", "workflow":"lint-php-cs.yml" }, 25 | { "file":"composer.json", "search": "cs:fix php-cs-fixer fix", "workflow":"lint-php.yml" } 26 | ] 27 | 28 | steps: 29 | - name: Search repositories using the ${{ github.event.inputs.name }} workflow 30 | id: search-repos 31 | # This is a simple curl to fetch the list of repos containing a file and extracting the repo names 32 | run: | 33 | REPOS=$(curl -G -H "Accept: application/vnd.github.v3+json" --data-urlencode "q=org:nextcloud ${{ matrix.workflows.search }} filename:${{ matrix.workflows.file }}" "https://api.github.com/search/code?per_page=100" | jq -c '.items | map(.repository.name) | unique') 34 | echo "::set-output name=${{ matrix.workflows.file }}::$REPOS" 35 | 36 | dispatch: 37 | runs-on: ubuntu-latest 38 | needs: repositories 39 | 40 | strategy: 41 | fail-fast: false 42 | matrix: 43 | workflows: ${{ fromJSON(needs) }} 44 | 45 | steps: 46 | - run: echo 1 47 | --------------------------------------------------------------------------------