Skip to content

Commit a13578a

Browse files
authored
fix (CI): use correct GitHub label names in database project workflows (baserow#5068)
The workflows were filtering on `domain::database` which doesn't exist. Updated to match the actual label `database 🗄️`. Also skip Dependabot PRs to avoid failures when the project token secret is unavailable.
1 parent 969a0e4 commit a13578a

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This workflow automatically updates the Database Team's GitHub Project board bas
1010

1111
The workflow triggers on PR events (opened, review requested, review submitted, merged, etc.) and automatically:
1212

13-
1. **Checks domain labels** - Only processes PRs with labels starting with `domain::database` or `domain::core`
13+
1. **Checks domain labels** - Only processes PRs with labels starting with `database 🗄`
1414
2. **Adds PR to project** - Ensures the PR is added to the Database Team project board
1515
3. **Updates Status field** - Sets the PR status based on its state:
1616
- `In Progress` - PR is a draft

.github/workflows/database-projects-issues-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Update Database Team Project Fields
22

33
env:
44
PROJECT_NUMBER: '3'
5-
DOMAIN_LABELS: '["domain::database"]'
5+
DOMAIN_LABELS: '["database 🗄️"]'
66
STATUS_FIELD_NAME: 'Status'
77
STATUS_TODO: 'Todo'
88

@@ -91,7 +91,7 @@ jobs:
9191
return;
9292
}
9393
94-
console.log(`Issue has domain label: ${labels.filter(l => l.startsWith('domain::')).join(', ')}`);
94+
console.log(`Issue has domain label: ${labels.filter(l => domainLabels.some(d => l.startsWith(d))).join(', ')}`);
9595
9696
// ============================================================
9797
// CHECK IF ALREADY IN PROJECT

.github/workflows/database-projects-pr-workflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Database Team PR Automation
22

33
env:
44
PROJECT_NUMBER: '3'
5-
DOMAIN_LABELS: '["domain::database"]'
5+
DOMAIN_LABELS: '["database 🗄️"]'
66
STATUS_FIELD_NAME: 'Status'
77
REVIEW_STATUS_FIELD_NAME: 'Review Status'
88
STATUS_IN_PROGRESS: 'In Progress'
@@ -26,6 +26,7 @@ on:
2626

2727
jobs:
2828
update-status:
29+
if: github.actor != 'dependabot[bot]'
2930
runs-on: ubuntu-latest
3031
steps:
3132
- name: Update PR Project Status
@@ -114,7 +115,7 @@ jobs:
114115
return;
115116
}
116117
117-
console.log(`PR has domain label: ${labels.filter(l => l.startsWith('domain::')).join(', ')}`);
118+
console.log(`PR has domain label: ${labels.filter(l => domainLabels.some(d => l.startsWith(d))).join(', ')}`);
118119
119120
const statusField = project.fields.nodes.find(f => f.name === '${{ env.STATUS_FIELD_NAME }}');
120121
const reviewStatusField = project.fields.nodes.find(f => f.name === '${{ env.REVIEW_STATUS_FIELD_NAME }}');

0 commit comments

Comments
 (0)