Skip to content

Commit 35fdf0d

Browse files
authored
Merge How We Work Workflows and Fix bugs (#18299)
Co-authored-by: chiedo <chiedo@users.noreply.github.com>
1 parent 6de2bf3 commit 35fdf0d

2 files changed

Lines changed: 17 additions & 32 deletions

File tree

.github/workflows/send-eng-issues-to-backlog.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/send-issues-to-how-how-we-work-boards.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,22 @@ jobs:
1111
runs-on: ubuntu-latest
1212
continue-on-error: true
1313
steps:
14-
- if: contains(github.event.issue.labels.*.name, 'feature')
14+
- if: contains(github.event.issue.labels.*.name, 'engineering') && !contains(github.event.issue.labels.*.name, 'feature') && !contains(github.event.issue.labels.*.name, 'epic')
15+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
16+
with:
17+
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
18+
script: |
19+
var column_id = 9659080;
20+
try {
21+
github.projects.createCard({
22+
column_id: column_id,
23+
content_id: context.payload.issue.id,
24+
content_type: "Issue"
25+
});
26+
} catch (error) {
27+
console.log(error);
28+
}
29+
- if: contains(github.event.issue.labels.*.name, 'engineering') && contains(github.event.issue.labels.*.name, 'feature')
1530
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
1631
with:
1732
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
@@ -26,7 +41,7 @@ jobs:
2641
} catch (error) {
2742
console.log(error);
2843
}
29-
- if: contains(github.event.issue.labels.*.name, 'epic')
44+
- if: contains(github.event.issue.labels.*.name, 'engineering') && contains(github.event.issue.labels.*.name, 'epic')
3045
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
3146
with:
3247
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}

0 commit comments

Comments
 (0)