Skip to content

Commit 179627c

Browse files
committedApr 4, 2020
fix: branch is undefined
1 parent 22abc96 commit 179627c

File tree

307 files changed

+125833
-12657
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+125833
-12657
lines changed
 

‎CHANGELOG.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [v2.0.1](https://github.com/amondnet/now-deployment/tree/v2.0.1) (2020-02-25)
44

5-
[Full Changelog](https://github.com/amondnet/now-deployment/compare/v2.0.0...v2.0.1)
5+
[Full Changelog](https://github.com/amondnet/now-deployment/compare/v2...v2.0.1)
66

77
**Fixed bugs:**
88

@@ -24,13 +24,16 @@
2424

2525
**Implemented enhancements:**
2626

27-
- Support for Now CLI v17 [\#24](https://github.com/amondnet/now-deployment/issues/24)
2827
- Do not want to receive comments from action [\#14](https://github.com/amondnet/now-deployment/issues/14)
28+
- Support for Now CLI v17 [\#24](https://github.com/amondnet/now-deployment/issues/24)
2929
- feat: now cli v17, add `NOW\_PROJECT\_ID` and `NOW\_ORG\_ID` env variable [\#26](https://github.com/amondnet/now-deployment/pull/26) ([amondnet](https://github.com/amondnet))
3030

31-
**Closed issues:**
31+
**Fixed bugs:**
3232

3333
- Deploy stalled [\#23](https://github.com/amondnet/now-deployment/issues/23)
34+
35+
**Closed issues:**
36+
3437
- Can I upload the contents of a folder with pre-built assets? [\#22](https://github.com/amondnet/now-deployment/issues/22)
3538
- getting 403 error every time it tries to comment [\#18](https://github.com/amondnet/now-deployment/issues/18)
3639
- Feature: Ability to specify path for --local-config flag [\#16](https://github.com/amondnet/now-deployment/issues/16)

‎index.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ async function run() {
3939
} else {
4040
core.info("comment : disabled");
4141
}
42+
const pull = await octokit.pulls.get({
43+
...context.repo,
44+
pull_number: context.payload.pull_request.number
45+
})
46+
core.info(pull)
47+
core.info(`ref : ${context.payload.pull_request.html_url}`)
4248
}
4349

4450
async function setEnv() {
@@ -100,9 +106,11 @@ async function nowDeploy() {
100106
`githubCommitRepo=${context.repo.repo}`,
101107
"-m",
102108
`githubCommitMessage=${commit}`
103-
],
104-
options
105-
);
109+
"-m",
110+
`githubCommitRef=${context.ref}`
111+
],
112+
options
113+
);
106114

107115
return myOutput;
108116
}

0 commit comments

Comments
 (0)