|
| 1 | +name: On labeled issue |
| 2 | + |
| 3 | +on: |
| 4 | + issues: |
| 5 | + types: |
| 6 | + - labeled |
| 7 | + |
| 8 | +jobs: |
| 9 | + FirstTimeCodeContribution: |
| 10 | + if: ${{ github.event.label.name == 'FirstTimeCodeContribution' }} |
| 11 | + runs-on: ubuntu-latest |
| 12 | + permissions: |
| 13 | + issues: write |
| 14 | + steps: |
| 15 | + - name: GreetingFirstTimeCodeContribution |
| 16 | + uses: peter-evans/create-or-update-comment@v4 |
| 17 | + with: |
| 18 | + issue-number: ${{ github.event.issue.number || github.event.pull_request.number }} |
| 19 | + body: | |
| 20 | + Welcome to the vibrant world of open-source development with JabRef! |
| 21 | +
|
| 22 | + Newcomers, we're excited to have you on board. Start by exploring our [Contributing](https://github.com/JabRef/jabref/blob/main/CONTRIBUTING.md) guidelines, and don't forget to check out our [workspace setup guidelines](https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace) to get started smoothly. |
| 23 | +
|
| 24 | + In case you encounter failing tests during development, please check our [developer FAQs](https://devdocs.jabref.org/code-howtos/faq.html)! |
| 25 | +
|
| 26 | + Having any questions or issues? Feel free to ask here on GitHub. Need help setting up your local workspace? Join the conversation on [JabRef's Gitter chat](https://gitter.im/JabRef/jabref). And don't hesitate to open a (draft) pull request early on to show the direction it is heading towards. This way, you will receive valuable feedback. |
| 27 | +
|
| 28 | + ⚠ Note that this issue will become unassigned if it isn't closed within **30 days**. |
| 29 | +
|
| 30 | + 🔧 A maintainer can also add the **`Pinned`** label to prevent it from being unassigned automatically. |
| 31 | +
|
| 32 | + Happy coding! 🚀 |
| 33 | + - name: Move Issue to "Assigned" Column in "Candidates for University Projects" |
| 34 | + |
| 35 | + with: |
| 36 | + github-token: ${{ secrets.GH_TOKEN_ACTION_MOVE_ISSUE }} |
| 37 | + project-url: "https://github.com/orgs/JabRef/projects/3" |
| 38 | + target-labels: "FirstTimeCodeContribution" |
| 39 | + target-column: "Assigned" |
| 40 | + ignored-columns: "" |
| 41 | + - name: Move Issue to "Assigned" Column in "Good First Issues" |
| 42 | + |
| 43 | + with: |
| 44 | + github-token: ${{ secrets.GH_TOKEN_ACTION_MOVE_ISSUE }} |
| 45 | + project-url: "https://github.com/orgs/JabRef/projects/5" |
| 46 | + target-labels: "FirstTimeCodeContribution" |
| 47 | + target-column: "Assigned" |
| 48 | + ignored-columns: "" |
| 49 | + Assigned: |
| 50 | + name: "📍 Assigned" |
| 51 | + if: ${{ github.event.label.name == '📍 Assigned' }} |
| 52 | + runs-on: ubuntu-latest |
| 53 | + permissions: |
| 54 | + issues: write |
| 55 | + steps: |
| 56 | + - name: Move Issue to "Assigned" Column in "Candidates for University Projects" |
| 57 | + |
| 58 | + with: |
| 59 | + github-token: ${{ secrets.GH_TOKEN_ACTION_MOVE_ISSUE }} |
| 60 | + project-url: "https://github.com/orgs/JabRef/projects/3" |
| 61 | + target-labels: "📍 Assigned" |
| 62 | + target-column: "Assigned" |
| 63 | + ignored-columns: "" |
| 64 | + - name: Move Issue to "Assigned" Column in "Good First Issues" |
| 65 | + |
| 66 | + with: |
| 67 | + github-token: ${{ secrets.GH_TOKEN_ACTION_MOVE_ISSUE }} |
| 68 | + project-url: "https://github.com/orgs/JabRef/projects/5" |
| 69 | + target-labels: "📍 Assigned" |
| 70 | + target-column: "Assigned" |
| 71 | + ignored-columns: "" |
| 72 | + good-first-issue: |
| 73 | + name: "good first issue" |
| 74 | + if: "${{ github.event.label.name == 'good first issue' }}" |
| 75 | + runs-on: ubuntu-latest |
| 76 | + steps: |
| 77 | + - name: "good first issue" |
| 78 | + env: |
| 79 | + GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ITEM_ADD }} |
| 80 | + run: | |
| 81 | + ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") |
| 82 | + gh project item-add 5 --owner JabRef --url $ISSUE_URL |
| 83 | + needs-refinement: |
| 84 | + if: github.event.label.name == 'needs-refinement' |
| 85 | + runs-on: ubuntu-latest |
| 86 | + steps: |
| 87 | + - name: needs-refinement |
| 88 | + env: |
| 89 | + GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ITEM_ADD }} |
| 90 | + run: | |
| 91 | + ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") |
| 92 | + gh project item-add 15 --owner JabRef --url $ISSUE_URL |
| 93 | + status-freeze: |
| 94 | + name: "status: freeze" |
| 95 | + if: "${{ github.event.label.name == 'status: freeze' }}" |
| 96 | + runs-on: ubuntu-latest |
| 97 | + steps: |
| 98 | + - name: "status: freeze" |
| 99 | + env: |
| 100 | + GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ITEM_ADD }} |
| 101 | + run: | |
| 102 | + ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") |
| 103 | + gh project item-add 9 --owner JabRef --url $ISSUE_URL |
| 104 | + ui: |
| 105 | + if: "${{ github.event.label.name == 'ui' }}" |
| 106 | + runs-on: ubuntu-latest |
| 107 | + steps: |
| 108 | + - name: ui |
| 109 | + env: |
| 110 | + GH_DEBUG: api |
| 111 | + GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ITEM_ADD }} |
| 112 | + run: | |
| 113 | + ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") |
| 114 | + echo $ISSUE_URL |
| 115 | + gh project item-add 8 --owner JabRef --url $ISSUE_URL |
0 commit comments