Skip to content

Commit

Permalink
use node_id and correct commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Oct 29, 2020
1 parent 0b88f08 commit 96a0681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/first-time-contributor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class FirstTimeContributorPlugin implements IPlugin {
repository(name: "${auto.git?.options.repo}", owner: "${auto.git?.options.owner}") {
object(expression: "${getCurrentBranch()}") {
... on Commit {
history(after: "${commits[0].hash} 0", first: 1, author: { id: "${user.id}" }) {
history(after: "${commits[commits.length - 1].hash} 0", first: 1, author: { id: "${user.node_id}" }) {
edges {
node {
message
Expand Down

0 comments on commit 96a0681

Please sign in to comment.