From 317937c3d23f7132a6aacce08710b1f94cb8c06b Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 8 Nov 2019 16:58:18 +0000 Subject: [PATCH 1/3] Update description --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ad68c287..738dcf14 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ name: 'Pull Request Labeler' -description: 'Label pull requests by files altered' +description: 'Add labels to new pull requests based on the files that are changed' author: 'GitHub' inputs: repo-token: From 2b75d22987baa8b9fb023106fe3a4d90648b7104 Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Sun, 2 Feb 2020 11:11:07 -0500 Subject: [PATCH 2/3] Explain this action fails for fork/PR model Resolves #12 via documentation. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 59312891..6dcdce07 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Pull request labeler triages PRs based on the paths that are modified in the PR. +**Caveat:** This only works when the PRs come from inside same account/organization. (if the PR is from a forked repo, like is commmon in many OSS projects, this action will not work due to lack of permissions). + ## Usage ### Create `.github/labeler.yml` From 05785e27d66dc26de2d33e82f286a789985e8f19 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 5 Feb 2020 17:30:53 +0000 Subject: [PATCH 3/3] README: tweak documentation on token permissions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6dcdce07..fe9cebea 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Pull request labeler triages PRs based on the paths that are modified in the PR. -**Caveat:** This only works when the PRs come from inside same account/organization. (if the PR is from a forked repo, like is commmon in many OSS projects, this action will not work due to lack of permissions). +Note that only pull requests being opened from the same repository can be labeled. This action will not currently work for pull requests from forks -- like is common in open source projects -- because the token for forked pull request workflows does not have write permissions. ## Usage