You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Picks up the first available PR template, if any
and fills the default PR body with it (along with the commit messages).
Allows for users to fill in details, and adjust the PR message
before submission.
Caveat: This will perform a PR template look up on every PR submission.
For a 'stack submit', that means N lookups.
We can probably optimize this by caching the PR template
between submissions in the same command invocation,
or by generating some sort of hash key based on the .github/ directory
and store it in the data store.
Resolves#87
body: '{"data":{"repository":{"pullRequestTemplates":[{"filename":"PULL_REQUEST_TEMPLATE","body":"This PR will be imported into Gerrit with the title and first\ncomment (this text) used to generate the subject and body of\nthe Gerrit change.\n\n**Please ensure you adhere to every item in this list.**\n\nMore info can be found at https://github.com/golang/go/wiki/CommitMessage\n\n+ The PR title is formatted as follows: `net/http: frob the quux before blarfing`\n + The package name goes before the colon\n + The part after the colon uses the verb tense + phrase that completes the blank in,\n \"This change modifies Go to ___________\"\n + Lowercase verb after the colon\n + No trailing period\n + Keep the title as short as possible. ideally under 76 characters or shorter\n+ No Markdown\n+ The first PR comment (this one) is wrapped at 76 characters, unless it''s\n really needed (ASCII art, table, or long link)\n+ If there is a corresponding issue, add either `Fixes #1234` or `Updates #1234`\n (the latter if this is not a complete fix) to this comment\n+ If referring to a repo other than `golang/go` you can use the\n `owner/repo#issue_number` syntax: `Fixes golang/tools#1234`\n+ We do not use Signed-off-by lines in Go. Please don''t add them.\n Our Gerrit server & GitHub bots enforce CLA compliance instead.\n+ Delete these instructions once you have read and applied them\n"}]}}}'
0 commit comments