Skip to content

Instantly share code, notes, and snippets.

@YonatanKra
Last active June 27, 2020 09:40
Show Gist options
  • Save YonatanKra/a3dd904048567faf0ee44f968c598e92 to your computer and use it in GitHub Desktop.
Save YonatanKra/a3dd904048567faf0ee44f968c598e92 to your computer and use it in GitHub Desktop.
const { testTitle } = require('./lintPR');
const github = require('@actions/github');
const core = require('@actions/core');
function getTitle() {
return github.context.payload.pull_request.title;
}
async function run() {
await testTitle(getTitle());
}
run().catch(e => core.setFailed(e));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment