Commit Graph

310 Commits

Author SHA1 Message Date
Callum Silcock
00584cab2c Reworded readme with clearer examples
* Reformatted readme into headings with some basic rewording
* Added basic and common examples
Resolves #24
2019-09-26 16:53:38 +01:00
Paige Bystrom
df04112348 Updating readme for more guidance (#21)
* updating readme

* updating file path
2019-09-12 13:42:28 -04:00
Shawn Napora
44767181ec Add clarity on GITHUB_TOKEN purpose (#19) 2019-09-09 15:53:57 -04:00
Danny McCormick
0d3cd1e1fd Revert readme changes 2019-08-29 09:59:11 -04:00
Danny McCormick
375fca6b78 Use cron triggers 2019-08-28 10:10:14 -04:00
Jonas Faber
989d3858d8 Fix typo in README.md (#5)
Based on this resource: https://help.github.com/en/articles/events-that-trigger-workflows#webhook-events
2019-08-23 10:24:10 -04:00
Eebs Kobeissi
b726232fd7 Fetch configuration content from PR ref (#8)
* Fetch configuration content from PR ref

Fixes #6

When fetching the configuration content from the file specified by
`configuration-path`, we should load the content from the ref of the PR.

By default, `repos.getContents` will [use the repository's default
branch][1] if no `ref` is specified.

When first configuring this action, assuming the configuration file is
added in the same PR as the action, the configuration file will not
exist on the default branch. This causes an `HttpError: Not Found` to
occur when attempting to load the configuration from the default branch.

This commit updates the call to `getContents` to add the `ref`
parameter, set to the `GITHUB_SHA` value from the context. This will
cause the action to load the contents of the configuration file from the
ref of the PR, rather than the default branch.

---

This PR also updates the packages to use version 1.0.0 of all the
toolkit action packages, as they were using local files before.

I noticed that `src/main.ts` is not formatted according to the prettier
rules. I'm happy to open another PR that applies prettier to the current
source. I had to disable prettier during implementation of this commit
in order to keep the changes relevant to this PR.

[1]: https://developer.github.com/v3/repos/contents/#get-contents

* Remove exec, io, tool-cache
2019-08-23 10:13:22 -04:00
Mike Coutermarsh
d43dfced82 Fix name 2019-08-08 10:59:59 -07:00
Shawn Napora
7d083c498f Update to labeler v2 (#4)
* labeler v2

* update docs
2019-08-08 13:07:40 -04:00
Jonathan Clem
ab3b5b5adc Initial commit v1.0.0 2019-03-29 15:21:48 -07:00