Skip to content

Commit

Permalink
add label
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 28, 2024
1 parent e20dfc7 commit 3c0fcca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/supersetbot/src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,19 @@ class Github {
...this.unPackRepo(),
title: commitMessage,
head: branchName,
labels: ['supersetbot'],
base: 'master',
body: `Updates the python "${lib}" library version from ${before} to ${after}. \n\nGenerated by @supersetbot 🦾`,
});
console.log(`Pull request created: ${resp.data.html_url}`);
return resp.data.html_url;

// Labeling the PR
await this.octokit.issues.addLabels({
...this.unPackRepo(),
issue_number: prNumber,
labels: ['supersetbot'],
});

// This is stupid, but it's one of the only way to trigger the CI checks
console.log('Close/reopen the PR to trigger the CI checks.');
const prNumber = createResp.data.number;
Expand Down

0 comments on commit 3c0fcca

Please sign in to comment.