@@ -23,53 +23,32 @@ jobs:
23
23
env :
24
24
PR_HAS_LABEL : ${{ contains( github.event.pull_request.labels.*.name, 'no-changelog') }}
25
25
steps :
26
- # checkout full depth because in the check_changelog_fragments script, we need to specify a
27
- # merge base. If we only shallow clone the repo, git may not have enough history to determine
28
- # the base.
26
+ # Checkout full depth because in the check_changelog_fragments script, we need to specify a
27
+ # merge base. If we only shallow clone the repo, git may not have enough history to determine
28
+ # the base.
29
29
- uses : actions/checkout@v3
30
30
with :
31
31
fetch-depth : 0
32
32
33
33
- name : Generate authentication token
34
- # don 't run this step if the PR is from a fork or dependabot since the secrets won't exist
34
+ # Don 't run this step if the PR is from a fork or dependabot since the secrets won't exist
35
35
if : ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
36
36
id : generate_token
37
37
uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
38
38
with :
39
39
app_id : ${{ secrets.GH_APP_DATADOG_VECTOR_CI_APP_ID }}
40
40
private_key : ${{ secrets.GH_APP_DATADOG_VECTOR_CI_APP_PRIVATE_KEY }}
41
41
42
- - name : Get PR comment author
43
- # don't run this step if the PR is from a fork or dependabot since the secrets won't exist
44
- if : ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
45
- id : author
46
- uses : tspascoal/get-user-teams-membership@v3
47
- with :
48
- username : ${{ github.actor }}
49
- team : ' Vector'
50
- GITHUB_TOKEN : ${{ steps.generate_token.outputs.token }}
51
-
52
- - env :
53
- # if the prior step did not run, this var will be ''
54
- AUTHOR_IS_TEAM_MEMBER : ${{ steps.author.outputs.isTeamMember }}
55
- run : |
42
+ - run : |
56
43
if [[ $PR_HAS_LABEL == 'true' ]] ; then
57
44
echo "'no-changelog' label detected."
58
45
exit 0
59
46
fi
60
47
61
- # helper script needs to reference the master branch to compare against
48
+ # Helper script needs to reference the master branch to compare against
62
49
git fetch origin master:refs/remotes/origin/master
63
50
64
- # If the PR author is an external contributor, validate that the
65
- # changelog fragments added contain the author line for website rendering.
66
- args=""
67
- if [[ $AUTHOR_IS_TEAM_MEMBER != 'true' ]] ; then
68
- echo "PR author detected to be an external contributor."
69
- args="--authors"
70
- fi
71
-
72
- ./scripts/check_changelog_fragments.sh ${args}
51
+ ./scripts/check_changelog_fragments.sh
73
52
74
53
check-changelog :
75
54
name : Changelog
0 commit comments