Skip to content

Commit

Permalink
Create log-branch.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunridge authored Nov 20, 2023
1 parent 2a3272b commit 6a387e6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions roiScript/log-branch.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import github from '@actions/github'

const issueNumber = process.env.ISSUE_NUMBER
const timeDiff = process.env.TIME_DIFF ? process.env.TIME_DIFF : 1
const comment = `Branch: [issue-${issueNumber}](https://github.com/ProgramEquity/amplify/tree/issue-${issueNumber})`

const octokit = github.getOctokit(process.env.GH_TOKEN)

await octokit.rest.issues.createComment({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
issue_number: issueNumber,
body: comment
})

0 comments on commit 6a387e6

Please sign in to comment.