File tree Expand file tree Collapse file tree 3 files changed +5
-21
lines changed Expand file tree Collapse file tree 3 files changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -11370,18 +11370,10 @@ const getLabelToBeApplied = (version) =>
11370
11370
const getIsIssueLabelAVersion = (label) => label.startsWith(versionLabel);
11371
11371
11372
11372
(async () => {
11373
- const githubToken =
11374
- process.env.GITHUB_TOKEN ||
11375
- core.getInput("github-token", { required: true });
11373
+ const githubToken = core.getInput("github-token", { required: true });
11376
11374
const octokit = github.getOctokit(githubToken);
11377
11375
11378
- // const { issue } = github.context;
11379
-
11380
- const issue = {
11381
- owner: "lucasbento",
11382
- repo: "core-workflows",
11383
- number: 1,
11384
- };
11376
+ const { issue } = github.context;
11385
11377
11386
11378
// This fetches the issue again as it can have different data after running the other actions
11387
11379
const { data: updatedIssue } = await octokit.rest.issues.get({
Original file line number Diff line number Diff line change @@ -82,18 +82,10 @@ const getLabelToBeApplied = (version) =>
82
82
const getIsIssueLabelAVersion = ( label ) => label . startsWith ( versionLabel ) ;
83
83
84
84
( async ( ) => {
85
- const githubToken =
86
- process . env . GITHUB_TOKEN ||
87
- core . getInput ( "github-token" , { required : true } ) ;
85
+ const githubToken = core . getInput ( "github-token" , { required : true } ) ;
88
86
const octokit = github . getOctokit ( githubToken ) ;
89
87
90
- // const { issue } = github.context;
91
-
92
- const issue = {
93
- owner : "lucasbento" ,
94
- repo : "core-workflows" ,
95
- number : 1 ,
96
- } ;
88
+ const { issue } = github . context ;
97
89
98
90
// This fetches the issue again as it can have different data after running the other actions
99
91
const { data : updatedIssue } = await octokit . rest . issues . get ( {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " core-workflow-apply-version-label" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.0.3 " ,
4
4
"author" : {
5
5
"name" : " Lucas Bento" ,
6
6
"url" : " https://github.com/lucasbento"
You can’t perform that action at this time.
0 commit comments