A list and tuple accept a negative index, slicing doesn't get index out of range error and for slicing, the left index can be greater than the right index e.g. [10:-10]
#49908
This file contains hidden or 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
| name: Update GH projects | |
| on: | |
| issues: | |
| types: | |
| - opened | |
| - labeled | |
| permissions: | |
| contents: read | |
| jobs: | |
| add-to-project: | |
| name: Add issues to projects | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # if an issue has any of these labels, it will be added | |
| # to the corresponding project | |
| - { project: 2, label: "release-blocker, deferred-blocker" } | |
| - { project: 32, label: sprint } | |
| steps: | |
| - uses: actions/[email protected] | |
| with: | |
| project-url: https://github.com/orgs/python/projects/${{ matrix.project }} | |
| github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} | |
| labeled: ${{ matrix.label }} |