feat: add flag to pass credentials to different Git hosting platforms #1664
This file contains 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: Add issues to the roadmap project | |
on: | |
issues: | |
types: | |
- labeled | |
jobs: | |
add-issue-to-roadmap-project: | |
name: Add issue to the roadmap project | |
runs-on: ubuntu-latest | |
steps: | |
# 'kind/feature' AND 'priority/backlog' labels -> 'Backlog' column | |
- uses: actions/[email protected] # add new issue to project | |
with: | |
project-url: https://github.com/orgs/aquasecurity/projects/25 | |
github-token: ${{ secrets.ORG_PROJECT_TOKEN }} | |
labeled: kind/feature, priority/backlog | |
label-operator: AND | |
id: add-backlog-issue | |
- uses: titoportas/[email protected] # change Priority(column) of added issue | |
if: ${{ steps.add-backlog-issue.outputs.itemId }} | |
with: | |
project-url: https://github.com/orgs/aquasecurity/projects/25 | |
github-token: ${{ secrets.ORG_PROJECT_TOKEN }} | |
item-id: ${{ steps.add-backlog-issue.outputs.itemId }} # Use the item-id output of the previous step | |
field-keys: Priority | |
field-values: Backlog | |
# 'kind/feature' AND 'priority/important-longterm' labels -> 'Important (long-term)' column | |
- uses: actions/[email protected] # add new issue to project | |
with: | |
project-url: https://github.com/orgs/aquasecurity/projects/25 | |
github-token: ${{ secrets.ORG_PROJECT_TOKEN }} | |
labeled: kind/feature, priority/important-longterm | |
label-operator: AND | |
id: add-longterm-issue | |
- uses: titoportas/[email protected] # change Priority(column) of added issue | |
if: ${{ steps.add-longterm-issue.outputs.itemId }} | |
with: | |
project-url: https://github.com/orgs/aquasecurity/projects/25 | |
github-token: ${{ secrets.ORG_PROJECT_TOKEN }} | |
item-id: ${{ steps.add-longterm-issue.outputs.itemId }} # Use the item-id output of the previous step | |
field-keys: Priority | |
field-values: Important (long-term) | |
# 'kind/feature' AND 'priority/important-soon' labels -> 'Important (soon)' column | |
- uses: actions/[email protected] # add new issue to project | |
with: | |
project-url: https://github.com/orgs/aquasecurity/projects/25 | |
github-token: ${{ secrets.ORG_PROJECT_TOKEN }} | |
labeled: kind/feature, priority/important-soon | |
label-operator: AND | |
id: add-soon-issue | |
- uses: titoportas/[email protected] # change Priority(column) of added issue | |
if: ${{ steps.add-soon-issue.outputs.itemId }} | |
with: | |
project-url: https://github.com/orgs/aquasecurity/projects/25 | |
github-token: ${{ secrets.ORG_PROJECT_TOKEN }} | |
item-id: ${{ steps.add-soon-issue.outputs.itemId }} # Use the item-id output of the previous step | |
field-keys: Priority | |
field-values: Important (soon) | |
# 'kind/feature' AND 'priority/critical-urgent' labels -> 'Urgent' column | |
- uses: actions/[email protected] # add new issue to project | |
with: | |
project-url: https://github.com/orgs/aquasecurity/projects/25 | |
github-token: ${{ secrets.ORG_PROJECT_TOKEN }} | |
labeled: kind/feature, priority/critical-urgent | |
label-operator: AND | |
id: add-urgent-issue | |
- uses: titoportas/[email protected] # change Priority(column) of added issue | |
if: ${{ steps.add-urgent-issue.outputs.itemId }} | |
with: | |
project-url: https://github.com/orgs/aquasecurity/projects/25 | |
github-token: ${{ secrets.ORG_PROJECT_TOKEN }} | |
item-id: ${{ steps.add-urgent-issue.outputs.itemId }} # Use the item-id output of the previous step | |
field-keys: Priority | |
field-values: Urgent |