|
| 1 | +name: Move labelled issues to correct boards and columns |
| 2 | + |
| 3 | +on: |
| 4 | + issues: |
| 5 | + types: [labeled] |
| 6 | + |
| 7 | +jobs: |
| 8 | + move_needs_info_issues: |
| 9 | + name: Move X-Needs-Info issues to Need info on triage board |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - uses: konradpabjan/move-labeled-or-milestoned-issue@219d384e03fa4b6460cd24f9f37d19eb033a4338 |
| 13 | + with: |
| 14 | + action-token: "${{ secrets.ELEMENT_BOT_TOKEN }}" |
| 15 | + project-url: "https://github.com/vector-im/element-web/projects/27" |
| 16 | + column-name: "Need info" |
| 17 | + label-name: "X-Needs-Info" |
| 18 | + |
| 19 | + add_priority_design_issues_to_project: |
| 20 | + name: Move priority X-Needs-Design issues to Design project board |
| 21 | + runs-on: ubuntu-latest |
| 22 | + if: > |
| 23 | + contains(github.event.issue.labels.*.name, 'X-Needs-Design') && |
| 24 | + contains(github.event.issue.labels.*.name, 'S-Critical') && |
| 25 | + (contains(github.event.issue.labels.*.name, 'O-Frequent') || |
| 26 | + contains(github.event.issue.labels.*.name, 'O-Occasional')) || |
| 27 | + contains(github.event.issue.labels.*.name, 'S-Major') && |
| 28 | + contains(github.event.issue.labels.*.name, 'O-Frequent') || |
| 29 | + contains(github.event.issue.labels.*.name, 'A11y') && |
| 30 | + contains(github.event.issue.labels.*.name, 'O-Frequent') |
| 31 | + steps: |
| 32 | + |
| 33 | + id: add_to_project |
| 34 | + with: |
| 35 | + headers: '{"GraphQL-Features": "projects_next_graphql"}' |
| 36 | + query: | |
| 37 | + mutation add_to_project($projectid:String!,$contentid:String!) { |
| 38 | + addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) { |
| 39 | + projectNextItem { |
| 40 | + id |
| 41 | + } |
| 42 | + } |
| 43 | + } |
| 44 | + projectid: ${{ env.PROJECT_ID }} |
| 45 | + contentid: ${{ github.event.issue.node_id }} |
| 46 | + env: |
| 47 | + PROJECT_ID: "PN_kwDOAM0swc0sUA" |
| 48 | + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} |
| 49 | + |
| 50 | + move_spaces_issues: |
| 51 | + name: Move Spaces issues to Delight project board |
| 52 | + runs-on: ubuntu-latest |
| 53 | + if: > |
| 54 | + contains(github.event.issue.labels.*.name, 'A-Spaces') || |
| 55 | + contains(github.event.issue.labels.*.name, 'A-Space-Settings') || |
| 56 | + contains(github.event.issue.labels.*.name, 'A-Subspaces') |
| 57 | + steps: |
| 58 | + - uses: konradpabjan/move-labeled-or-milestoned-issue@219d384e03fa4b6460cd24f9f37d19eb033a4338 |
| 59 | + with: |
| 60 | + action-token: "${{ secrets.ELEMENT_BOT_TOKEN }}" |
| 61 | + project-url: "https://github.com/orgs/vector-im/projects/6" |
| 62 | + column-name: "📥 Inbox" |
| 63 | + label-name: "A-Spaces" |
| 64 | + |
| 65 | + id: add_to_delight2 |
| 66 | + with: |
| 67 | + headers: '{"GraphQL-Features": "projects_next_graphql"}' |
| 68 | + query: | |
| 69 | + mutation add_to_project($projectid:String!,$contentid:String!) { |
| 70 | + addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) { |
| 71 | + projectNextItem { |
| 72 | + id |
| 73 | + } |
| 74 | + } |
| 75 | + } |
| 76 | + projectid: ${{ env.PROJECT_ID }} |
| 77 | + contentid: ${{ github.event.issue.node_id }} |
| 78 | + env: |
| 79 | + PROJECT_ID: "PN_kwDOAM0swc1HvQ" |
| 80 | + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} |
| 81 | + |
| 82 | + move_voice-message_issues: |
| 83 | + name: Move A-Voice Messages to Voice message board |
| 84 | + runs-on: ubuntu-latest |
| 85 | + if: > |
| 86 | + contains(github.event.issue.labels.*.name, 'A-Voice Messages') |
| 87 | + steps: |
| 88 | + - uses: konradpabjan/move-labeled-or-milestoned-issue@219d384e03fa4b6460cd24f9f37d19eb033a4338 |
| 89 | + with: |
| 90 | + action-token: "${{ secrets.ELEMENT_BOT_TOKEN }}" |
| 91 | + project-url: "https://github.com/vector-im/element-web/projects/28" |
| 92 | + column-name: "📥 Inbox" |
| 93 | + label-name: "A-Voice Messages" |
| 94 | + |
| 95 | + id: add_to_voice |
| 96 | + with: |
| 97 | + headers: '{"GraphQL-Features": "projects_next_graphql"}' |
| 98 | + query: | |
| 99 | + mutation add_to_project($projectid:String!,$contentid:String!) { |
| 100 | + addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) { |
| 101 | + projectNextItem { |
| 102 | + id |
| 103 | + } |
| 104 | + } |
| 105 | + } |
| 106 | + projectid: ${{ env.PROJECT_ID }} |
| 107 | + contentid: ${{ github.event.issue.node_id }} |
| 108 | + env: |
| 109 | + PROJECT_ID: "PN_kwDOAM0swc2KCw" |
| 110 | + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} |
| 111 | + |
| 112 | + move_threads_issues: |
| 113 | + name: Move A-Threads to Thread board |
| 114 | + runs-on: ubuntu-latest |
| 115 | + if: > |
| 116 | + contains(github.event.issue.labels.*.name, 'A-Threads') |
| 117 | + steps: |
| 118 | + |
| 119 | + with: |
| 120 | + headers: '{"GraphQL-Features": "projects_next_graphql"}' |
| 121 | + query: | |
| 122 | + mutation add_to_project($projectid:String!,$contentid:String!) { |
| 123 | + addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) { |
| 124 | + projectNextItem { |
| 125 | + id |
| 126 | + } |
| 127 | + } |
| 128 | + } |
| 129 | + projectid: ${{ env.PROJECT_ID }} |
| 130 | + contentid: ${{ github.event.issue.node_id }} |
| 131 | + env: |
| 132 | + PROJECT_ID: "PN_kwDOAM0swc0rRA" |
| 133 | + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} |
0 commit comments