Skip to content

Commit

Permalink
Repo Gardening: change the order of the tasks running (#35723)
Browse files Browse the repository at this point in the history
I'd like the Board update task to run first, before issues get triaged, so that the Slack notifications potentially triggered by the board update task happen first, before the Slack notifications sent by the triageIssues task.
  • Loading branch information
jeherve committed Feb 16, 2024
1 parent 475ecf6 commit 4652fe6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Tasks: run the Board update task before other tasks.
10 changes: 5 additions & 5 deletions projects/github-actions/repo-gardening/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const ifNotClosed = require( './utils/if-not-closed' );
const ifNotFork = require( './utils/if-not-fork' );

const automations = [
{
event: 'issues',
action: [ 'labeled', 'opened' ],
task: updateBoard,
},
{
event: 'pull_request_target',
action: [ 'opened', 'synchronize', 'edited' ],
Expand Down Expand Up @@ -87,11 +92,6 @@ const automations = [
action: [ 'closed' ],
task: replyToCustomersReminder,
},
{
event: 'issues',
action: [ 'labeled', 'opened' ],
task: updateBoard,
},
];

( async function main() {
Expand Down

0 comments on commit 4652fe6

Please sign in to comment.